PineConnectorLibrary "PineConnector"
This library is a comprehensive alert webhook text generator for PineConnector. It contains every possible alert syntax variation from the documentation, along with some debugging functions.
To use it, just import the library (eg. "import ZenAndTheArtOfTrading/PineConnector/1 as pc") and use pc.buy(licenseID) to send an alert off to PineConnector - assuming all your webhooks etc are set up correctly.
View the PineConnector documentation for more information on how to send the commands you're looking to send (all of this library's function names match the documentation).
all()
โโUsage: pc.buy(pc_id, freq=pc.all())
โโReturns: "all"
once_per_bar()
โโUsage: pc.buy(pc_id, freq=pc.once_per_bar())
โโReturns: "once_per_bar"
once_per_bar_close()
โโUsage: pc.buy(pc_id, freq=pc.once_per_bar_close())
โโReturns: "once_per_bar_close"
na0(value)
โโChecks if given value is either 'na' or 0. Useful for streamlining scripts with float user setting inputs which default values to 0 since na is unavailable as a user input default.
โโParameters:
โโโโ value (float) : The value to check
โโReturns: True if the given value is 0 or na
getDecimals()
โโCalculates how many decimals are on the quote price of the current market.
โโReturns: The current decimal places on the market quote price
truncate(number, decimals)
โโTruncates the given number. Required params: mumber.
โโParameters:
โโโโ number (float) : Number to truncate
โโโโ decimals (int) : Decimal places to cut down to
โโReturns: The input number, but as a string truncated to X decimals
getPipSize(multiplier)
โโCalculates the pip size of the current market.
โโParameters:
โโโโ multiplier (int) : The mintick point multiplier (1 by default, 10 for FX/Crypto/CFD but can be used to override when certain markets require)
โโReturns: The pip size for the current market
toWhole(number)
โโConverts pips into whole numbers. Required params: number.
โโParameters:
โโโโ number (float) : The pip number to convert into a whole number
โโReturns: The converted number
toPips(number)
โโConverts whole numbers back into pips. Required params: number.
โโParameters:
โโโโ number (float) : The whole number to convert into pips
โโReturns: The converted number
debug(txt, tooltip, displayLabel)
โโPrints to console and generates a debug label with the given text. Required params: txt.
โโParameters:
โโโโ txt (string) : Text to display
โโโโ tooltip (string) : Tooltip to display (optional)
โโโโ displayLabel (bool) : Turns on/off chart label (default: off)
โโReturns: Nothing
order(licenseID, command, symbol, parameters, accfilter, comment, secret, freq, debug)
โโGenerates an alert string. Required params: licenseID, command.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ command (string) : Command to send
โโโโ symbol (string) : The symbol to trigger this order on
โโโโ parameters (string) : Other optional parameters to include
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: An alert string with valid PC syntax based on supplied parameters
market_order(licenseID, buy, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a market entry alert with relevant syntax commands. Required params: licenseID, buy, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ buy (bool) : true=buy/long, false=sell/short
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A market order alert string with valid PC syntax based on supplied parameters
buy(licenseID, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a market buy alert with relevant syntax commands. Required params: licenseID, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A market order alert string with valid PC syntax based on supplied parameters
sell(licenseID, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a market sell alert with relevant syntax commands. Required params: licenseID, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A market order alert string with valid PC syntax based on supplied parameters
closeall(licenseID, comment, secret, freq, debug)
โโCloses all open trades at market regardless of symbol. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closealleaoff(licenseID, comment, secret, freq, debug)
โโCloses all open trades at market regardless of symbol, and turns the EA off. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closelong(licenseID, symbol, comment, secret, freq, debug)
โโCloses all long trades at market for the given symbol. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closeshort(licenseID, symbol, comment, secret, freq, debug)
โโCloses all open short trades at market for the given symbol. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closelongshort(licenseID, symbol, comment, secret, freq, debug)
โโCloses all open trades at market for the given symbol. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closelongbuy(licenseID, risk, symbol, comment, secret, freq, debug)
โโClose all long positions and open a new long at market for the given symbol with given risk/contracts. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ risk (float) : Risk or contracts (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closeshortsell(licenseID, risk, symbol, comment, secret, freq, debug)
โโClose all short positions and open a new short at market for the given symbol with given risk/contracts. Required params: licenseID, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ risk (float) : Risk or contracts (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
newsltplong(licenseID, sl, tp, symbol, accfilter, comment, secret, freq, debug)
โโUpdates the stop loss and/or take profit of any open long trades on the given symbol with the given values. Required params: licenseID, sl and/or tp.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ sl (float) : Stop loss pips or price (according to EA settings)
โโโโ tp (float) : Take profit pips or price (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
newsltpshort(licenseID, sl, tp, symbol, accfilter, comment, secret, freq, debug)
โโUpdates the stop loss and/or take profit of any open short trades on the given symbol with the given values. Required params: licenseID, sl and/or tp.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ sl (float) : Stop loss pips or price (according to EA settings)
โโโโ tp (float) : Take profit pips or price (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closelongpct(licenseID, symbol, comment, secret, freq, debug)
โโClose a percentage of open long positions (according to EA settings). Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closeshortpct(licenseID, symbol, comment, secret, freq, debug)
โโClose a percentage of open short positions (according to EA settings). Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closelongvol(licenseID, risk, symbol, comment, secret, freq, debug)
โโClose all open long contracts on the current symbol until the given risk value is remaining. Required params: licenseID, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ risk (float) : The quantity to leave remaining
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
closeshortvol(licenseID, risk, symbol, comment, secret, freq, debug)
โโClose all open short contracts on the current symbol until the given risk value is remaining. Required params: licenseID, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ risk (float) : The quantity to leave remaining
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
limit_order(licenseID, buy, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a limit order alert with relevant syntax commands. Required params: licenseID, buy, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ buy (bool) : true=buy/long, false=sell/short
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A limit order alert string with valid PC syntax based on supplied parameters
buylimit(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a buylimit order alert with relevant syntax commands. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A limit order alert string with valid PC syntax based on supplied parameters
selllimit(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a selllimit order alert with relevant syntax commands. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A limit order alert string with valid PC syntax based on supplied parameters
stop_order(licenseID, buy, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a stop order alert with relevant syntax commands. Required params: licenseID, buy, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ buy (bool) : true=buy/long, false=sell/short
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
buystop(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a buystop order alert with relevant syntax commands. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
sellstop(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโGenerates a sellstop order alert with relevant syntax commands. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
cancel_neworder(licenseID, order, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโCancel + place new order template function.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ order (string) : Cancel order type
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
cancellongbuystop(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโCancels all long orders with the specified symbol and places a new buystop order. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
cancellongbuylimit(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโCancels all long orders with the specified symbol and places a new buylimit order. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
cancelshortsellstop(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโCancels all short orders with the specified symbol and places a sellstop order. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
cancelshortselllimit(licenseID, price, risk, sl, tp, betrigger, beoffset, spread, trailtrig, traildist, trailstep, atrtimeframe, atrperiod, atrmultiplier, atrshift, atrtrigger, symbol, accfilter, comment, secret, freq, debug)
โโCancels all short orders with the specified symbol and places a selllimit order. Required params: licenseID, price, risk.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ price (float) : Price or pips to set limit order (according to EA settings)
โโโโ risk (float) : Risk quantity (according to EA settings)
โโโโ sl (float) : Stop loss distance in pips or price
โโโโ tp (float) : Take profit distance in pips or price
โโโโ betrigger (float) : Breakeven will be activated after the position gains this number of pips
โโโโ beoffset (float) : Offset from entry price. This is the amount of pips you'd like to protect
โโโโ spread (float) : Enter the position only if the spread is equal or less than the specified value in pips
โโโโ trailtrig (float) : Trailing stop-loss will be activated after a trade gains this number of pips
โโโโ traildist (float) : Distance of the trailing stop-loss from current price
โโโโ trailstep (float) : Moves trailing stop-loss once price moves to favourable by a specified number of pips
โโโโ atrtimeframe (int) : ATR Trailing Stop timeframe, only updates once per bar close. Options: 1, 5, 15, 30, 60, 240, 1440
โโโโ atrperiod (int) : ATR averaging period
โโโโ atrmultiplier (float) : Multiple of ATR to utilise in the new SL computation, default = 1
โโโโ atrshift (int) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default = 0
โโโโ atrtrigger (int) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default = 0 (instant)
โโโโ symbol (string) : The symbol to trigger this order on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment (maximum 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A stop order alert string with valid PC syntax based on supplied parameters
cancellong(licenseID, symbol, accfilter, comment, secret, freq, debug)
โโCancels all pending long orders with the specified symbol. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A cancel long alert command
cancelshort(licenseID, symbol, accfilter, comment, secret, freq, debug)
โโCancels all pending short orders with the specified symbol. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: A cancel short alert command
newsltpbuystop(licenseID, sl, tp, symbol, accfilter, comment, secret, freq, debug)
โโUpdates the stop loss and/or take profit of any pending buy stop orders on the given symbol. Required params: licenseID, sl and/or tp.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ sl (float) : Stop loss pips or price (according to EA settings)
โโโโ tp (float) : Take profit pips or price (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
newsltpbuylimit(licenseID, sl, tp, symbol, accfilter, comment, secret, freq, debug)
โโUpdates the stop loss and/or take profit of any pending buy limit orders on the given symbol. Required params: licenseID, sl and/or tp.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ sl (float) : Stop loss pips or price (according to EA settings)
โโโโ tp (float) : Take profit pips or price (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
newsltpsellstop(licenseID, sl, tp, symbol, accfilter, comment, secret, freq, debug)
โโUpdates the stop loss and/or take profit of any pending sell stop orders on the given symbol. Required params: licenseID, sl and/or tp.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ sl (float) : Stop loss pips or price (according to EA settings)
โโโโ tp (float) : Take profit pips or price (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
newsltpselllimit(licenseID, sl, tp, symbol, accfilter, comment, secret, freq, debug)
โโUpdates the stop loss and/or take profit of any pending sell limit orders on the given symbol. Required params: licenseID, sl and/or tp.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ sl (float) : Stop loss pips or price (according to EA settings)
โโโโ tp (float) : Take profit pips or price (according to EA settings)
โโโโ symbol (string) : Symbol to act on (defaults to current symbol)
โโโโ accfilter (float) : Optional minimum account balance filter
โโโโ comment (string) : Optional comment to include (max 20 characters)
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
eaoff(licenseID, secret, freq, debug)
โโTurns the EA off. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
eaon(licenseID, secret, freq, debug)
โโTurns the EA on. Required params: licenseID.
โโParameters:
โโโโ licenseID (string) : Your PC license ID
โโโโ secret (string) : Optional secret key (must be enabled in dashboard)
โโโโ freq (string) : Alert frequency. Default = "all", options = "once_per_bar", "once_per_bar_close" and "none"
โโโโ debug (bool) : Turns on/off debug label
โโReturns: The required alert syntax as a string
Perpustakaan Pine Scriptยฎ

