OPEN-SOURCE SCRIPT
Updated

Initial template

2822
I have created a starting template for strategies.

It allows quick control of turning on/off long and short conditions, or disabling them entirely.

It includes trade filters for strategy equity and volatility. If there is not enough volatility it will not trade, or if the strategy equity is below the equity ema it will not trade.

It has standard stops and limits.

Simply change the long/short conditions!

Release Notes
  • Added the exit logic from adolgov's stepped stop loss (
    Stepped trailing strategy example
    )
  • Added functions to record when condition is met and save the status of when strategy is long or short
  • Added option to wait for the trigger to open the position then wait for a better price
  • removed informational segments and old risk management parameters/orders
  • calculated a profitable strategy using the template
Release Notes
Added interoperable comments
Release Notes
Corrected the strategy
Release Notes
Comment feature at the top of script now

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.