the_justin:
anybody knows how to get the distance between the last time bar touches an indicator
anybody knows how to get the distance between the last time bar touches an indicator
for(int iTouched=0; iTouched < Bars; iTouched++){ double indicator = iCustom(..., iTouched); // Your indicator here if (High[iTouched] >= indicator && indicator >= Low[iTouched]) break; } if (iTouched == Bars) Print("never in available history"); :
Hi WHRoeder,
thank you very very very much for your reply. works like a charm....
Justin:
how to get the last close on upper or lowerband???
Hi WHRoeder,
thank you very very very much for your reply. works like a charm....
tasaoirse: how to get the last close on upper or lowerband???
|
|

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 all,
anybody knows how to get the distance between the last time bar touches an indicator to current indicator ? so lets say i have a simple moving average, and i need to find how many bars have gone since last time the bar touches the simple moving average until current bar.
Thank you in advance