Техническое задание
Most simplest strategy:
Place a Buy stop orders when the current candle closes above the high of previous candle.
Buy stop orders are placed at the current candle high + Buffer pips.
Provide inputs for
1. Buffer pips above the current candle high. 2. SL in pips. 3. Target in pips
Place a Sell stop orders when the current candle closes below the low of previous candle.
Sell Stop orders are placed at current candle low - Buffer pips
Provide inputs for
1. Buffer pips below the current candle low. 2. SL in pips. 3. Target in pips
Partial Exit: Book 50% of the trade size at 1:1 and Book remaining 50% at 1:3. Both partial and full booking should be instant and automatic.
Few standard inputs:
Session start and end time. To let the EA automatically start taking trades when the above conditions are met during the session input time.
Time Frame: As per the chart. EA should work the same in all time frames the same way.
If I drag this EA on to a 30 min TF of any pair, it (EA) should analyze only 30 min candlesticks of that pair and place buy and sell stop orders with all above set inputs and entry and exit conditions met.
Risk % : 0.25% to 5% of current account balance / just before this trade.
Lots: Let EA calculate the lots based on the risk % of current balance and SL.
Optional: Input to set max losses during the session start and end time. And once that max losses are met, the EA must stop taking trades for the current session and wait for the next day's sessions start time.