fxDreema

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

    Trend Lines

    Questions & Answers
    2
    3
    1363
    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.
    • S
      steveukrm last edited by

      Hi FxDreema,

      Instead of drawing horizontal lines, is it possible for an EA to draw trend lines instead?

      The reason I ask is that I use a kind of breakout system and I use lines to show where the levels are visually. Once a line is broken I then get the EA to delete the lines. I'd like to be able to look at the chart of the old breakout lines though and a horizontal trend line would allow me to do that (without the ray property used anyway), providing I didn't delete them once the line was broken of course.

      I look forward to your response.

      Kind regards,
      Steve.

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

        It's not impossible, but I have to create a block for it 🙂
        Otherwise as a function it's something like this:

        ObjectCreate("Name", OBJ_TREND, 0, Time[10], Bid, Time[0], Bid);
        ObjectSet("Name",OBJPROP_RAY,0);
        

        Where Time[10] is the time value for 10th candle in history, and the second row tells that the trenline has beginning and end (otherwise it goes to infinity)

        1 Reply Last reply Reply Quote 0
        • S
          steveukrm last edited by

          Cool thanks.

          Any idea when a trend line block would be ready?

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

          Online Users

          Y
          A
          F
          S
          D
          B
          Y

          13
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors