ExtMapBuffer4[pos]=iMAOnArray(ExtMapBuffer3,0,14,pos,MODE_SMA,0);
the first thing i don't understand why i have to insert "pos" in the
iMaOnArray funtion as argument nr. 4 instead of nr. 7.
From the manual:limit=Bars-counted_bars; for(i=limit-1; i>=0; i--) ExtBuffer[i]=iMAOnArray(ExtMABuffer,Bars,5,0,MODE_SMA,i);The last parameter is the starting position to use. leave 4 as a zero.
But for this work EXTMapBuffer3 must be filled so iMAonArray can function
but your loop only calculated indicator_counted bars not ALL bars
Count down like the above example
WHRoeder:
From the manual: The last parameter is the starting position to use. leave 4 as a zero.
But for this work EXTMapBuffer3 must be filled so iMAonArray can function
but your loop only calculated indicator_counted bars not ALL bars
Count down like the above example
From the manual: The last parameter is the starting position to use. leave 4 as a zero.
But for this work EXTMapBuffer3 must be filled so iMAonArray can function
but your loop only calculated indicator_counted bars not ALL bars
Count down like the above example
works! thx
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 am currently developing a entry strategy based on bollingerbands.
for trend direction i use the BB-main line as signal line and a iMaOnArray(14) of the BB-main.
for better explanation here is a pic:
Blue line is the BB-band 31
Red line is iMaOnArray(14) of BB-band31
as you can see in the code below i am using this 2 functions for filling the buffers:
the first thing i don't understand why i have to insert "pos" in the iMaOnArray funtion as argument nr. 4 instead of nr. 7.
second is that this funtion requires a imense amount of calculation time. so backtesting/optimizing is not a option.
what is tried i using
instead of
results in the strategy-tester are the same, but option 1 seems to be faster.
but in visual mode, the second indicator line is drawn only after the time the indicator is addet. (as seen on the screenshot)
can anyone explain me the correct use of iMaOnArray since it wont work as the documantation let asume. also i dont understand why it would be so "expensive" to calculate?
i hope you get my point.
//Michael
here is the whole souce code: