Forum

Extend trendline - ObjectSetInteger problem

In one of my indicators, I am using the command ObjectSetInteger(0,name,OBJPROP_TIME,1,TimeCurrent()); to automatically extend an existing trendline up to the current time. Unfortunately, the slope is changed in the process, rendering the trendline unusable or requiring manual correction. Is this

MT5 - Bug in strategy tester? Creating trendline

Hi, I have coded an indicator, which creates trendlines (MT5). It is working without any problems with live ticks - but I am not able to get it working in strategy tester . Please have a look at the code below for creating the trendlines - with the test data, it should create a short horizontal line

OnChartEvent not properly working?

I would like to show and hide objects on a chart using the key "H". So I have added code to an indicator, but it is not working properly. Code in OnInit //---Allow Chart Events ChartSetInteger ( 0 , CHART_EVENT_OBJECT_CREATE , true ); ChartSetInteger ( 1 , CHART_EVENT_OBJECT_CREATE , true );

Mql5 coding question

Hi, I have coded an indicator which usually swings between 0 and 100, but sometimes in a closer range. In the indicator window, tab "Scale" I can set a fixed minimum and a fixed maximum value by clicking the checkboxes and entering a value. By unchecking the checkboxes in that indicator window the

MT 5 Build 1490 - EA does not accept inputs since build update !!

Hi, since update to build 1490, my EA does not accept any changes to the default inputs. One can change the parameters , click OK - and after opening of the input window again, all parameters are back to default. Even saving the set and loading does not change the parameters, all parameters are

Problems with iATR - timeframe ignored??

Hi, please help me with a problem in my EA I don't understand... int OnInit() {... AtrMainHandle = iATR(_Symbol,inpATRTimeframe,100); ... } void OnTick() { a = Calculate_ATR(inpATRTimeframe,100); } //+------------------------------------------------------------------+ //|