Download MetaTrader 5
To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
Leo Spark
9
Leo Spark 2015.08.30 23:11 

For my systems, I need to draw objects past bar zero, so my shift is set very far to the left, or center of the chart window.

Every time I draw an object past shift, even only a single bar past (anything less than bar zero), the objects either do not draw, or are stretched to infinity.


How are objects drawn past shift? Is it possible?

(Applying a ray is not what I'm looking for)

Keith Watford
Moderator
7979
Keith Watford 2015.08.30 23:16  
Please show the section of code that you use to draw the object
Leo Spark
9
Leo Spark 2015.08.31 01:34  

Never mind.

I wanted to place lines by simply adding/subtracting bars, but I ended up with the below work around which spits out a date, and even adjusts itself by timeframe.

Time1 = TimeCurrent() + ((Period() * 60) * Variable);


Where: Variable is the quantity of bars to the right from Bar zero, plus one bar.

/
To add comments, please log in or register