Wick retest on a Moving Average

 

Hello,
I'm in the process of writing an indicator with Moving Averages. The goal should be that the indicator will give an alert as soon as the wick of a closed candle touches a moving average. Roughly speaking, it should give a signal as soon as a retest has been done on a Moving Average candle by the wick of the candlestick. Unfortunately I don't know how to do this.

Can you help me please?


Thanks :)

Files:
Retest.png  1 kb
 
PhilippR1:

Hello,
I'm in the process of writing an indicator with Moving Averages. The goal should be that the indicator will give an alert as soon as the wick of a closed candle touches a moving average. Roughly speaking, it should give a signal as soon as a retest has been done on a Moving Average candle by the wick of the candlestick. Unfortunately I don't know how to do this.

Can you help me please?


Thanks :)

If you can define "touches a moving average" in a way that the coder will write it for you, then the indicator can be done, kindly let me know in that case

Reason: