Skip to content

Commit

Permalink
Check pivot for the day before
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 5, 2023
1 parent 953d904 commit 733bd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stg_MA_Cross_Pivot.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class Stg_MA_Cross_Pivot : public Strategy {
}
// float _level_pips = (float)(_level * _chart.GetPipSize());
double _value1 = _indi[_ishift][0];
ChartEntry _ohlc_d1 = _chart.GetEntry(PERIOD_D1, _shift, _chart.GetSymbol());
ChartEntry _ohlc_d1 = _chart.GetEntry(PERIOD_D1, _shift + 1, _chart.GetSymbol());
double _d1_pivot = _ohlc_d1.bar.ohlc.GetPivot();
switch (_cmd) {
case ORDER_TYPE_BUY:
Expand Down

0 comments on commit 733bd26

Please sign in to comment.