Forum

How to fix flickering bitmap when updating its size accordingly?

Below is a code that creates 2 bitmap object. These objects gets resized accordingly whenever there's changes to the chart ie slide, zoom. You will see those objects flickering when you slide & zoom. Thanks! #property copyright "Copyright 2023, MetaQuotes Ltd." #property link "

How to create multiple Bitmaps using single CCanvas object?

How to create multiple Bitmap using CCanvas? I have coded a sample code below. When you attach it, you will see only 1 Bitmap instead of 2. Notice in the CreateBitmap function, both has a different name. #property copyright "Copyright 2023, MetaQuotes Ltd." #property link "

How to change color of lines?

How do you change color of lines? I have set 5 colors into indicator_color1,3 & 5. Assigned INDICATOR_COLOR_INDEX after INDICATOR_DATA When activating the indicator, the color is red instead changing blue & green. Please advise, code is below, thank you

MQL5 doesn't change color when signal change

I'm practicing coding MQL5. Below is a simple RSI indicator. I added a logic to change color but the line won't change. Below are the buffers initialization code SetIndexBuffer ( 0 ,ExtRSIBuffer, INDICATOR_DATA ); SetIndexBuffer ( 1 ,colorBuffer, INDICATOR_COLOR_INDEX ); SetIndexBuffer ( 2

Is the back test spread in pips or point?

Please kindly explain Is the back test spread in pips or point? For instance if the spread is 0.5 pips. What value should I input in the Backtest? Is it 5 or 50? Thank you