- Stop market
- buy - press ctrl, place cursor any place above the price and left click
- sell - press ctrl, place cursor any place bellow the price and left click
- Stop limit
- buy - press alt, place cursor any place bellow the price and left click
- sell - press alt, place cursor any place above the price and left click
I can get the price on mouse click, check if keys are pressed and have code for creating orders however sometimes I get an error that order could not be placed.
I have attached screenshots from my code.
I think I am setting incorrect values for the limitPrice and stopPrice in account.CreateOrder function??
Could you please help?
Thanks in advance

Comment