Forum

CSymbolInfo Refresh()

We have a plethora of options to Refresh() in the standard library . I'm already calling the CSymbolInfo library in an EA, so would the following achieve the same end result as right clicking the chart that the EA is applied to and hitting the refresh button? #include <Trade\SymbolInfo.mqh>

Ctrade ResultRetcodeDescription() question

The ResultRetcodeDescription() portion of this works on a demo account but not on a live account. Why? #include <Trade\Trade.mqh> Print ( "Buy " ,SymbolArr[N], " has been successfully completed. Code=" ,Trade.ResultRetcode(), " (" ,Trade.ResultRetcodeDescription(), ")" ); Buy EURJPY has been

preventing autosaving of a profile in MT5

If i apply an indicator to a chart then save this setup as a Profile in MT5, lets call it 'Profile1' for this example, when I load a different profile i can easily get back to the 'Profile1' setup by reloading the profile. If however i make a change to 'Profile1' by removing the indicator then move

tick testing multi-pair portfolio strategies

if i create a custom symbol similar to DXY, but which contains all of the symbols in the expert that i want to test then set the back-tester to test on that custom symbol (making sure the symbols actually tested are hard coded into the algo), will i end up with a compiled time-series of ticks for

most efficient way to call daily ATR from lower timeframes?

I'm trying to find the most code-efficient way to do the MQL5 version of calling iATR(NULL,1440,20,0) from lower time-frames for using in stop loss calculations etc. //MQL4 code = iATR(NULL,1440,20,0); //Calculate Daily ATR-------- double ATRValue[];