Grid ToolThe core idea of this grid tool is that you have to concentrate less on the trade entries (this happens automatically time-independent but price-dependant) but rather on the validity of the macro trend. Exiting a trend when it is no longer valid is more important than entering a trade. But as long as the trend is valid, the trader participates exponentially in the overall trend.
It is advisable to start with a basic position and then "set up" the grid on this in a ratio of 1/10.
A major advantage of grid trading is that the average entry price in a trend moves further and further away from the current market price while the position continues to grow.
A small timeframe should be used so that the distance between the trades corresponds as closely as possible to the selected grid gap and since TV backtests are carried out with closed bars.
Before starting a grid, pre-analysis the market to make sure it is trending. Select the grid gap and grid position size that you are comfortable with. Monitor the trend and from time to time take some profit :).
PS: The ADX filter looks interesting.
Gridtrading
Cyato Grid Basic Buy & Sell [BACKTEST]Private indicator
This Grid bot strategy creates buy orders when the price goes down one level or more, and sell order when the price goes up one level or more.
To avoid useless trades, the lastest traded level is disabled until another level is crossed.
To create the grid, one upper level and one lower level is calculated. Those 2 levels are either given by the user using "MANUAL" mode or automatically calculated by an AI. The space between these two levels are then divided equally into several steps, creating the grid. The number of steps is chosen by the user, from 3 to 20.
HOW IT WORKS
This is the Backtest version meaning this is the one you should use with the Strategy Tester (more below).
Select either "MANUAL" or "AI" mode.
When using "MANUAL", you have to configure an upper level and a lower level.
When using "AI", the upper and lower level are automatically calculated from last 7 days high/low plus a 3% deviation. You can configure the timeframe and the deviation.
Select the grid quantity, from 3 to 20.
Example with 3:
Example with 10:
Example with 20:
You can choose between "Once Per Bar Close" or "Once Per Bar" alert type.
"Once Per Bar Close" will wait candle close to confirm a trade.
"Once Per Bar" will trigger a trade if the price crossed a step anytime inside a candle. Note that the backtest will still use bar close price in its calculation.
BACKTESTING
The strategy will buy 1 contract when a BUY signal appears and sell 1 contract when a SELL signal appears.
Here 1 contract = 1 BTC
The strategy can buy up to 20 contracts. Pyramiding is enabled.
The Backtest info panel is here to show how many trades are open in the backtest.
I know very well that a backtest has no value if several trades are left open. That is why I coded a feature to close all open trades at once on the last candle. This feature can be turned on and off.
To get this indicator, use the link in my signature below, thanks!
inwCoin Ultimate Grid StrategyinwCoin Ultimate Grid Strategy is the proof of concept of infamous grid trading strategy.
IDEA :
- The idea is to put the price level as a grids on the chart and when price cross up or cross down it will enter position.
- If the price move to next level it will take profit the last level and enter new position.
Caution :
- If market is trending into one direction, it's not wise to run this strategy counter trend. eg. run short grid when trend is up or run long grid when trend is down.
- So make sure you have something to define the big trend like Moving Average (18) TF weekly.
- I still can't try in range market ( sideway ) because this strategy using 5 min TF to work and tradingview don't provide data back that far.
How to use
1) Find out which start value of your asset that you want to use. Eg. BTC is 8000 for this time ( 22/2/2020 )
2) Define the spread of each grid as percent. ( eg. 2% for BTC ). You can choose small percent like 0.2% or 0.01 in asset like currency or altcoin/btc
3) The default grid level is 20 grids, so you can try and try again until you happy with the result.
4) This strategy is fix position size so it can easily calculate.
5) Don't forget to check "Properties" tab to try changing capital size and fee rate to match your criteria
6) This strategy is not perfect, it just some proof of concept to see if the strategy is working in real trade.
Extra :
If you want to access to alert for this strategy you can inbox me for detail.


