In MT4, one can choose the 'MA Method' applied to stochastic.
in FT, there is no option, but in the source provide, there is one MaType parameter in the function iMaOnArray ->
function iMAonArray(buffer: TIndexBuffer; total:integer; period:integer; ma_shift:integer; MAType:integer; shift:integer; prev:double): double;
which is only force to 0 = SMA in the calculate requested bar ->
Dline[index]:=iMAOnArray(Kslow,Bars,DPeriod,0,0,index,Dline[index+1]);
my question is :
- why force to 0
- why not use an option like
RegOption('MA Type', ot_EnumType, MaType);
AddOptionValue('MaType', 0);
AddOptionValue('MaType', 1);
AddOptionValue('MaType', 2);
AddOptionValue('MaType', 3);
regards
Philippe
Stochastic indicator calculation
-
- Posts: 94
- Joined: Tue Jan 31, 2012 5:14 am
- Contact:
Stochastic indicator calculation
my live account - 8 based pairs with optimized parameters : +188%
http://www.myfxbook.com/members/Philipp ... jpg/519044
TradeSlide : http://bit.ly/14R9Nf6
to be informed about Windev/MT4 services : a04486-tradingsignal@yahoo.fr
http://www.myfxbook.com/members/Philipp ... jpg/519044
TradeSlide : http://bit.ly/14R9Nf6
to be informed about Windev/MT4 services : a04486-tradingsignal@yahoo.fr
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Who is online
Users browsing this forum: No registered users and 16 guests