mql5 icustom如何多次调用同一个指标,不同的参数?

 

我想调用两次stochastic这个指标,并且这三个参数是不同的值,存放在两个缓冲区,请问如何实现?

int stochastic_handle;
...
icuston(NULL,0,"stochastic_handle",InpKPeriod,InpDPeriod,InpSlowing);
....


 

使用兩個Handle


int stockastic_handle0:

.....

icustom(NULL,0," stockastic_handle0 ",InpK0,inpD0,InpS0);

......

int  stockastic_handle1:

.....

icustom(NULL,0," stockastic_handle1 ",InpK01,inpD1,InpS1);

.....

 
Hung Wen Lin #:

使用兩個Handle


int stockastic_handle0:

.....

icustom(NULL,0," stockastic_handle0 ",InpK0,inpD0,InpS0);

......

int  stockastic_handle1:

.....

icustom(NULL,0," stockastic_handle1 ",InpK01,inpD1,InpS1);

.....

谢谢老师!解决了困惑!
原因: