OPEN-SOURCE SCRIPT
Updated

Price Deviation Strategy

3 143
This strategy getting in long position only after the price drop
The % of the drop is Determined by SMA for the first trade
The inputs of SMA and % of the drop can be adjust from the User
After that bot start taking safe trades if not take profit from the first trade
The safe trades are Determined by step down deviation % and by quantity
There is no Stop loss is not for one with small tolerance to getting under
Take profit is average price + take profit - note if you use % trailing profit back test is not realistic but is working on real time
Max Safe Trades = 15
Capital max = $30000
Doge-USDT is just a example What the Strategy Can do
Green line - take profit
Black line - Brake even with fee - adjust for exchange








Release Notes
price drop for bull market is added
if sma is rising 3 bars - ta.rising(avg.price,3) the strategy switch to the bull treshold
if you don't need it make them the same
plot for sma- avg_price is added
Release Notes
add number of bars to rising for bull market
Release Notes
add info table

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.