指定
I need an EA built base on my trading strategy. This is an indicator base strategy. We’ll be using the stochastic Oscillator. I’ll send you a short video that explains the strategy. I need you to add auto lot size compounding to the EA, so the EA needs to have switch Incase I want to use manual lot size.
BUY SCENARIOS
- Stochastic main line has to cross the signal line upward from below line 30 on the 4H timeframe.
- There has to be a bullish Heikin Ashi candle on the 4H timeframe.
- A bullish heikin ashi candle has to close below the 50 ema on the 5M timeframe. The bot should open positions as soon as the next bullish heikin ashi candle opens.
- Open 3 positions. Set stop loss to 35 pips and TP 1 to 30 pips, TP 2 to 50 pips, and TP 3 to 70 pips. Move SL to breakeven once price moves 30 pips in profit.
- Second entry should be opened if the stochastic main line goes below line 30 and crosses the signal line upwards on the 5M TF. Second entry should only be attempted if the robot has move the first entry stop loss to breakeven.
- Close all buy positions as soon as stochastic main line crosses the signal line to the opposite direction on the 4H TF. The robot must first close all buy positions before opening sell positions. This is very important as i don't want hedging.
- When the robot opens buy positions and the opposite signal came in, the bot should first close the buy positions before opening the sell positions.
SELL SCENARIOS
This should be the opposite of BUY SCENARIOS. There has to be a BEARISH Heikin Ashi candle and at ochastic main line has to cross the signal line downward from above line 70 on the 4H timeframe.
Please change the Stochastic Settings to the ones below before working on the EA.
Level
#30 oversold
#70 overbought
Variable Value
%K period 14
%D period 3
slowing 3