fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Heiken Ashi EA

    Questions & Answers
    2
    2
    5256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      karmaka last edited by karmaka

      Hi,

      I was trying to build a simple EA that it buys when there is a closed bullish Heiken Ashi and closes trade when it turns bearish with some other conditions. But it seems that the EA is buying even when the Heiken Ashi is bearish, and closing trades when Heiken Ashi is still bullish.
      I wonder what did I do wrong? Please help. Thanks a lot!

      EA:
      https://fxdreema.com/shared/BplN9x2mb
      Screencap:
      http://oi64.tinypic.com/260bn5w.jpg

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by miro1360

        I think, problem can be that you are working with candle ID 0, and it is not closed candle
        try to change these IDs to 1
        0_1487490024316_upload-8a9ddb75-06ca-44a7-9bb1-cbb3b697fd1a

        and be sure, you are using right Timeframe for all indicators/candles ...

        and maybe change in block No trade Filter by type to "Buys" (and in sell section to Sells) ... I am not sure with this, it depends on your strategy ... this block No trade is working as "no buy OR no sell" - when one is true, output is true ... when you change it to only Buy, output is true when is here "no buy" ...
        0_1487490143962_upload-b637c3cd-466c-4f4f-bb93-408478c67f6f

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        B
        A
        P
        A
        A
        X
        K

        19
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors