Rgd: Coding on Getting High & Low of Chart

 

Rgd: Coding on Getting High & Low of Chart


Hi guys..

I am currently trying to code a Indicator that can get me the HIGH & LOW that is from

Current Bar to 150 bars ago..

I tried to google and try various method but seems to have issue getting the proper data.



Anyone can give me a sample with alert to tell me what is the highest / lowest point of the chart which is Current bar to 150 bars ago.


THANKS

 
baokydev:

Rgd: Coding on Getting High & Low of Chart


Hi guys..

I am currently trying to code a Indicator that can get me the HIGH & LOW that is from

Current Bar to 150 bars ago..

I tried to google and try various method but seems to have issue getting the proper data.

Use iHighest() and iLowest() to get the bar numbers for the highest and lowest values you want,  then  High[] or iHigh(),  Low[] or iLow(), Open[] or iOpen() etc.  with the bar numbers.
Reason: