TradingView
A3Sh
Aug 15, 2021 5:43 PM

ROC_PA_Strategy (A3Sh) 

Binance Coin / TetherUSBinance

Description

Hi there,

An experiment with rate of price change in combination with price averaging. The strategy is inspired by Price Change Scalping Strategy developed by Prosum Solutions and Scalping Dips On Trend Strategy developed by Coinrule. Both strategies look at the percentage of price change to open orders.

When the price drops beyond a specified percentage, a order entry threshold (yellow line) is setup. The order entry threshold is only active for a specified number of bars and will de-activate when not crossed within the specified number of bars. When the price drops further and crosses the entry threshold with a minimum of a specified percentage, a long position is entered. The same reverse logic (white line) used to close the long position.

I first ran the strategy without stop loss and take profit and that worked very well in a bullish market. I later added stop loss and take profit and that seems to work better in a side ways or bearisch market. There are a lot of tweaking possibilities in the settings.

In the settings you can specify the percentage of portfolio to use for each trade to spread the risk and for each order a trading fee of 0.075% is calculated.





Release Notes

Cleaned up the script and replaced the comment parts of the strategy entry and exit with generic comments instead of my Autoview comments. If you want to create an alert with a strategy enter this line in the Message section '{{strategy.order.comment}}'.

Release Notes

I discovered a flaw. The long position closed even after the closing limit line was inactive. I changed this flaw into a feature that you can switch on or off.
Updated the script to version 5
Changed the default settings and optimized it for BNB/PERP 30min. on FTX
Comments
nhtngn85
Thank you so much !
dracount
Hi thank you. What's the best way to choose pairs to trade with this strategy?
A3Sh
Hi @dracount, I didn't make it with a specific pair in mind. So I would suggest to play around with different pairs and the settings. I used the 15M timescale, I think changing this to higher timescales will not work so well. Also, I mostly trade with usd(t) pairs. Maybe the script are bit biased to those pairs. Good luck!
landonpieper92
Can this be used with 3commas?
A3Sh
Hi @landonpieper92, I am not familiar with 3 commas, but you can put webhook messages in the comment sections of the strategy commands.
Eliseu01
Hey A3SH! Great work! Thank you very much. In your trades in bearish moments, how do you was setting SL?
A3Sh
Hi @Eliseu01, I backtested strategy on a bnb/usdt pair on a 15 min. timeframe with different settings. The settings that are hardcoded in the script I found the best and most stable. We came from a very bullish season, but from 12 May the market turned bearisch for a coupe of weeks. If you want to have an idea of how the strategy behaves in a down trend take a look at the period between 12 and 23 May. Best wishes A3Sh
abinash7
Great one.Can you please write a script for short entry as well.
A3Sh
Hi @abinash7, I experimented with short entries, but they are always tricky. Feel free to adapt the script into short entries and look for yourself how it works. Best wishes A3Sh
abinash7
@A3Sh, Thanks a ton
More