Edit Coding For Indicators In Mt4
Do you know how i edit the template directly to change the candles to a slightly slimmer one? they are looking a bit chubby on pimps template hence i'm using dans slimmer one. I've worked out how to do it to an individual chart but not the actual template itself...
Thanks
Hi Bearface
This is how to change the code to edit indicators in MT4 which will make the change permanent across all your charts.
First, if you are intending to change any colours right click on the candle on your chart, select
Properties
Colours
Choose the colour from the palette (nicely co-ordinated please, Zak is good at Interior Design and all that malarky) and make a note of the exact spelling, spacing and upper/lowercase format as you will need to type this EXACTLY into the coding.
OK, here we go for Heiken Ashi to change colours and/or thickness of the candle:-
In MT4 (MetaTrader), with your charts showing, go to the tool bar and select
View
Navigator
Custom Indicators
Right click on "Heiken Ashi" (or whichever indicator you wish to change)
Select "
Modify"
This brings up a new window (takes a second) called "MetaEditor - [Heiken Ashi]" (see screenshot)
If you want to create a new indicator, on the toolbar click on
File
Save As
and rename, say "Heiken Ashi Slim" (this should default to your "Indicators" folder)
Then click "
ok" - the tab at the top should now be your new indicator name.
NOTE: If you rename the indicator you will have to load it onto your charts again. If you just change the code on the existing indicator it will change wherever that indicator is loaded.
You should see in the window the code for the indicator - the screenshot shows this clearly.
Next
or if you just want to change the existing indicator
Just type over the existing colour with the colour you want
or
Just change the line width to the width you want - the higher the number, the fatter the line.
Then you have to scroll down and change them again under "SetIndexStyle..." again, see screenshot.
Make sure you don't delete any of the ) or , or you will be up the creek without a paddle.
When you are done being Picasso click on "
Compile" on the toolbar.
In the bottom window (Description) you should see "
0 error(s), 0 warning(s)" if you've done it correctly, if you have errors you have probably typed the colour wrong or, well, completely messed up really!
But... if you have the "0" message you can close the MetaEditor window and if you have changed the original indicator's coding you should have hot pink and lime green candles (or whatever you chose), or, if you renamed the indicator you can load it onto your charts.
Sorry it's so waffly but it takes some explaining.
If you don't fancy being a bit nerdy I attach my fat and thin Heiken Ashi which you can save into your "Experts/Indicators" folder.
Happy coding
Da Vinci RS