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
With a supporting buffer I am failed to get the needed results. Don't know how to do it. (Please check the 1st page)
I get back to my old coding with simplifying with counter. But results are still same.
For 1. about future value, then how can I check Higher Higher Lower Low?
I simplified my code, about initializing counter, i==limit generally happens one time when the loop started.
Any coding example to solve the issue?
Thank you
You've never shown your calculation of limit.
If you've done it in the standard way, the first time you did all bars (to 0). The next tick limit would be zero, and you just update bar zero.
Shouldn't counter be initialized to the same value it had the previous run for bar zero? Not zero!
You've never shown your calculation of limit.
If you've done it in the standard way, the first time you did all bars (to 0). The next tick limit would be zero, and you just update bar zero.
Shouldn't counter be initialized to the same value it had the previous run for bar zero? Not zero!
This is how I did my Limit calculation:
Am i wrong here? if yes then I will use your suggested code with MathMax
you suggested compare the current bar to the previous one, as its backward loop. So this is how I did. If limit = 100 then High[100] <= High[99]
Result is same. If you don't mind then can you share code please if above coding is wrong.
Shouldn't counter be initialized to the same value it had the previous run for bar zero? Not zero!
Please check my limit calculation, any coding example will be helpful in this case for counter.
Thank you