// Original final conditions (not removed, but we will improve strategy using SSL conditions) buy_condition_final = buy_condition_bb and buy_condition_trend and buy_sell_condition_vol sell_condition_final = sell_condition_bb and sell_condition_trend and buy_sell_condition_vol
// Close conditions close_condition_long = sell_condition_bb close_condition_short = buy_condition_bb
// Entries and exits with SSL conditions (no qty specified, uses 10% of capital by default settings) if longEntryCondition strategy.entry('Long', strategy.long) alert('78304410994772,buy,BTCUSD,risk=0.1', alert.freq_once_per_bar_close)
if longExitCondition strategy.close("Long") alert('78304410994772,close_condition_long,BTCUSD,risk=0.1', alert.freq_once_per_bar_close)
if shortEntryCondition strategy.entry('Short', strategy.short) alert('78304410994772,sell,BTCUSD,risk=0.1', alert.freq_once_per_bar_close)
if shortExitCondition strategy.close("Short") alert('78304410994772,close_condition_short,BTCUSD,risk=0.1', alert.freq_once_per_bar_close)
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.