TradingView
UnknownUnicorn2151907
30 Th08 2019 10:08

🐮 🆚 🐻 [Backtest] 

Mô tả

It's a remake of the previous script but for use in reverse positions at the same time.
In this script the reality could be even better than the Backtest, because, only close the position with profit, so profitability should be 100%, and Longs and Shorts don't mix because they are independent.
In real trade, you need an exchange that allows you to go in reverse positions at the same time or where you can have two independent sub-accounts: one for long and one for short and with margin trading. Although, if TP is small and does not mix with other inverse positions, it's not necessary. (With this script, you can go long and short at the same time and with independent configurations)
Settings for ETH at 5 minutes. (If you find good settings please comment)

Enjoy!

Phát hành các Ghi chú

Stop Loss Added.
Bình luận
cyatophilum
/!\ Just a warning /!\
The results are great for this time period because you use the strategy limit option to close your trades only if they are in profit.
But what happens if price does not reaches this profit point during the period of the backtest ?
These orders are left open, and the potential losses are not shown in the backtest results.
You can see that by using replay mode and going back to 5th august.

Other than that, very interesting script!
yubinpeng
mine is pyramiding even though the setting is at 0..
Starlord
Thank you! Great stuff!
tiamo3733
Thx
Seleme
Pyramiding whatever I do. And that's why the results are so good.
yousefx1
great work!
Can you update it there is a problem with it Pyramiding
96b31d34302749e6bd028b7cd81bb8
Hi, how to remove Long 1, long 2 and leave only long or short.
tsts123
Why is it pyramiding when the feature is turned off?
DTCash
@tsts123, the pyramiding function only affects strategy.entry functions and not strategy.order functions, which is what has been used in this script to enter positions.
This link explains it all.
backtest-rookies.com/2018/08/17/tradingview-pyramiding/

If you want pyramiding to work you need copy the script code and replace the strategy.order with strategy.entry
tsts123
@DTCash, The point was that I didn't want pyramiding to work. Part of the reason the results are so good, sadly seem to be that even if you're trading 100% balance, this strategy makes multiple entries (100% balance each). It tricks TV into thinking your cost average is lower than it is, and so it eventually finds a good take profit target. The results change pretty dramatically if you change to strategy.entry.

There's still a few good scenarios, so still appreciate that you shared this, just wanted to make sure you and others are aware.
Thêm nữa