i am a beginner to pinescript, i just wanted to have a feedback on this script, will all these alerts trigger when their condition is met? thank you in advance.
// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.0/
// © Kayden_Keiden
//@version=5
indicator("Alerts", overlay=true)
eu_price = input.float(defval=0, group="EURUSD", title="Price")
eu_message = input.string(defval="", group="EURUSD", title="Message")
eu = request.security("FX:EURUSD", timeframe.period, close)
gj_price = input.float(defval=0, group="GBPJPY", title="Price")
gj_message = input.string(defval="", group="GBPJPY", title="Message")
gj = request.security("FX:GBPJPY", timeframe.period, close)
nas_price = input.float(defval=0, group="NAS100USD", title="Price")
nas_message = input.string(defval="", group="NAS100USD", title="Message")
nas = request.security("OANDA:NAS100USD", timeframe.period, close)
if nas == nas_price
alert(eu_message)
if eu == eu_price
alert(gj_message)
if gj == gj_price
alert(nas_message)
