Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 23, 2023
1 parent 8fc79db commit 46a1e71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Stg_MA_Cross_Pivot.mqh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file
* Strategy based on the moving average price indicators implementing shifted cross signal.
* Strategy based on the moving average price indicators implementing daily pivot cross signal.
*/

enum ENUM_STG_MA_CROSS_PIVOT_TYPE {
Expand Down Expand Up @@ -103,11 +103,11 @@ struct Stg_MA_Cross_Pivot_Params_Defaults : StgParams {
::MA_Cross_Pivot_SignalCloseMethod, ::MA_Cross_Pivot_SignalCloseFilter,
::MA_Cross_Pivot_SignalCloseLevel, ::MA_Cross_Pivot_PriceStopMethod, ::MA_Cross_Pivot_PriceStopLevel,
::MA_Cross_Pivot_TickFilterMethod, ::MA_Cross_Pivot_MaxSpread, ::MA_Cross_Pivot_Shift) {
Set(STRAT_PARAM_LS, MA_Cross_Pivot_LotSize);
Set(STRAT_PARAM_OCL, MA_Cross_Pivot_OrderCloseLoss);
Set(STRAT_PARAM_OCP, MA_Cross_Pivot_OrderCloseProfit);
Set(STRAT_PARAM_OCT, MA_Cross_Pivot_OrderCloseTime);
Set(STRAT_PARAM_SOFT, MA_Cross_Pivot_SignalOpenFilterTime);
Set(STRAT_PARAM_LS, ::MA_Cross_Pivot_LotSize);
Set(STRAT_PARAM_OCL, ::MA_Cross_Pivot_OrderCloseLoss);
Set(STRAT_PARAM_OCP, ::MA_Cross_Pivot_OrderCloseProfit);
Set(STRAT_PARAM_OCT, ::MA_Cross_Pivot_OrderCloseTime);
Set(STRAT_PARAM_SOFT, ::MA_Cross_Pivot_SignalOpenFilterTime);
}
};

Expand All @@ -126,7 +126,7 @@ class Stg_MA_Cross_Pivot : public Strategy {
// Initialize Strategy instance.
ChartParams _cparams(_tf, _Symbol);
TradeParams _tparams;
Strategy *_strat = new Stg_MA_Cross_Pivot(_stg_params, _tparams, _cparams, "MA");
Strategy *_strat = new Stg_MA_Cross_Pivot(_stg_params, _tparams, _cparams, "MA Pivot");
return _strat;
}

Expand All @@ -135,7 +135,7 @@ class Stg_MA_Cross_Pivot : public Strategy {
*/
void OnInit() {
// Initialize indicators.
switch (MA_Cross_Pivot_Type) {
switch (::MA_Cross_Pivot_Type) {
case STG_MA_CROSS_PIVOT_TYPE_AMA: // AMA
{
IndiAMAParams _indi_params(::MA_Cross_Pivot_Indi_AMA_InpPeriodAMA, ::MA_Cross_Pivot_Indi_AMA_InpFastPeriodEMA,
Expand Down
5 changes: 3 additions & 2 deletions Stg_MA_Cross_Pivot.mqproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"copyright" :"Copyright 2016-2023, EA31337 Ltd",
"link" :"https:\/\/github.com\/EA31337\/Strategy-MA",
"version" :"2.000",
"description" :"Strategy based on the moving average price indicators.",
"description" :"Strategy based on the moving average price indicators implementing daily pivot cross signal.",
"cpu_architecture" :"0",
"optimize" :"0",
"fpzerocheck" :"0",
"tester_no_cache":"0",
Expand Down Expand Up @@ -795,4 +796,4 @@
"relative_to_project":false
}
]
}
}

0 comments on commit 46a1e71

Please sign in to comment.