Basic premise of the robot:
Sell trades:
After a new daily high is made, sell after the close of a red candle.
If the first trade is stopped out wait for the next red candle and take a second sell. If the second trade is stopped out and a new daily high is made, sell after the close of the next red candle. If the third trade is stopped out and a new daily high is made, sell after the close of the next red candle. If the fourth trade is stopped out and a new daily high is made, sell after the close of the next red candle. (total of 5 trades can all be stopped out, no more trades after that)
Buy trades:
After a new daily low is made buy after the close of a green candle.
If the first trade is stopped out wait for the next green candle and take a second buy. If the second trade is stopped out and a new daily low is made, buy after the close of the next green candle. If the third trade is stopped out and a new daily low is made, buy after the close of the next green candle. If the fourth trade is stopped out and a new daily low is made, buy after the close of the next green candle. (total of 5 trades can all be stopped out, no more trades after that)
Once 5 trades are taken please wait until the next day for trades.
1 day starts and ends at 5PM NY time (typical new day parameters).
At the start of every new day, please start at Trade Size 1.
Make robot to execute on the timeframe of the chart.
Inputs
Trade start time: time when the robot can start trading (uses the local time of the broker)
Trade end time: time when the robot stops trading (uses the local time of the broker) - if the robot is still in a trade simply leave the TP and SL as is and no new trades until that TP or SL is resolved.
Trade1 Size = lot size of first trade
Trade2 Size = lot size of second trade
Trade3 Size = lot size of third trade
Trade4 Size = lot size of fourth trade
Trade5 Size = lot size of fifth trade
If the trade size = 0 then no trade is taken (i.e. Trade4 Size = 0 and Trade5 Size = 0 then no trades are taken)
Trade1 SL
Trade1 TP in points
Trade2 SL
Trade2 TP in points
Trade3 SL
Trade3 TP in points
Trade4 SL
Trade4 TP in points
Trade5 SL
Trade5 TP in points