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