yesmider

profit_trailer_basktesting_v3

yesmider Mis à jour   
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
Notes de version:
add DCA. No indicators now.
Notes de version:
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).
Notes de version:
minor fix
Notes de version:
Just back from vacation.

add MACD, RSI, STOCH, BBWIDTH strategy.
PM if you find any bug or something.
Notes de version:
fix an issue for dca rebuy timer.
fix rebuy and stop loss indicator did not show currently.
Notes de version:
3.4 update:
add stoch rsi strategy.
Notes de version:
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.
Notes de version:
fix stochrsi strategy value 0 to 1
Notes de version:
fix a bug that dca max profit not working

Script protégé
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?