I am currently edeting my script to first submit a limit order and when it is not filled it will submit a market order. I used the layout from the SampleCancelOrder script provided on this forum. The script seems to work fine but it doesn't satisfy my needs yet.
In this script it will cancel the limit order after a certain amount of bars closed. I am using 10 minute bars with my script and I don't want to wait a full 10 minutes before canceling the limit order and submitting the market order. I have already read about using the AAPL function and with that I can probably have my script wait 1 minute. (is that correct?) But in my preference I would like to have my script just wait a couple of seconds and no more. Will this be possible? And if yes, can you please help me on my way?
Thanks a lot in advance,
Sandor

Comment