Discussion of article "DoEasy. Controls (Part 31): Scrolling the contents of the ScrollBar control" - page 4
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
I got it. Thanks.
Cured by adding the line this.m_request.type_filling = this.m_type_filling;
in CTradeObj::ClosePosition
is cured by adding the line this.m_request.type_filling = this.m_type_filling;
in CTradeObj::ClosePosition
Everything is much simpler.
Initially, all test EAs have an example of library initialisation - a function launched from the OnInit() handler
Inside this function there are such lines:
//--- Setting correct order expiry and fill types for all trade objects engine.TradingSetCorrectTypeExpiration(); engine.TradingSetCorrectTypeFilling();Tested the work on the symbol DKKSEK. It has a Return|IOC order filling policy.
Positions are opened and closed. Orders are set.