Please help in coding this

Can you please share code for following

Should alert whenever following happens

  1. Whenever 5m candle close crosses high of first 15m candle or previous day high

  2. Whenever 5m candle close crosses low of first 15m candle or previous day low

thanks and regards

As your condition contains with different timeframes, it can not be defined on same chart or can not be coded with tradescript

Is it possible in AFL?