I'm new to programming and was wondering whether someone can point me in the right direction with the following strategy:
Say I define lunch hour as 12pm-1pm. I want the strategy to go long if right after 1pm the price breaks the high of that "lunch hour" and short if the price breaks the low, by 2 ticks. I want to get out at a 1pt profit or out at a 3pt stop loss. What if I want to trade 2 contracts and set the stop loss to B/E on the second contract after the target on the 1st contract has been reached and trail that second contract stop to half the move from my entry?
I want the strategy to last until the end of day, but only execute 1 side each. That is, if it goes long, then no more longs, and if it goes short, no more shorts. The strategy can execute 1 long and 1 short if the above conditions are met.

Comment