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

New EA Supply and Demand Expert Advisor Modifications

Discussion in 'Expert Advisor atau Robot Forex' started by Ashiq islam, 05 Jul 2021.

  1. Ashiq islam

    Ashiq islam Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,
    I have unfortunately a small problem with the EA below. [​IMG]
    I am new to writing EA's.
    I think the Expert Advisor has a lot of potentials. I would like to have it trade on verified and proven zones, unfortunately, I have not been able to successfully rewrite the code yet.
    I would like to rewrite the EA so that it only executes an order after the zone has exited again. The price must enter the zone and only after exiting the zone again execute an order below or above the zone. See example photos. and I have added the file also
    Example photo 4, the price is in the zone but does not break out again downwards but upwards away.

    Also, I wanted to include a trailing stop loss, but it only half worked... [​IMG]


    Thank you and have a nice day

    [​IMG][​IMG][​IMG][​IMG][​IMG]
     

    Attached Files:

  2. eatrades

    eatrades Member Credit Hunter

    Equity
    Credit
    Ref Point
    First of all go to the indicator settings and then change the color of these lines.. there should be value in the indicator where you changing the color. it should start with 0,1,2 and so on.
    by changing colors you will find out the which line is 0, which line is buffer 1, and which line is buffer 2. then after go to your EA coding and code that if Market price is above the top line, EA should execute the order and if the market price is lower than your lowest line then it should execute the order.

    I think its very simple and you can do it very quickly. the code will be less than my this written post.

    hope it can work for you.
     
    • Like Like x 1
  3. Automagico

    Automagico Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    perhaps this can help you

    https://soehoe.id/automagico-ea.t26883/#post-477064


    regards
     
  4. Alex Shankster

    Alex Shankster New Member

    Equity
    Credit
    Ref Point
    Do you have an update on this EA? id like to do some testing. thanks
     
  5. blackking

    blackking Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    I think to learn to become a good programmer also need hard work in learning,
    first-time maybe face some mistake and then found new knowledge to resolve the mistake.
     

Share This Page