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