Update optionviewer_simplealgotrader.py

refactoring a part of sendOrder at XTimerUpdate function
add entry1 and entry2 and exit condition