ผมต้องการค่า Momentum in RSI ครับมันดึงออกมาไม่ตรงครับ
extern int RSI_Period = 10;
extern ENUM_APPLIED_PRICE RSI_PRICE = PRICE_WEIGHTED;
extern int Momentum_Period = 14;
double RsiBuffer[100];
double MomentumonRSI;
void GetRsi()
{
for(int n=0;n<=Momentum_Period;n++)
{
RsiBuffer[n] = iRSI(NULL,0,RSI_Period,RSI_PRICE,n);
}
MomentumonRSI = iMomentumOnArray(RsiBuffer,Momentum_Period+1,Momentum_Period,1);
Print(RsiBuffer[0]," MomentumonRSI : ",MomentumonRSI);
}
นี่คือโค๊ดที่ผมดึงค่าครับ แต่มันออกมาไม่ตรง ไม่ทราบว่าตรงไหนผิดครับ