Hi,
I need a code in TradeScript to run in Pi
At 9:45 AM, If the 2nd 15-Minute bar of the day (i.e. 9:30-9:45) does not breach the high or low of the previous (i.e., opening bar 9:15-9:30) PLACE stop loss BUY order above the HIGH of the 2nd bar (i.e. 9:30-9:45) and stop loss SELL order below the LOW of the 2nd bar (i.e. 9:30-9:45).
If the high or low of the first opening bar of 15 minute breached, then no trade should be placed.
Can anyone please code this simple strategy.