A3Sh

ROC_PA_Strategy (A3Sh)

A3Sh Updated   
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
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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?