EA Programing => ปัญหาที่พบในการเขียน EA => Topic started by: chartwat on พฤษภาคม 27, 2014, 04:52:49 pm

Title: เราจะรับค่าจาก indicator oscillitor ( Scothastic ossciliitor) ยังไงครับ
Post by: chartwat on พฤษภาคม 27, 2014, 04:52:49 pm
เราจะรับค่าจาก indicator oscillitor ( Scothastic ossciliitor) ยังไงครับ
โดยรับ time frame 0 , 1 นะครับ
Title: Re: เราจะรับค่าจาก indicator oscillitor ( Scothastic ossciliitor) ยังไงครับ
Post by: admin on พฤษภาคม 27, 2014, 08:14:51 pm
ใช้ฟังก์ชั่น

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



Title: Re: เราจะรับค่าจาก indicator oscillitor ( Scothastic ossciliitor) ยังไงครับ
Post by: chartwat on พฤษภาคม 27, 2014, 10:48:30 pm
ขอบคุณครับ admin ใจดีสุด ๆ เลย