meikel:
yes
Can you tell me the code sir?...
Thanks for your kind help.
start() {
static count
if (new bar) count++
if (mas crossed) count=0
Comment(count);
}
WHRoeder:
start() {
static count
if (new bar) count++
if (mas crossed) count=0
Comment(count);
}
I tried to insert the code to the indicator, but always got error when compile the indicator. I attach the original indicator. Thank you for your kind help sir.
Files:

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
Hi folks,
Is it possible to count how many bars after 2 MA's crossed and displayed in the main chart??..
Thanks