Forum

Cannot count bars correct when switching from TF with few bars to one with plenty

https://www.mql5.com/en/forum/130523 I am having an issue in an EA I am trying to write and which has to do with Bars or iBars counting. When I compile or attach the EA on the desired TF, the Bars are counted correctly: When I switch from daily to monthly TF, it reads the Bars correctly and goes on

Replace an ascii string with a wingding possible?

Is there any way to replace + ascii sign with a wingding char (225 - arrow up) when the former is set as string and used in objectsettext as part of a bigger text? i.e. if (cur1>=(euril+eurih)/2) { eurm = "+"; } else eurm = "-"; when invoked by ObjectSetText("object","D1: " + DoubleToStr(euril,0) +

Compiled file size and way of working

I am creating a custom indicator and I am facing a dilemma on the approach I am currently using. The indicator creates approximately 300-400 labels (prices & calculation results), most of which are live updated, like a hud. My initial approach was to create each label like that: obname=Name+ " " +