fxDreema

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

    Possible to apply script only to drawings in current timeframe?

    Questions & Answers
    2
    3
    261
    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.
    • General Melchett
      General Melchett last edited by

      Here's my scenario:
      I am using Soft4FX backtesting software in MT4 to practice my manual trading. It uses offline charts with different timeframes in their own chart tabs. I would like a script to modify horizontal lines so I can identify which timeframe they belong to.
      For instance, in H4 I make a horizontal support line thick and black. (You can copy objects to other timeframes, so I do this with Soft4FX).
      I move to H1 and make some more horizontal lines but in a different colour.

      Bearing in mind the previous lines I created will have been copied to H1, I want a script to only apply to the lines I have created in H1, and not ones that have been created in other TFs. Might this be possible?

      1 Reply Last reply Reply Quote 0
      • General Melchett
        General Melchett last edited by

        I figured it out.

        I only need to change the default colour of the horizontal line. So I first markup weekly (in Violet) and set script to change only that colour. Then I move to D1. When I draw new lines they are in Violet as the W1 markup has already been changed by the script. And so on.

        1 Reply Last reply Reply Quote 0
        • A
          amin.de1163 last edited by

          hi can u share this part of your script please ? i dont know how to move an object between timefarames

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

          Online Users

          E
          L
          G
          K
          E
          S
          E
          P
          G
          R
          N
          S
          E
          E
          M
          O

          26
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors