fxDreema

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

    Get name of the horizontal line

    Questions & Answers
    3
    5
    591
    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.
    • Zackry
      Zackry last edited by

      Hello everyone

      i am trying to make sort of a delayed stoploss , the main idea is to place a trade with a stoploss , and then the ea will automatically remove the stoploss and place a line where the stoploss was, and when the price is <= the line for a certain amount of time then close that trade.

      there are 2 parts of the ea ,
      1: first part detects the sl and places a horizontal line on the sl price and then remove the sl , while keeping the horizontal line on the chart, and the ticket number of the trade is used as name of the horizontal line to identify which horizontal line is associated to which trade on the chart.

      2: second part where the ea detects which line has been crossed and get the name of that line , (this name will be used to close the trade with which has the same ticket number as the name of the horizontal line )

      closing and counting time delay isnt a big problem ,but i cant figure out how to start with the second part of the ea i-e how to detect which line has been breached and get the name of that line

      here is my sample project https://fxdreema.com/shared/g7DbBmeJc
      i will highly appreciate if someone can help me in figuring out how to do the second part
      thanks

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

        @roar @miro1360 @fxdreema-1 can you guys please help

        roar 1 Reply Last reply Reply Quote 0
        • roar
          roar @Zackry last edited by roar

          @zackry I would try something like this
          https://fxdreema.com/shared/CLFOrVlpb

          Personally I wouldn't rely on objects, though.. More safe approach would be to store the levels in an array, and make another array (or dimension) for the ticket numbers. Just in case you want to consider it - I'm not going to walk you through that lol

          Need small help? Tag me in your post
          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

          Zackry 1 Reply Last reply Reply Quote 0
          • Zackry
            Zackry @roar last edited by

            @roar funny story , you might not believe me but i was just looking into the arrays myself , and yeah you are absolutely right array would be a better option to do it

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

              @zackry The only way to get what line has been crossed is checking it tick by tick. You should try it on the 'on tick' tab.

              (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 1
              • 1 / 1
              • First post
                Last post

              Online Users

              E
              R
              S
              A
              B
              N
              M
              A
              T
              V
              M
              A

              21
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors