What error are you getting?
What is it suppose to be doing?
Play videoPlease edit your post.
For large amounts of code, attach it.
//int limit = Bars - counted_bars; // first time counted = 0 int limit = Bars - 1 - counted_bars; // loop from Bars - 1 .. 0
high1=High[i+1];
Your look back is 1 soint counted_bars=IndicatorCounted(); if(counted_bars < 1) counted_bars = 1; // Lookback of 1
- what is my big mistake here.Not specifying what the problem is.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
what is my big mistake here.....any help
Please replace your code here using the SRC button.