[STRATEGY][RS]The Illusion Strategy V0

1494 görüntülenme
WARNING: this strategy does not work!!
one of the fallacy's of backtesting, renko chars signals usually will give signals when price is allready out of range.
Yorum: for reference this is what happens:
Açık kaynak kodlu komut dosyası

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
strategy(title='[STRATEGY][RS]The Illusion Strategy V0', shorttitle='S', overlay=true, pyramiding=3, initial_capital=100000)
trade_size = 10000

buy_entry = close > open
sel_entry = close < open

strategy.entry('buy', long=strategy.long, qty=trade_size, comment='buy', when=buy_entry)
strategy.entry('sell', long=strategy.short, qty=trade_size, comment='sell', when=sel_entry)