Overlaying indicators and letting the values start from one single point [Solved, more or less]

 

Hi,


Been struggling with this for a week, trying code & googling ..

It concerns the situation whereby indicators need to be overlayed because only 8 simultaneous buffers are allowed to be placed screen by 1 indi.

Take an indi A and an indi B. Both start at 1.00 and end up where ever.

First i place A in its indicator window .. all is fine and the indi is shown with 1.00 as the center line. Same applies to B when placed in its own window.

Now, if i overlay B on A, this is where the challenge starts. Both have a 1.00 line but 99 /100 times the 1.00 line of the 2 indis *does not* line up.


Question 1: Can this be done automatically and if so how?


Tia,


Fermin DCG

Solution

By adding the following (hardcoded) lines lines to the code it visually does what is required

#property indicator_minimum 0.990
#property indicator_maximum 1.010

Preferred would be a way to set these parameters based on what is coming from the indis themselves.

Reason: