Will this script work as intended on basic account?

Viewed 32

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)
1 Answers

Yes, the alerts will work once their conditions are met. Since you are using the alert() function, they will count as one.

However, you can only have one active alert on a basic account.

enter image description here

Related