1. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Suggestion Need Help with EA, only took sell trades

Discussion in 'Expert Advisor atau Robot Forex' started by mahmudayaz1, 01 Sep 2023.

  1. mahmudayaz1

    mahmudayaz1 New Member

    Equity
    Credit
    Ref Point
    Hello everyone.

    can somebody make this ea corrected as this ea is only taking sell trades, while the logic for buy trade is there.

    please help me out from this. and if possible add dca option as well

    Thank you
     

    Attached Files:

  2. mahmudayaz1

    mahmudayaz1 New Member

    Equity
    Credit
    Ref Point
    can somebody please correct this Ea?
     
  3. Sergey1970

    Sergey1970 Member

    Equity
    Credit
    Ref Point
    it is necessary to know the initial strategy. This Expert Advisor compares the values of the moving average and stochastic indicators. This is wrong! The stochastic value will always be greater than the MA value. Therefore, the adviser always opens deals for sale... It can be assumed that the MA value is compared with the current price on the chart... (In the original strategy.)
     
    Last edited: 03 Sep 2023
    • Like Like x 1
  4. mahmudayaz1

    mahmudayaz1 New Member

    Equity
    Credit
    Ref Point

    Thank you for your time.

    Let me explain the strategy

    Stoch Line = Red (K Period: 91, D Period 30, Slowing 30, Ma Method Simple)
    SMA Line = Green (Period: 91)
    RSI Line = Blue (Period : 8)

    Rules for buying and selling are as below:
    Buy Rule = Stoch Line Above SMA Line and RSI Below or Equal 30
    Sell Rule = Stoch Line Below SMA Line And RSI Above or Equal 70

    Exit Rule
    Buy Position will close when rsi touch 70 and sell position will close when rsi touch 30

    [​IMG]

    here is the screen shot
     

Share This Page