Grid Tool — Strategy by ramsay09
By ramsay09
Performance Metrics
- Author: ramsay09
- Symbol: BYBIT:BTCUSD.P
- Timeframe: 2 minutes
- Net P&L: +81,739.00 USD (+686.51%)
- Win Rate: 88.4%
- Profit Factor: 17.127
- Max Drawdown: 10,800.21 USD (108.00%)
- Total Trades: 69
- Sharpe Ratio: 0.928
Description
Feb 5, 2021The 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.Mar 6, 2021Release NotesSelectable timeframes for exit filters added. Mar 6, 2021Release NotesTake Average-Entry Profit added. I think the option of automatic profit-taking makes sense. Mar 6, 2021Release NotesScreenshot issue.Mar 13, 2021Release NotesAdditional time frames for exit filters added.Two fractals trend lines as entry-filter and exit-filter added.Mar 15, 2021Release NotesEntry filter timeframes added.Apr 28, 2021Release NotesTooltips added and minor changes.Apr 29, 2021Release NotesMinor changes.Apr 30, 2021Release NotesSorry... take profit is now working with shorts correctly. I'm too much long focused at Bitcoin :) .May 4, 2021Release NotesMinor changes.May 26, 2021Release NotesChanged/adapted the strategy parameters. Jun 4, 2021Release NotesAutomatic increase in position size for each trade (Martingale) added. In my opinion, Martingale is too risky to trade. But it's part of trading...Jun 20, 2021Release NotesStop loss based on average-entry price added. Jun 27, 2021Release NotesFirst position size factor added. Jul 20, 2021Release NotesLocal top/bottom added as start price for stop loss grid (position reduction starts earlier). Aug 4, 2021Release NotesPin bar entry signal added.Automatic increase in position size revised. Aug 12, 2021Release NotesMinor changes.Aug 12, 2021Release NotesScreenshot issue.Aug 13, 2021Release NotesStrategy comments revised. Aug 13, 2021Release Notes"Bug" fixed.Aug 15, 2021Release NotesTooltips revised.Aug 22, 2021Release Notes"Top/Bottom sensitivity" added.Aug 29, 2021Release Notes"First position" bug fixed. Minor improvements.Sep 13, 2021Release NotesScript revised and some new features/improvements added.Sep 24, 2021Release NotesRemoved "Backtest (...)".Oct 5, 2021Release NotesRepainting option added. Oct 9, 2021Release NotesStrategy entry id bug fixed.Oct 13, 2021Release NotesScript converted to Pine v5."Quantity" for exit filters added.Oct 29, 2021Release NotesInfo panel for unrealized profit/loss added.Bug fixes.New filters added (ema1 x ema2, macd slope, hma).Nov 4, 2021Release NotesFilter and exits revised.Trade direction "both" added.Nov 14, 2021Release NotesStrategy border levels added.Repainting revised.Live trading parameters for Alertatron and Bybit added (I am not an affiliate of them. I am just using their services).Nov 15, 2021Release Notes"Strategy trigger and border levels" bug fix.Nov 16, 2021Release NotesPanel revised.Nov 29, 2021Release NotesScript revised (filters, exits, live trading comments).Nov 29, 2021Release NotesExit bug fixed.Dec 14, 2021Release Notes"Remain idle after crossing border level" added.Bollinger Bands added.Scalping mode is unfinished.Dec 15, 2021Release NotesMinor corrections.Dec 19, 2021Release NotesMinor changes. pubished to get help with mutable variable.Dec 20, 2021Release NotesBollinger Bands filter revised.Button "Close All When Border Level Is Crossed." added.Jan 5, 2022Release NotesLive trading bug fixed / conditions revised.TP and SL counter added.Break even added.Jan 7, 2022Release NotesBorder level logic revised (read tooltips for more info). Jan 7, 2022Release NotesBorder level logic revised.Jan 7, 2022Release Notes"Border level close" revised.Jul 19, 2022Release NotesCode revised/updated. Inputs rearranged.Trigger and border lines revised.Jul 26, 2022Release NotesInputs rearranged for a better usability."Instant Grid" added."Instantly On Current Bar Close" option for 1st Entry added.Trigger and border lines are bar high/low sensitive now.In backtesting, everything seems to be working as it should. Everything is also implemented for live trading but I haven't tested it live yet.Jul 28, 2022Release NotesClose Partly On Break Even added.Jul 28, 2022Release NotesBreak even on live trading bug fixed.Jul 31, 2022Release NotesMinor changes.Jul 31, 2022Release Notes"Close & Stop" added.Jul 31, 2022Release NotesScreen shot issue.Aug 1, 2022Release NotesLive trading bug fixed. Aug 2, 2022Release NotesLive trading bugs fixed. "Auto increase in position size" bug on live trading is still pending.Aug 14, 2022Release Notes"Min Lot Size" for repetitive break even on backtesting added. Break even bug fixed.Aug 14, 2022Release NotesMade break even "Min Lot size" available for live trading.Aug 19, 2022Release NotesShort entry bug fixed.Sep 30, 2022Release NotesAdded scalper mode (only for backtesting). This still needs to be worked out, but hopefully conveys the idea I was trying to implement. I'm not following the development any further as it doesn't make sense with the current state of Tradingview's 'Strategy Tester'. Further development would only make sense with a 'strategy tester' similar to that of MT4/MT5.The example doesn't use the scalping mode. All parameters are default but Trade direction = short, trend start = 2022-08-10, Break even = "Partly close" enabled, Stop loss count = enabledFeb 2Release NotesPartly revised. Removed Alertatron.