PINE LIBRARY
TradersPostDeluxe

Library "TradersPostDeluxe"
TradersPost integration. It's currently not very deluxe
SendEntryAlert(ticker, action, quantity, orderType, takeProfit, stopLoss, id, price, timestamp, timezone)
Sends an alert to TradersPost to trigger an Entry
Parameters:
ticker (string): Symbol to trade. Default is syminfo.ticker
action (series Action): TradersPostAction (.buy, .sell) default = buy
quantity (float): Amount to trade, default = 1
orderType (series OrderType): TradersPostOrderType, default =e TradersPostOrderType.market
takeProfit (float): Take profit limit price
stopLoss (float): Stop loss price
id (string): id for the trade
price (float): Expected price
timestamp (int): Time of the trade for reporting, defaults to timenow
timezone (string): associated with the time, defaults to syminfo.timezone
Returns: Nothing
SendExitAlert(ticker, price, timestamp, timezone)
Sends an alert to TradersPost to trigger an Exit
Parameters:
ticker (string): Symbol to flatten
price (float): Documented planned price
timestamp (int): Time of the trade for reporting, defaults to timenow
timezone (string): associated with the time, defaults to syminfo.timezone
Returns: Nothing
TradersPost integration. It's currently not very deluxe
SendEntryAlert(ticker, action, quantity, orderType, takeProfit, stopLoss, id, price, timestamp, timezone)
Sends an alert to TradersPost to trigger an Entry
Parameters:
ticker (string): Symbol to trade. Default is syminfo.ticker
action (series Action): TradersPostAction (.buy, .sell) default = buy
quantity (float): Amount to trade, default = 1
orderType (series OrderType): TradersPostOrderType, default =e TradersPostOrderType.market
takeProfit (float): Take profit limit price
stopLoss (float): Stop loss price
id (string): id for the trade
price (float): Expected price
timestamp (int): Time of the trade for reporting, defaults to timenow
timezone (string): associated with the time, defaults to syminfo.timezone
Returns: Nothing
SendExitAlert(ticker, price, timestamp, timezone)
Sends an alert to TradersPost to trigger an Exit
Parameters:
ticker (string): Symbol to flatten
price (float): Documented planned price
timestamp (int): Time of the trade for reporting, defaults to timenow
timezone (string): associated with the time, defaults to syminfo.timezone
Returns: Nothing
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.