จะให้มัน extern ค่าของอะไรออกมาครับ
double l_imacd_48 = iMACD(NULL, 0, 3, 26, 9, PRICE_CLOSE, MODE_MAIN, 0);
double l_imacd_56 = iMACD(NULL, 0, 3, 26, 9, PRICE_CLOSE, MODE_MAIN, 1);
double l_imacd_64 = iMACD(NULL, 0, 3, 26, 9, PRICE_CLOSE, MODE_SIGNAL, 0);
double l_imacd_72 = iMACD(NULL, 0, 3, 26, 9, PRICE_CLOSE, MODE_SIGNAL, 1);
double l_ima_80 = iMA(NULL, 0, 2, 0, MODE_EMA, PRICE_HIGH, 0);
double l_ima_88 = iMA(NULL, 0, 2, 0, MODE_EMA, PRICE_HIGH, 1);
double l_ima_96 = iMA(NULL, 0, 2, 0, MODE_EMA, PRICE_LOW, 0);
double l_ima_104 = iMA(NULL, 0, 2, 0, MODE_EMA, PRICE_LOW, 1);
double l_ima_112 = iMA(NULL, 0, 9, 0, MODE_SMA, PRICE_CLOSE, 0);
double l_ima_120 = iMA(NULL, 0, 9, 0, MODE_SMA, PRICE_CLOSE, 5);
double l_ima_128 = iMA(NULL, 0, 9, 0, MODE_SMA, PRICE_CLOSE, 1);
double l_ima_136 = iMA(NULL, 0, 6, 0, MODE_SMA, PRICE_CLOSE, 0);
double l_ima_144 = iMA(NULL, 0, 6, 0, MODE_SMA, PRICE_CLOSE, 1);
double l_ima_152 = iMA(NULL, 0, 6, 0, MODE_SMA, PRICE_CLOSE, 2);
double l_ima_160 = iMA(NULL, 0, 6, 0, MODE_EMA, PRICE_CLOSE, 1);
double l_ima_168 = iMA(NULL, 0, 6, 0, MODE_SMA, PRICE_CLOSE, 5);
double l_ima_176 = iMA(NULL, 0, 3, 0, MODE_EMA, PRICE_CLOSE, 0);
double l_ima_184 = iMA(NULL, 0, 3, 0, MODE_EMA, PRICE_CLOSE, 1);
int li_192 = Crossed(l_ima_184, l_ima_128);
double l_istddev_196 = iStdDev(NULL, 0, 9, 0, MODE_EMA, PRICE_CLOSE, 0);
double l_istddev_204 = iStdDev(NULL, 0, 9, 0, MODE_EMA, PRICE_CLOSE, 1);
double l_iwpr_212 = iWPR(NULL, 0, 17, 0);
double l_iwpr_220 = iWPR(NULL, 0, 17, 1);
double l_iwpr_228 = iWPR(NULL, 0, 17, 2);
double l_iwpr_236 = iWPR(NULL, 0, 45, 0);
double l_iwpr_244 = iWPR(NULL, 0, 45, 1);
double l_idemarker_252 = iDeMarker(NULL, 0, 19, 0);
double l_idemarker_260 = iDeMarker(NULL, 0, 19, 1);
double l_idemarker_268 = iDeMarker(NULL, 0, 19, 2);
double l_istochastic_276 = iStochastic(NULL, 0, 9, 3, 5, MODE_EMA, 0, MODE_MAIN, 0);
double l_istochastic_284 = iStochastic(NULL, 0, 9, 3, 5, MODE_EMA, 0, MODE_MAIN, 1);
double l_istochastic_292 = iStochastic(NULL, 0, 9, 3, 5, MODE_EMA, 0, MODE_SIGNAL, 0);
double l_istochastic_300 = iStochastic(NULL, 0, 9, 3, 5, MODE_EMA, 0, MODE_SIGNAL, 1);
if (l_istochastic_284 < l_istochastic_300 - 5.0 && l_istochastic_276 >= l_istochastic_292) li_16 = TRUE;
if (l_istochastic_284 > l_istochastic_300 + 5.0 && l_istochastic_276 <= l_istochastic_292) li_20 = TRUE;
if (l_istochastic_284 > l_istochastic_300 && l_istochastic_276 > l_istochastic_292) li_24 = TRUE;
if (l_istochastic_284 < l_istochastic_300 && l_istochastic_276 < l_istochastic_292) li_28 = TRUE;
double l_istochastic_308 = iStochastic(NULL, 0, 7, 4, 4, MODE_SMA, 0, MODE_MAIN, 0);
double l_istochastic_316 = iStochastic(NULL, 0, 7, 4, 4, MODE_SMA, 0, MODE_MAIN, 1);
double l_istochastic_324 = iStochastic(NULL, 0, 7, 4, 4, MODE_SMA, 0, MODE_SIGNAL, 0);
double l_istochastic_332 = iStochastic(NULL, 0, 7, 4, 4, MODE_SMA, 0, MODE_SIGNAL, 1);
if (l_istochastic_316 < l_istochastic_332 - 5.0 && l_istochastic_308 >= l_istochastic_324) li_32 = TRUE;
if (l_istochastic_316 > l_istochastic_332 + 5.0 && l_istochastic_308 <= l_istochastic_324) li_36 = TRUE;
if (l_istochastic_316 > l_istochastic_332 && l_istochastic_308 > l_istochastic_324) li_40 = TRUE;
if (l_istochastic_316 < l_istochastic_332 && l_istochastic_308 < l_istochastic_324) li_44 = TRUE;
double l_irsi_340 = iRSI(NULL, 0, 9, PRICE_CLOSE, 0);
double l_irsi_348 = iRSI(NULL, 0, 9, PRICE_CLOSE, 1);
double l_irsi_356 = iRSI(NULL, 0, 9, PRICE_CLOSE, 2);
double ld_unused_364 = 0;
if (l_irsi_340 < 30.0) ld_unused_364 = 1;
if (l_irsi_340 > 70.0) ld_unused_364 = 2;
double l_ibands_372 = iBands(NULL, 0, 14, 2, 0, PRICE_CLOSE, MODE_LOWER, 1);
double l_ibands_380 = iBands(NULL, 0, 14, 2, 0, PRICE_CLOSE, MODE_LOWER, 2);
double l_ibands_388 = iBands(NULL, 0, 14, 2, 0, PRICE_CLOSE, MODE_UPPER, 1);
double l_ibands_396 = iBands(NULL, 0, 14, 2, 0, PRICE_CLOSE, MODE_UPPER, 2);
double l_iadx_404 = iADX(NULL, 0, 14, PRICE_HIGH, MODE_MAIN, 0);
double l_iadx_412 = iADX(NULL, 0, 14, PRICE_HIGH, MODE_PLUSDI, 0);
double l_iadx_420 = iADX(NULL, 0, 14, PRICE_HIGH, MODE_PLUSDI, 1);
double l_iadx_428 = iADX(NULL, 0, 14, PRICE_HIGH, MODE_MINUSDI, 0);
double l_iadx_436 = iADX(NULL, 0, 14, PRICE_HIGH, MODE_MINUSDI, 1);
-----------------
ตรงที่มีการประกาศตัวแปรแล้วเก็บค่า ของอินดี้ต่าง ๆ นี่ล่ะครับ พอดีเห็นแต่ละตัวแปรเก็บค่าหลายอย่างเลย ไม่รู้จะ extern แบบไหนดี งงจัง
อินดี้ที่มีทั้งหมดครับ
iMACD
iMA
iStdDev
iWPR
iDeMarker
iStochastic
iRSI
iBands
iADX