'Pinescript Alert triggers too often

//@version=4
study("Weekly Alert", overlay = true, format=format.price, precision=5)

[ AUDCADHigh, AUDCADHighMin1, AUDCADLow, AUDCADLowMin1, AUDCADRealTime ] = security("FX_IDC:AUDCAD", "W", [ high, high[1], low, low[1], barstate.isrealtime ])
if ( AUDCADHigh > AUDCADHighMin1 and AUDCADLow > AUDCADLowMin1 and AUDCADRealTime )
    alert("Some Text", alert.freq_once_per_bar)

I am using the above code and apply the alert to a weekly EURUSD Chart. I only want to trigger the alert one time a week, but it triggers multiple times a day. Does anyone know why that is and how i can correct it?

Thanks for help ...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source