The EA uses custom indicatorsΒ Custom Moving Average LevelsΒ andΒ Stochastic Custom.
The EA only operates when a new bar appears. It can be averaged, i.e., open multiple position in the same direction. Exit a position:
- By Stop Loss triggering
- By Take Profit triggering
- By the opposite signal
There is the reverse of trading signals.
Trading signals. Here, close[1] is the Close price on bar #1,Β ma_down[1] – the value of the Down buffer of indicatorΒ Custom Moving Average Levels on bar #1, ,Β ma_up[1]Β – the value of the UP buffer of indicatorΒ Custom Moving Average LevelsΒ on bar #1,Β sto_main[1] – the value of the Main buffer of indicator Stochastic CustomΒ on bar #1,Β and sto_signal[1]Β – the value of the Signal buffer of indicatorΒ Stochastic CustomΒ on bar #1:
Β Β if(close[1]<ma_down[1] && (sto_main[1]<Inp_STO_Level2 || sto_signal[1]<Inp_STO_Level2)) Β Β Β Β { Β Β Β Β Β Β if(!InpReverse) Β Β Β Β Β Β Β Β m_need_open_sell=true; Β Β Β Β Β Β else Β Β Β Β Β Β Β Β m_need_open_buy=true; Β Β Β Β } Β Β else if(close[1]>ma_up[1] && (sto_main[1]>Inp_STO_Level1 || sto_signal[1]>Inp_STO_Level1)) Β Β Β Β { Β Β Β Β Β Β if(!InpReverse) Β Β Β Β Β Β Β Β m_need_open_buy=true; Β Β Β Β Β Β else Β Β Β Β Β Β Β Β m_need_open_sell=true; Β Β Β Β }