first lesson for me in mql4 course.
albert_lim83:
i wish to combine 2 indicator,
but seem not working.
what have you done...
just trying to combine stochastic and rvi indicator.
what does the character [and] [or] in mql4 ?
how to use [and] [or] in mql4 ?
albert_lim83:
just trying to combine stochastic and rvi indicator.
then how to use it together ??
why cant ?
[and] and [or] https://book.mql4.com/basics/expressions
what do you mean by combine ? because you can attach stoch to a chart and then drag and drop RVI on to the stoch
and vice versa
:)
int deinit() { int a,b,nLimit,nCountedBars,counted_bars=IndicatorCounted(); double dValueUp,dValueDown,dNum,dDeNum;
//---- minimums counting
a=Bars-KPeriod;
if(counted_bars>KPeriod) a=Bars-counted_bars-1;
while(a>=0)
for(i=0; i<=nLimit; a++);
&& (j=a; j<i+ExtRVIPeriod; j++);
{
dValueUp=((Close[j]-Open[j])+2*(Close[j+1]-Open[j+1])+2*(Close[j+2]-Open[j+2])+(Close[j+3]-Open[j+3]))/6;
dValueDown=((High[j]-Low[j])+2*(High[j+1]-Low[j+1])+2*(High[j+2]-Low[j+2])+(High[j+3]-Low[j+3]))/6;
dNum+=dValueUp;
dDeNum+=dValueDown;
dNum=0.0;
dDeNum=0.0;
}
if(dDeNum!=0.0)
ExtRVIBuffer[i]=dNum/dDeNum;
else
ExtRVIBuffer[i]=dNum;
}
if(counted_bars>KPeriod) i=Bars-counted_bars-1;
while(i>=0)
{
double min=1000000;
k=i+KPeriod-1;
while(k>=i)
{
price=Low[k];
if(min>price) min=price;
k--;
}
LowesBuffer[i]=min;
i--;
}
what the mean of [ expression on global scope not allowed] ??
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
i wish to combine 2 indicator,
but seem not working.