ใช้ฟังก์ชั่น
double iStochastic(
string symbol, // symbol
int timeframe, // timeframe
int Kperiod, // K line period
int Dperiod, // D line period
int slowing, // slowing
int method, // averaging method
int price_field, // price (Low/High or Close/Close)
int mode, // line index
int shift // shift
);
ตัวอย่าง
double var = iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,0);