// 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)
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.