OPEN-SOURCE SCRIPT
업데이트됨 Strategy template V1

Strategy Template v1
This strategy script is a template with different exit options, entry filters, and conditions already coded in.
This script is heavily tested to make sure no repainting or misfires are happening.
All that's left to do is put your own entry conditions into the script, and you can start testing/trading.
// explanation
streak loss control:
This function allows you to stop the strategy for a x amount of time, if the strategy has a x amount of losing trades in a row.
Max Drawdown:
This function will make the strategy stop trading when the Max drawdown is hit.
Long and Short Positions:
Allows you to only trade Long or Short positions with an easy toggle.
Allowed hours:
Allows you to choose during which hours of the day you want your strategy to be allowed to trade.
Stoploss/trail percentage, ATR or swing:
With this option, you can choose what kind of stop loss or trailing stop you want for your strategy. You can further adjust these settings below depending on what option you pick.
Choose if you want your stop to be trailing or static.
Stop loss/trailed %/ATR:
Further adjust your settings with the amount of distance the stoploss trails or, when static, starts from trade open.
With the option closed bar, the trade only exits when the bar closes, breaking the stop/trail. With intra bar, the trade exits as soon as it touches the stop/trail.
Stop Loss/Trail swing exit:
Based on the recent swing high/low.
Same functions as Stop loss/trailed %/ATR.
Is used as the default static stoploss.
// This is a smaller version of a more complicated strategy template.
// other versions also include: partial exits, leverage trading, and better risk management.
// let me know if there is intressed in the other versions.
This strategy script is a template with different exit options, entry filters, and conditions already coded in.
This script is heavily tested to make sure no repainting or misfires are happening.
All that's left to do is put your own entry conditions into the script, and you can start testing/trading.
// explanation
streak loss control:
This function allows you to stop the strategy for a x amount of time, if the strategy has a x amount of losing trades in a row.
Max Drawdown:
This function will make the strategy stop trading when the Max drawdown is hit.
Long and Short Positions:
Allows you to only trade Long or Short positions with an easy toggle.
Allowed hours:
Allows you to choose during which hours of the day you want your strategy to be allowed to trade.
Stoploss/trail percentage, ATR or swing:
With this option, you can choose what kind of stop loss or trailing stop you want for your strategy. You can further adjust these settings below depending on what option you pick.
Choose if you want your stop to be trailing or static.
Stop loss/trailed %/ATR:
Further adjust your settings with the amount of distance the stoploss trails or, when static, starts from trade open.
With the option closed bar, the trade only exits when the bar closes, breaking the stop/trail. With intra bar, the trade exits as soon as it touches the stop/trail.
Stop Loss/Trail swing exit:
Based on the recent swing high/low.
Same functions as Stop loss/trailed %/ATR.
Is used as the default static stoploss.
// This is a smaller version of a more complicated strategy template.
// other versions also include: partial exits, leverage trading, and better risk management.
// let me know if there is intressed in the other versions.
릴리즈 노트
-오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.