6 Steps to Modifying Symbols in Metatrader 4

Are you bored looking at the same ordinary buy and sell arrows in Metatrader? Give them a personal look. Here’s a quick tutorial on how change the appearance of arrows drawn by MT4.

Comprehensive List of Metatrader Symbols

Modifying Symbols in Metatrader 4

6 Steps to modifying symbols in Metatrader indicators (see an example below)

1) Open MetaEditor.

Modifying Symbols in Metatrader 4

2) Load preferred indicator into MetaEditor. (select from the Navigator window)

3) Use any of the above Metatrader symbols to modify “SetIndexArrow” code.

4) Compile the code in MetaEditor. (press F5)

5) Save indicator.

6) Restart Metatrader.

Example) Original Code

//+——————————————————————+

//| Custom indicator initialization function |

//+——————————————————————+

int init()

{

//—- indicators

SetIndexStyle(0, DRAW_ARROW, EMPTY,1);

SetIndexArrow(0, 233);

SetIndexBuffer(0, CrossUp);

SetIndexStyle(1, DRAW_ARROW, EMPTY,1);

SetIndexArrow(1, 234);

SetIndexBuffer(1, CrossDown);

//—-

return(0);

}

Modifying Symbols in Metatrader 4

Modified Code

//+——————————————————————+

//| Custom indicator initialization function |

//+——————————————————————+

int init()

{

//—- indicators

SetIndexStyle(0, DRAW_ARROW, EMPTY,1);

SetIndexArrow(0, 221);

SetIndexBuffer(0, CrossUp);

SetIndexStyle(1, DRAW_ARROW, EMPTY,1);

SetIndexArrow(1, 222);

SetIndexBuffer(1, CrossDown);

//—-

return(0);

}

Modifying Symbols in Metatrader 4

Spread the knowledge