Skip to content

Commit

Permalink
Merge branch 'v3.002-dev' into v3.006-dev-new
Browse files Browse the repository at this point in the history
* v3.002-dev:
  Fixes Std.h(54,9) : warning 30: macro redefinition
  StrategyAdd: Pass EA ptr to Init()
  Trade: Improves performance issues
  Order: Adds missing order filling (fixes GH-664)
  Fixes pointer syntax for C++
  EA/Strategy/Trade: AddTask: Fixes code syntax to avoid issues with invalid pointers
  EA/Strategy/Trade: Adds AddTaskObject()
  Trade: Disables filling modes for MQL4
  Indicator: Fixes timeframe assignment in class constructor
  Removes Stats class
  Removes Ticker class
  Removes BasicTrade class
  Removes SVG class
  • Loading branch information
kenorb committed Apr 27, 2024
2 parents 1beff41 + df47294 commit 24eb87f
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 1,135 deletions.
478 changes: 0 additions & 478 deletions BasicTrade.mqh

This file was deleted.

2 changes: 1 addition & 1 deletion EA.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ class EA : public Taskable<DataParamEntry> {
bool StrategyAdd(ENUM_TIMEFRAMES _tf, long _magic_no = 0, int _type = 0) {
bool _result = true;
_magic_no = _magic_no > 0 ? _magic_no : rand();
Ref<Strategy> _strat = ((SClass *)NULL).Init(_tf);
Ref<Strategy> _strat = ((SClass *)NULL).Init(_tf, THIS_PTR);
_strat.Ptr().Set<long>(STRAT_PARAM_ID, _magic_no);
_strat.Ptr().Set<long>(TRADE_PARAM_MAGIC_NO, _magic_no);
_strat.Ptr().Set<ENUM_LOG_LEVEL>(STRAT_PARAM_LOG_LEVEL,
Expand Down
66 changes: 0 additions & 66 deletions SVG.mqh

This file was deleted.

96 changes: 0 additions & 96 deletions Stats.mqh

This file was deleted.

2 changes: 1 addition & 1 deletion Strategy.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class Strategy : public Taskable<DataParamEntry> {
*/
void SetId(long _id) {
sparams.id = _id;
((Object *)GetPointer(this)).SetId(_id);
((Object *)THIS_PTR).SetId(_id);
}

/**
Expand Down
202 changes: 0 additions & 202 deletions Ticker.mqh

This file was deleted.

Loading

0 comments on commit 24eb87f

Please sign in to comment.