TradingView
thequantscience
4 фев 2023 г., 18:14

Rocket Grid Algorithm - The Quant Science 

Bitcoin / TetherUSBinance

Описание

The Rocket Grid Algorithm is a trading strategy that enables traders to engage in both long and short selling strategies. The script allows traders to backtest their strategies with a date range of their choice, in addition to selecting the desired strategy - either SMA Based Crossunder or SMA Based Crossover.

The script is a combination of trend following and short-term mean reversing strategies. Trend following involves identifying the current market trend and riding it for as long as possible until it changes direction. This type of strategy can be used over a medium- to long-term time horizon, typically several months to a few years.

Short-term mean reversing, on the other hand, involves taking advantage of short-term price movements that deviate from the average price. This type of strategy is usually applied over a much shorter time horizon, such as a few days to a few weeks. By rapidly entering and exiting positions, the strategy seeks to capture small, quick gains in volatile market conditions.

Overall, the script blends the best of both worlds by combining the long-term stability of trend following with the quick gains of short-term mean reversing, allowing traders to potentially benefit from both short-term and long-term market trends.

Traders can configure the start and end dates, months, and years, and choose the length of the data they want to work with. Additionally, they can set the percentage grid and the upper and lower destroyers to manage their trades effectively. The script also calculates the Simple Moving Average of the chosen data length and plots it on the chart.

The trigger for entering a trade is defined as a crossunder or crossover of the close price with the Simple Moving Average. Once the trigger is activated, the script calculates the total percentage of the side and creates a grid range. The grid range is then divided into ten equal parts, with each part representing a unique grid level. The script keeps track of each grid level, and once the close price reaches the grid level, it opens a trade in the specified direction.

The equity management strategy in the script involves a dynamic allocation of equity to each trade. The first order placed uses 10% of the available equity, while each subsequent order uses 1% less of the available equity. This results in the allocation of 9% for the second order, 8% for the third order, and so on, until a maximum of 10 open trades. This approach allows for risk management and can help to limit potential losses.

Overall, the Rocket Grid Algorithm is a flexible and powerful trading strategy that can be customized to meet the specific needs of individual traders. Its user-friendly interface and robust backtesting capabilities make it an excellent tool for traders looking to enhance their trading experience.
Комментарии
ryanrplanet
Hi, this script looks excellent! However, I can't get it to perform any trades when applying it to my BTC/USDT graph. Are there any inputs I should change to get it working?
thequantscience
@ryanrplanet, thank you. I developed this script in order to return a pop up error when the strategy goes bankrupt. If you find the red pop up, it means the strategy does not generate profit. If you don't find this error, please check that all features inside the UI are enabled.
ryanrplanet
@thequantscience, Awesome thanks for your help!
Manishtak2020
hi,how can i test this strategy on indian markets
andreamosca73
Hi, the strategy looks very promising, from your screenshot, but I can't replicate it on BTC/USD, could you provide the settings you used? Thanks!
ForthEorlingas
it's not working on BTCUSD, what's problem sir ?
abstract_guy
thanks! this is excellent! Would it be possible for you to create an indicator version with alerts?
lukricky
if there is any error of this pinescript ? i find no signals on my graph , i use the 5 mins dow jones graph, thanks
autoexecbat08
thx for your work
thequantscience
@autoexecbat08, you are welcome brother.
Ещё