I verify that SymbolSelect has issue with the StrategyTester. The problem may occurs on the fact that the symbols of the strategy
tester are the symbols on Market watch by default. So, i will make an update to the framework with following change:
Regards
Thank you Dionisis, That change is working fine for me now :)
This library's clarity and ease of use have made a remarkable difference in my development process. I'm grateful to have discovered such a well-designed tool after three years of coding, and I appreciate the effort that went into its creation.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
Thank you!
I verify that SymbolSelect has issue with the StrategyTester. The problem may occurs on the fact that the symbols of the strategy tester are the symbols on Market watch by default.
So, i will make an update to the framework with following change:
Regards
When opening a position, using
execute.Position(type,volume,stopLoss,takeProfit,SLTP_PIPS);
How can I add a comment to the position?
Hi,
Of course.
Example:
execute.Position(type,volume,stopLoss,takeProfit,SLTP_PIPS,10,"EA POSITION");
10 => the deviation
"EA POSITION" => comment
When creating a position object using the command,
CPosition positionBuy(symbol,magicNumber, GROUP_POSITIONS_BUYS);
Is it possible to have it ignore the magicNumber so that any magic number is included?
Thanks
Kim
When creating a position object using the command,
CPosition positionBuy(symbol,magicNumber, GROUP_POSITIONS_BUYS);
Is it possible to have it ignore the magicNumber so that any magic number is included?
Thanks
Kim
Hi,
if you don't set the magic number of the position object (like position.SetGroupMagicNumber(12345)), then the magic number will be ignored.
The above example print the total number of BUY positions regardless the magic number.
Hi,
if you don't set the magic number of the position object (like position.SetGroupMagicNumber(12345)), then the magic number will be ignored.
The above example print the total number of BUY positions regardless the magic number.
Thanks