
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
Bless you for helping me with this problem. When a red candle appears it counts back the number instead of not counting. I have a different code on my DoFile that gives the same results.
again, I do not know what you are saying...
the code I just provided only counts the number of green bars in the 10 bar loop that you wanted..
green (1), green (2), red (1), green(2), green(3), red(2).
red has just taken away 1 from the second green candle which equates to 1. There are 4 green candles, but the count says 2 instead.
green (1), green (2), red (1), green(2), green(3), red(2).
red has just taken away 1 from the second green candle which equates to 1. There are 4 green candles, but the count says 2 instead.
I've found the solution ! Adding these commands into the function helps the function to recognize the specificity of counting just green candles and also counting candles in general. Proud of this result, another one to add to the DoFile. case SOLVED !
Those who are reading this post and need some help, dont hesitate to give me a message and I can help you with the code by explaining the logic to extend this as a signal !