Forum

Unpredictable OrderCreate behaviour, events never fire

OnInit I have ChartSetInteger ( 0 , CHART_EVENT_OBJECT_CREATE , true ); Creating an object on millisecond timer uint Span= 1000 ; uint Next= GetTickCount ()-Span; int counter; void OnTimer () { if (Next<=( GetTickCount ()+Span)) { counter++; string name= "TestObj_" +(

"Object name is already used" error audible or visual cue

When I am renaming a a chart object manually and the name already exits on the chart I get an a Journal entry: 2018.03.03 05:59:30.509 Objects Object name test is used already. But there is no visual or audible cue if the Journal tab is invisible, same is true for some other errors that are the

MT5 and excessive CPU usage after with custom symbols

I had following custom symbols on FxPro MT5: USDXe = (1/EURUSD+USDJPY+1/GBPUSD+USDCHF+USDCAD+1/AUDUSD+1/NZDUSD)/7 EURXe = (EURUSD+EURJPY+EURGBP+EURCHF+EURCAD+EURAUD+EURNZD)/7 JPYXe = (1/USDJPY+1/EURJPY+1/GBPJPY+1/CHFJPY+1/CADJPY+1/AUDJPY+1/NZDJPY)/7 GBPXe =

last in MqlTick stuct

https://docs.mql4.com/constants/structures/mqltick Leaves it a bit unclear what variable last in the stuck rally is. Could someone please clarify is last of the ask or bid values or what? Thanks

Possible to get old comment of a chart?

Is it possible to programmatically get old comment, printed by Comment() function for purpose of adding new line to the old comment