yesmider

profit_trailer_basktesting_v3

yesmider Updated   
I rewrite the code of v2.
There are some differences between v2:


1. PT 2.0 support multi-strategy up to 5. => the script have A...E buy inputs.
Not support new strategies now, I'm not sure how they work in PT 2.0, I will add them if the wiki complete.
you may find the options in setting, but they are placeholders.

I will not add the indicators for RSI, MACD, and STOCH RSI, please use the built-in indicator in Tradingview. There is no way to change overlay state of a script in pine script as I know or you can pm me if you know about it.

2. Trailing is disabled now.
I have no idea how it works in multi-strategy, I will enable it if the PT 2.0 release.

3. Now you can set indicator period in the setting, the unit of it is minute different from PT itself.
the entry price of orders still depending on your chart resolution, so I recommend you set the chart resolution same as the main strategy you want.
Like SOM trigger in V2, there is data range limit depend on the resolution you choose.

4. DCA is rewriting now.
And I will release an Anderson only version if I have time to complete it.

5. Add rebuy timer and stop loss timer. the value of it is candles. it will look back N candles on the chart.


Feel free to donate if you think my scripts are useful.

BTC:17eguEeVVnLmYK9iDKQNxBQmKWNENH4bGj
ETH:0xb172BBc4CDAB7F334243A312A46FB8492674A914
BCH:qpy0zulq9s4pcqu3hd2m8h8h7tfm83jz7qle0690c4
Release Notes:
add DCA. No indicators now.
Release Notes:
fix rebuy and stop loss timer did not work correctly.
add switches for strategy indicator and price trigger (indi_ prefix).

add indicator for rebuy and stop loss (yellow area) and possible buy point(green area).
Release Notes:
minor fix
Release Notes:
Just back from vacation.

add MACD, RSI, STOCH, BBWIDTH strategy.
PM if you find any bug or something.
Release Notes:
fix an issue for dca rebuy timer.
fix rebuy and stop loss indicator did not show currently.
Release Notes:
3.4 update:
add stoch rsi strategy.
Release Notes:
update 3.5
add trailing buy and profit
Note:
we can't get the historical order book by tradingview, it's a simulation by high or low when signal triggered.

set 0 to disable if you don't want to use it.
Release Notes:
fix stochrsi strategy value 0 to 1
Release Notes:
fix a bug that dca max profit not working

Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

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.

Want to use this script on a chart?