fxDreema

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

    Draw lines at price Levels

    Questions & Answers
    2
    5
    1122
    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.
    • MMBInvest
      MMBInvest last edited by MMBInvest

      Hello everybody,

      I looked though the forum and google but did not find an answer which I got working. I want to draw lines at certain price level such as ???.500 and ???.000

      I tried to use the round number block but I was not able to get that working as it uses ranges instead of exact levels and then I tried to create a custom mql code block by reading the price, rounding it to the first digit after the comma, splitting it by "." and get the first array... but I failed as I am not used to mql coding...

      Has someone an idea how I can achieve that? Is there a simple way?

      This is what I have tried ... I don't know how to share that:
      0_1625120364227_Unbenannt.PNG

      Now here is the link:
      https://fxdreema.com/shared/uhJF7mSod

      Thank you and have a nice day!

      btw. this tool is fantastic!!!

      Markus Maria

      Q 1 Reply Last reply Reply Quote 0
      • Q
        q8carpenter @MMBInvest last edited by

        @mmbinvest hello,

        So how many lines did you want and what are they relative to?
        I mean is it only the .000 and .500 above and below the line? Or is it every .000 and .500 on the chart?

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

          Hello,

          when the current price (bid/ask) crosses a .000 or .500 level, I want it to draw one line at this very moment. In addition it should place a pending order and do other things later on, but I struggle already with the line. Only one line at .000 or .500 to highlight once price crosses such a level. I set a variable/flag that it does not continue to draw lines as it crosses over and over again ...

          Q 1 Reply Last reply Reply Quote 0
          • Q
            q8carpenter @MMBInvest last edited by

            @mmbinvest Just a note, for me to get notified with your reply, you will need to tag me @q8carpenter

            As for your idea, let me show you a simple way that i would do the drawing part without the rest of your strategy and you can go from there.

            As you can see in the screenshot, if you chose YES and YES, then the line will be drawn as soon as you pass .000 or .500 , but if you chose NO and YES, then the same line will be redrawn keeping only one line on the chart.

            Now that on my image I have visually backtested tested and it works. As I don't know what exactly you want for the rest of your strategy, I can not say what you should do but if this doesn't work for you, then there must be a problem with another block in your chain where it is not passing.

            0_1625131310039_draw line round.png

            MMBInvest 1 Reply Last reply Reply Quote 1
            • MMBInvest
              MMBInvest @q8carpenter last edited by

              @q8carpenter thank you for your input and advise to mention you ...
              That got it working ....

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

              Online Users

              K
              M
              B
              A
              C
              A

              21
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors