Have you tried with MAOnly = true; ?
Yes. What I am looking for is the ability to get rid of the price values on the right hand side of the indicator. So I can have a 0.00 or a zero-line for exit purposes.
DaveFX
Yes. What I am looking for is the ability to get rid of the price values on the right hand side of the indicator. So I can have a 0.00 or a zero-line for exit purposes.
DaveFX
Yes. What I am looking for is the ability to get rid of the price values on the right hand side of the indicator. So I can have a 0.00 or a zero-line for exit purposes.
DaveFX
Not really sure how you can expect to have a zero line if the values drawn are only positive values ?
I am not a programmer, but surly there must be a way? Mustn't there??
Not really sure how you can expect to have a zero line if the values drawn are only positive values ?
Yep, I agree with ya..
Whatever it is, Davefx, add this on init()
int init() { ... // your other ... ... // ... codes SetLevelValue (0,0.0); SetLevelStyle (STYLE_DOT, 2, Lime ); //<<== Lime color of thick 2 dotted line return (0); }
You can add more lines if you like, just write SetLevelValue (1, 1,25) which means set horizontal level number 1 (up to number 31) at 1.25 value, SetLevelValue (https://docs.mql4.com/customind/SetLevelValue) and SetLevelStyle (https://docs.mql4.com/customind/SetLevelStyle)
:D
Yep, I agree with ya..
Whatever it is, Davefx, add this on init()
You can add more lines if you like, just write SetLevelValue (1, 1,25) which means set horizontal level number 1 (up to number 31) at 1.25 value, SetLevelValue (https://docs.mql4.com/customind/SetLevelValue) and SetLevelStyle (https://docs.mql4.com/customind/SetLevelStyle)
:D
Hi onewithzachy,
I did try what you recommended.. But to no avail..
Hi onewithzachy,
Thanks it worked.
Is there a way around the small problem of ridding the indicator of the values on the right hand side??
Any help would be most appreciated.
Thanks again.
DaveFx
- 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,
I would like the code below to have the price values removed (from the right hand side of the indicator) so I can place a zero-line on the indicator BUT I do not know how to code.
Would someone out there be kind enough to tell or show me how to do this?
If so, I'll buy them a pint or two!
Thanks - if you can help.
DaveFx