Possible to apply script only to drawings in current timeframe?
-
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?
-
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.
-
hi can u share this part of your script please ? i dont know how to move an object between timefarames