Skip to content

Commit

Permalink
Fixes sell signal logic (fixes GH-11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Aug 17, 2023
1 parent af3f7fe commit 98863d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stg_TMA_True.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Stg_TMA_True : public Strategy {
_result &= _indi.IsIncByPct(_level, TMA_TRUE_MAIN, _ishift, 3);
break;
case ORDER_TYPE_SELL:
_result &= _chart.GetLow(_ishift + 1) >= _indi[_ishift][(int)TMA_TRUE_UPPER];
_result &= _chart.GetHigh(_ishift + 1) >= _indi[_ishift][(int)TMA_TRUE_UPPER];
_result &= _indi.IsDecreasing(1, TMA_TRUE_MAIN, _ishift);
_result &= _indi.IsDecByPct(-_level, TMA_TRUE_MAIN, _ishift, 3);
break;
Expand Down

0 comments on commit 98863d5

Please sign in to comment.