fxDreema

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

    Delete object when price crosses level?

    Questions & Answers
    2
    2
    517
    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.
    • Highmoose
      Highmoose last edited by Highmoose

      Hiya guys, looking for some help.
      In my EA, i draw boxes around candles when my criteria is met. It looks like this..

      0_1621121450281_Boxlevels.png

      Im am looking for a way for the EA to remove the boxes once price comes back and touches the same level as the boxes.

      Example:

      A Box is created around a candle..
      Price moves away from the box..
      Then price starts to move back to the same level at which the box is draw..
      When the price bar touches the box, the object is removed.

      In theory what im saying is, a box is valid until price comes back to the level that the box is drawn at. When it is invalid i would like to remove it.

      So in the image above, none of the boxes would still be there as they will have all been removed the price level came back to the same level of the box.

      Hope that makes sense!

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @Highmoose last edited by

        @highmoose The problem is defining 'touching' the box. Do you mean the price levels of the highest and lowest positions of those boxes? If so you need to store the value of those levels into variables and then use condition blocks to check if price hit them later. If that happens the box is deleted.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

        Online Users

        T
        N
        M
        K
        F
        Z
        S

        16
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors