Hi All
Can someone please give me some pointers/advice on what to do when the data window shows different value then the iCustom value ?
Example :
Code:
Not looking for Exact code , just some advice to solve this issue ?
Fix your code, you have to figure out the count of the candles
Fix your code, you have to figure out the count of the candles
Hi amando thank you for your response , i thought thought [5] is supposed to be the candle count ? is that incorrect ?
double val3= LTDindicator3[5] ;this indicator does not draw for last 5 candles and only draws candle 6 and backwards so i was trying to get the indicator value for 5th candle or 6th no matter what candle i use i always get wrong value
- In the comment Buffer 2 might show some residuals
- At 16:17 both are 0.0 but/and (by default?) zero values are not shown and left empty in the Data Window
See: https://www.mql5.com/en/docs/constants/indicatorconstants/drawstyles#enum_plot_property_double
PLOT_EMPTY_VALUE
An empty value for plotting, for which there is no drawing
double
- To normalize the many decimals in Comment() use DoubleToString().
- www.mql5.com
- In the comment Buffer 2 might show some residuals
- At 16:17 both are 0.0 but/and (by default?) zero values are not shown and left empty in the Data Window
- To normalize the many decimals in Comment() use DoubleToString().
@Carl Schreiber thanks for you comment , residuals and normalizing isnt a big problem , but the main issue is the with the Buffer 2 and buffer 3 if you take a look at the screenshot Buffer2 shows 1.0 where as the data window shows nothing /0
so if data window is correct then iCustom should also show 0 for Buffer2 , correct ?
@Carl Schreiber thanks for you comment , residuals and normalizing isnt a big problem , but the main issue is the with the Buffer 2 and buffer 3 if you take a look at the screenshot Buffer2 shows 1.0 where as the data window shows nothing /0
so if data window is correct then iCustom should also show 0 for Buffer2 , correct ?
I don't know the indicator so I'm guessing, but that looks like a color buffer to me (that's why it shows 1, which would be the color index of the buffer 2 in this case). Those buffers are not visible in the data window. An easy way to check if there is any is in the indicator colors tab (in its settings) and see if there is more than one color in any row.
If that's the case you should check buffer 3 and 4, instead of 2 and 3 (and the value that returns CopyBuffer, if 4 is a valid buffer it will be greater than 0).
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi All
Can someone please give me some pointers/advice on what to do when the data window shows different value then the iCustom value ?
Example : Buffer 0 and buffer 1 are showing correct values but buffer 3 and buffer 2 are showing wrong values
Code:
Not looking for Exact code , just some advice to solve this issue ?