ramsay09

Grid Tool

ramsay09 מעודכן   
The 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.
הערות שחרור:
Selectable timeframes for exit filters added.
הערות שחרור:
Take Average-Entry Profit added. I think the option of automatic profit-taking makes sense.
הערות שחרור:
Screenshot issue.
הערות שחרור:
Additional time frames for exit filters added.
Two fractals trend lines as entry-filter and exit-filter added.
הערות שחרור:
Entry filter timeframes added.
הערות שחרור:
Tooltips added and minor changes.
הערות שחרור:
Minor changes.
הערות שחרור:
Sorry... take profit is now working with shorts correctly. I'm too much long focused at Bitcoin :) .
הערות שחרור:
Minor changes.
הערות שחרור:
Changed/adapted the strategy parameters.
הערות שחרור:
Automatic increase in position size for each trade (Martingale) added. In my opinion, Martingale is too risky to trade. But it's part of trading...
הערות שחרור:
Stop loss based on average-entry price added.
הערות שחרור:
First position size factor added.
הערות שחרור:
Local top/bottom added as start price for stop loss grid (position reduction starts earlier).
הערות שחרור:
Pin bar entry signal added.
Automatic increase in position size revised.
הערות שחרור:
Minor changes.
הערות שחרור:
Screenshot issue.
הערות שחרור:
Strategy comments revised.
הערות שחרור:
"Bug" fixed.
הערות שחרור:
Tooltips revised.
הערות שחרור:
"Top/Bottom sensitivity" added.
הערות שחרור:
"First position" bug fixed.
Minor improvements.
הערות שחרור:
Script revised and some new features/improvements added.
הערות שחרור:
Removed "Backtest (...)".
הערות שחרור:
Repainting option added.
הערות שחרור:
Strategy entry id bug fixed.
הערות שחרור:
Script converted to Pine v5.
"Quantity" for exit filters added.
הערות שחרור:
Info panel for unrealized profit/loss added.
Bug fixes.
New filters added (ema1 x ema2, macd slope, hma).
הערות שחרור:
Filter and exits revised.
Trade direction "both" added.
הערות שחרור:
Strategy 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).
הערות שחרור:
"Strategy trigger and border levels" bug fix.
הערות שחרור:
Panel revised.
הערות שחרור:
Script revised (filters, exits, live trading comments).
הערות שחרור:
Exit bug fixed.
הערות שחרור:
"Remain idle after crossing border level" added.
Bollinger Bands added.
Scalping mode is unfinished.
הערות שחרור:
Minor corrections.
הערות שחרור:
Minor changes. pubished to get help with mutable variable.
הערות שחרור:
Bollinger Bands filter revised.
Button "Close All When Border Level Is Crossed." added.
הערות שחרור:
Live trading bug fixed / conditions revised.
TP and SL counter added.
Break even added.
הערות שחרור:
Border level logic revised (read tooltips for more info).
הערות שחרור:
Border level logic revised.
הערות שחרור:
"Border level close" revised.
הערות שחרור:
Code revised/updated.
Inputs rearranged.
Trigger and border lines revised.
הערות שחרור:
Inputs 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.
הערות שחרור:
Close Partly On Break Even added.
הערות שחרור:
Break even on live trading bug fixed.
הערות שחרור:
Minor changes.
הערות שחרור:
"Close & Stop" added.
הערות שחרור:
Screen shot issue.
הערות שחרור:
Live trading bug fixed.
הערות שחרור:
Live trading bugs fixed. "Auto increase in position size" bug on live trading is still pending.
הערות שחרור:
"Min Lot Size" for repetitive break even on backtesting added.
Break even bug fixed.
הערות שחרור:
Made break even "Min Lot size" available for live trading.
הערות שחרור:
Short entry bug fixed.
הערות שחרור:
Added 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 = enabled
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?