* After the first candle of 30m you should place a start order to sell/buy the stock one tick above/below that candle.
* If the start order is not activated after 3 candles you should cancel the orer.
* If the order is filled you should place the stop below/above the max/min of the first 30m candle.
* If the trade has not reached the gain or stop until 16h (or any other configured time) you should close the trade using a market order.
Note: For the brazilian index(WIN1!) its better to consider the candle of 10h as the first, because it is the time when the stock market opens.