Download MetaTrader 5
To add comments, please log in or register
Have you developed a profitable strategy? Share it with millions of traders via Signals!
d.bignotti
71
d.bignotti 2016.01.14 09:53 

I'm making an Indicator that recognize candle, trying to paint the candle and i see that there's a DRAW_COLORCANDLE  option, but nothing on Documentation to help me understand how it works.

 

Right now i'm using histogram like the file in here (https://www.mql5.com/en/code/10623) . But the main problem is that histogram needs to change size the more i zoom in our out!

 

Any suggestion is appreciated! Thank you. 

Keith Watford
Moderator
7887
Keith Watford 2016.01.14 10:36  
I believe that DRAW_COLORCANDLE   is only available in mq5
d.bignotti
71
d.bignotti 2016.01.14 11:01  

Ok, but i get this if i try to write DRAW_ ....

 

Keith Watford
Moderator
7887
Keith Watford 2016.01.14 11:15  

Yes, when they added some mq5 features to mq4, they also added some auto completes that have not been implemented in mq4,

I think that only DRAW_ARROW in your drop-down list is relevant to mq4. 

d.bignotti
71
d.bignotti 2016.01.14 11:19  
Ok thank you, any suggestion to change thiickness of histogram when i zoom in or out?
Keith Watford
Moderator
7887
Keith Watford 2016.01.14 11:52  
d_bignotti:
Ok thank you, any suggestion to change thiickness of histogram when i zoom in or out?

In OnChartEvent()

check id CHARTEVENT_CHART_CHANGE and check zoom value with

  long zoom=ChartGetInteger(0,CHART_SCALE,0);

 and if it has changed, re-size the histogram accordingly

d.bignotti
71
d.bignotti 2016.01.14 13:22  
Thank you very much!
/
To add comments, please log in or register