[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 289
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
Do I understand correctly, if I write i instead of Time[i], I get the bar number?
And if I use such a script in an EA, then when a new crossing occurs, the value of i will change to a new one?
Hi! I'm trying to create an indicator function and I have a question: the indicator draws arrows when curves cross, but how do I get this signal from the indicator function via iCustom? (1)
I was wondering if I could transfer this signal using a true/false condition? (2)
But then how do I transfer this signal through iCustom? Do I still have to specify both indicator variables in the indicator function and in iCustom and declare arrays?
//+------------------------------------------------------------------+
//| 00003.mq4 |
//| Copyright 2012, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MetaQuotes Software Corp.
#property link "http://www.metaquotes.net"
#property show_inputs
extern int Depth=100;
extern inttern ExtRVIPeriod=10;
double mini=0;
double maxi=0;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start() {
//----
if(Depth>Bars-1) Depth=Bars-1;
for(int i=1; i<Depth; i++) {
double RVI = iRVI(NULL,0,ExtRVIPeriod,MODE_MAIN,i);
if(RVI < mini){
mini=RVI;
}
if(RVI > maxi){
maxi=RVI;
}
}
//----
Alert (mini," : ",maxi);
return(0);
}
//+------------------------------------------------------------------+
Folks, please pull up for beginner's answers. The previous shift is exhausted.
It's true - these answers sometimes make you feel so tired that you feel like you've really been on a work shift :)
Like this?
.......... .........
Alert (mini," : ",maxi);
return(0);
}