Stochastic indicator calculation

How to create strategies and indicators
Message
Author
Phil_Trade
Posts: 94
Joined: Tue Jan 31, 2012 5:14 am
Contact:

Stochastic indicator calculation

#1 Postby Phil_Trade » Tue Apr 24, 2012 6:27 am

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
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

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#2 Postby FT Support » Tue Apr 24, 2012 2:24 pm

Hello Philippe,

Yes, you are right, we'll add this option later, for now you can simply compile the indicator with advanced options and post it here, thank you.
Check our other product here:
http://www.forexcopier.com


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 16 guests