Forum

OnChartEvent - manage button clicks

Hi, I have the following question related to the button click events within the OnChartEvent function. This is the scenario: - I have created a panel and a button should show / hide the button. - The button is an bmpButton, and the image should be different when the panel is shown, and when it is

BmpButton - Image dont appear

Hi, I'm not sure what I do wrong, and hope anyone can help me with this one. I try to add a bmp button to a dialog/panel, but the bmp image isnt shown. I do see the button in the objects list on the Chart, but the image itself is not shown. This is the code: CAppDialog MyInterface; CBmpButton

Scale for MAs within indicator window

Hi, If you add a moving average into an indicator (like rsi) window (applies to closed bars), it will show the moving average of the price of the symbol of the chart. This is what I want, however I’m wondering how MT4 is defining the scale for those moving averages. Example: if you have a indicator

Style not changed to DashDot for VLINE Object

Hi, I try to add a vertical line to a new chart. For that, I use the following code: new_chart= ChartOpen ( Symbol (), Period ()); ObjectCreate (new_chart," Alert ", OBJ_VLINE , 0 , StrToTime(date_time), 0 ); ObjectSetInteger (new_chart," Alert ", OBJPROP_STYLE , STYLE_DASHDOT ); ObjectSetInteger

Trades not closed as per the Signal I follow

All, Does anyone know why 2 trades were not closed for the signal I follow? Other trades were closed normally, but two stayed open. I got the following messages in the journal: As a result both trades where closed much later which big losses. The connection was in place with the signal provider