Errors, bugs, questions - page 1634
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
It could be simpler. To start the visualization with a forward.
The next visualization will be started on the second, forward, visualization
Hover your mouse over the account in the navigator. You can see it in the account tooltip.
When you connect to the account the terminal log says netting or hedging
Previously on application #1534780 about leading constructor call where the result of attached code was
2016.08.10 16:39:26.982 Test (GBPUSD,M15) void A::~A():12855
2016.08.10 16:39:26.982 Test (GBPUSD,M15) OnDeinit:3
2016.08.10 16:39:26.975 Test (GBPUSD,M4) void A::A():17233
2016.08.10 16:39:15.587 Test (GBPUSD,M15) void A::A():12855
the answer (*) was as follows:
Support Team 2016.08.11 13:35
If so, then the following example shows a delayed constructor call
Sequence of actions:
Result:
2016.08.11 15:51:51.188 Test (GBPUSD,M15) void A::A():17936
2016.08.11 15:51:50.932 Test (GBPUSD,H1) void A::~A():12285
2016.08.08.11 15:51:50.931 Test (GBPUSD,H1) OnDeinit:3
2016.08.11 15:51:39.421 Test (GBPUSD,H1) void A::A():12285
it should be (see *) - the underlined line should come 2nd (in time), not last
Indicator calculation takes place in a separate symbol thread, setting the chart period and creating a clone takes place in a GUI thread
This is why a situation can occur when a new indicator is calculated before the previous one is deleted and vice versa.
Character flow operation (abstract)
Depending on which point the symbol stream was in, the sequence of initializing a new indicator and deleting the old one depends on it.
That's right."may come in handy on rare occasions".
Hover your mouse over the bill in the navigator. You will see the account's tooltip.
After connecting to the account, the terminal log will show netting or hedging
Programmatically how?!
MQL5 Reference - Standard Constants, Enumerations and Structures - Environment State - Account Information - ENUM_ACCOUNT_MARGIN_MODE
MQL5 Reference Manual - Account Information - AccountInfoInteger - ENUM_ACCOUNT_INFO_INTEGER - ENUM_ACCOUNT_MARGIN_MODE
MQL5\Include\Trade.mqh - CTrade::IsHedging
MQL5 Reference - Standard Constants, Enumerations and Structures - Environment State - Account Information - ENUM_ACCOUNT_MARGIN_MODE
MQL5 Reference Manual - AccountInfoInteger - ENUM_ACCOUNT_INFO_INTEGER - ENUM_ACCOUNT_MARGIN_MODE
MQL5\Include\Trade.mqh - CTrade::IsHedging