ストップレベルとPipsを計算するときの注意点

tocchi2023/08/07(月) - 16:53 に投稿

ストップレベルの単位はポイントなので計算するときは

    double stopLevel = MarketInfo( Symbol(), MODE_STOPLEVEL ) * Point;

Pipsの単位は業者によって違うので計算するときは

    double    PIPS = _Point*10.0;
    if ( _Digits == 2 || _Digits == 4 )
    {
        PIPS = _Point;
     }

参考
【MQL言語入門】通貨の最小価格単位を表す変数『Point』についてわかりやすく説明してみた | FX-EA System Project Creator (fx-ea-system-project.com)

 

タグ