PINE LIBRARY
업데이트됨 PlurexSignalStrategy

Library "PlurexSignalStrategy"
Provides functions that wrap the built in TradingView strategy functions so you can seemlessly integrate with Plurex Signal automation.
NOTE: Be sure to:
- set your strategy default_qty_value to the default entry percentage of your signal
- set your strategy default_qty_type to strategy.percent_of_equity
- set your strategy pyramiding to some value greater than 1 or something appropriate to your strategy in order to have multiple entries.
long(secret, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
longAndFixedStopLoss(secret, stop, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal stop loss for full open position
Parameters:
secret: The secret for your Signal on plurex
stop: The trigger price for the stop loss. See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
longAndTrailingStopLoss(secret, trail_offset, trail_price, trail_points, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal trailing stop loss for full open position. You must set one of trail_price or trail_points.
Parameters:
secret: The secret for your Signal on plurex
trail_offset: See strategy.exit documentation
trail_price: See strategy.exit documentation
trail_points: See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
short(secret, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
shortAndFixedStopLoss(secret, stop, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal stop loss for full open position
Parameters:
secret: The secret for your Signal on plurex
stop: The trigger price for the stop loss. See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
shortAndTrailingStopLoss(secret, trail_offset, trail_price, trail_points, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal trailing stop loss for full open position. You must set one of trail_price or trail_points.
Parameters:
secret: The secret for your Signal on plurex
trail_offset: See strategy.exit documentation
trail_price: See strategy.exit documentation
trail_points: See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeAll(secret, marketOverride)
Close all positions. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeLongs(secret, marketOverride)
close all longs. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeShorts(secret, marketOverride)
close all shorts. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeLastLong(secret, marketOverride)
Close last long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeLastShort(secret, marketOverride)
Close last short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeFirstLong(secret, marketOverride)
Close first long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeFirstShort(secret, marketOverride)
Close first short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
Provides functions that wrap the built in TradingView strategy functions so you can seemlessly integrate with Plurex Signal automation.
NOTE: Be sure to:
- set your strategy default_qty_value to the default entry percentage of your signal
- set your strategy default_qty_type to strategy.percent_of_equity
- set your strategy pyramiding to some value greater than 1 or something appropriate to your strategy in order to have multiple entries.
long(secret, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
longAndFixedStopLoss(secret, stop, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal stop loss for full open position
Parameters:
secret: The secret for your Signal on plurex
stop: The trigger price for the stop loss. See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
longAndTrailingStopLoss(secret, trail_offset, trail_price, trail_points, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal trailing stop loss for full open position. You must set one of trail_price or trail_points.
Parameters:
secret: The secret for your Signal on plurex
trail_offset: See strategy.exit documentation
trail_price: See strategy.exit documentation
trail_points: See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
short(secret, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
shortAndFixedStopLoss(secret, stop, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal stop loss for full open position
Parameters:
secret: The secret for your Signal on plurex
stop: The trigger price for the stop loss. See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
shortAndTrailingStopLoss(secret, trail_offset, trail_price, trail_points, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal trailing stop loss for full open position. You must set one of trail_price or trail_points.
Parameters:
secret: The secret for your Signal on plurex
trail_offset: See strategy.exit documentation
trail_price: See strategy.exit documentation
trail_points: See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeAll(secret, marketOverride)
Close all positions. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeLongs(secret, marketOverride)
close all longs. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeShorts(secret, marketOverride)
close all shorts. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeLastLong(secret, marketOverride)
Close last long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeLastShort(secret, marketOverride)
Close last short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeFirstLong(secret, marketOverride)
Close first long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
closeFirstShort(secret, marketOverride)
Close first short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
릴리즈 노트
v2We have added options fixed stop loss and take profit to the long and short functions and removed the longAndFixedStopLoss and shortAndFixedStopLoss functions.
Updated:
long(secret, stop, takeProfit, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
stop: Optional, trigger price for the stop loss. See strategy.exit documentation
takeProfit: Optional, trigger price for the take profit. See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
short(secret, stop, takeProfit, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert.
Parameters:
secret: The secret for your Signal on plurex
stop: Optional, trigger price for the stop loss. See strategy.exit documentation
takeProfit: Optional, trigger price for the take profit. See strategy.exit documentation
budgetPercentage: Optional, The percentage of budget to use in the entry.
priceLimit: Optional, The worst price to accept for the entry.
marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
Removed:
longAndFixedStopLoss(secret, stop, budgetPercentage, priceLimit, marketOverride)
Open a new long entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal stop loss for full open position
shortAndFixedStopLoss(secret, stop, budgetPercentage, priceLimit, marketOverride)
Open a new short entry. Wraps strategy function and sends plurex message as an alert. Also sets a gobal stop loss for full open position
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.