Download MetaTrader 5

Adding Arrows to Indicator

To add comments, please log in or register
tigga
19
tigga  

Points where arrows should appear

Hi 

I am trying to add Up and Down non repainting arrows at the points shown by the red lines in the screenshot above to the FX_Sniper's_Ergodic_CCI_Trigger indicator but I am failing to do this correctly. My efforts at coding only add arrows on the new candle formed.

Basically i am trying to add non repainting arrows in the main chart everytime the red and white arrows cross without the need to have a separate window showing the two lines. Can somebody please help with where I am going wrong. I am very new at mlq4 coding and am struggling

Naguisa Unada
156
Naguisa Unada  

Since the original program is too bad, you should fix this first.

However, ignoring that, I fixed it to display arrows.

You can not display both charts and arrows in this way.

You have to use objects to do that.

tigga
19
tigga  
UnadaJapon:

Since the original program is too bad, you should fix this first.

However, ignoring that, I fixed it to display arrows.

You can not display both charts and arrows in this way.

You have to use objects to do that.


Thank you Unada, works great.

To add comments, please log in or register