fxDreema

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

    arrows acting on the same candle

    Questions & Answers
    2
    2
    435
    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.
    • E
      engahmedn last edited by

      Hi
      i was looking to implement a simple code of an arrow indicator, it appears and disappears(on retracements)

      i want to open a trade when it appears and flip the trade the other side if it disappears.
      my problem is that i dont want the disappear function to keep functioning on future candles after the intial candle have settled.

      example: the buy arrow appears , opens a buy, on the same candle it might disappear (during retracements) i want to flip it back to sell. then stop the blocks from acting till the next sell arrow appears on a candle and opens a sell.

      I want the conditions for buy to act only on 1 candle (both appear and disappear) till the next sell signal(also both appear and disappear ) on the same candle only.

      any suggestions?
      thanks

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

        My first suggestion is to look at that Buy-Sell-Buy-Sell example in the examples, because this one shows that flip-flopping. Condition blocks will have something else in them, and I think that you also need to use "Once per bar" somewhere, to prevent something from happening 2 times in the came candle.

        Or, maybe this block "Skip ticks". You are saying "stop the blocks from acting..." and this block does exactly that.

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

        Online Users

        T
        A
        A
        O

        13
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors