fxDreema

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

    EA based on comments on the chart

    Questions & Answers
    2
    2
    84
    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.
    • D
      Dratoran last edited by

      Hello,
      I'm using an indicator, which marks candle patterns on the chart, and want my EA to buy when a specific pattern in combination with another indicator (e.g. moving average) appears.

      What I tried
      I tried to use an "For each object"-loop to search for comments on the chart with the right prefix in their name (e.g "Patterns Invert Hammer") and check, if the anchor point of the comment is below a certain moving average. This should result in a buy signal.

      The problem is that - after the buy is triggered for the first time - it always immediately re-buys after a sell. I assume the mistake is, that the comment, which cause the first buy signal, is always checked again and results in immediate re-buys.

      What I want
      Basically, I need a way to check, if the last candle (not the current one) was marked by my indicator as part of a pattern and if that pattern is the one I want. Has someone an idea, how I could do that?

      My last version is here: https://fxdreema.com/shared/wAFi5igic

      1 Reply Last reply Reply Quote 0
      • jstap
        jstap last edited by

        Can you get a value from indicator appears, or from the object?

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

        Online Users

        J
        B
        D
        E
        J

        19
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors