// 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)
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.