Array within if statement using bars, Time and iHighest to find Highs between 2 points. Can't figure out where i am going wrong ?
Hey i've been having some trouble getting this to work was wondering if anyone could give me some tips ?
Im basically just trying to figure out how to mark two points and then find the highest or lowest bars between them. So far i have something like this for highest point.
Its plotting arrows but in the wrong place and when i print values to check, they are way off anything i am looking for. Think i might be storing the values wrong ? or perhaps i should cycle BarsBetween and TopBars into an array as well. Technically to store two points of interest the if statement has to come around twice and then it will have two points to work with.
Any tips would be appreciated thank you :)
https://stackoverflow.com/help/mcve
- stackoverflow.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey i've been having some trouble getting this to work was wondering if anyone could give me some tips ?
Im basically just trying to figure out how to mark two points and then find the highest or lowest bars between them. So far i have something like this for highest point.
Its plotting arrows but in the wrong place and when i print values to check, they are way off anything i am looking for. Think i might be storing the values wrong ? or perhaps i should cycle BarsBetween and TopBars into an array as well. Technically to store two points of interest the if statement has to come around twice and then it will have two points to work with.
Any tips would be appreciated thank you :)