Hi - I was writing a code on TOS paper simulator and wanted to add this condition that the first buy order should only take place after 10 AM.
I have created a 5 min aggregation. my strategy is written such that a buy should happen when above 20 SMA, however when the market opens, it buys it immediately, since the price will be higher than the SMA. I wanted the SMA to develop first before placing the buy order. Therefore, making the first trade after 30 min makes sense.
Hope you can help with the thinkscript code I should add.
thanks
I have created a 5 min aggregation. my strategy is written such that a buy should happen when above 20 SMA, however when the market opens, it buys it immediately, since the price will be higher than the SMA. I wanted the SMA to develop first before placing the buy order. Therefore, making the first trade after 30 min makes sense.
Hope you can help with the thinkscript code I should add.
thanks