Trend back pending order
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 5
Trend Reversal Grid EA — Structure-Based Entries with a Smart Backup Grid
This is a trend-following trading robot for MetaTrader 5. It waits for the market to show a real trend, times its entry using a pullback in momentum, and only if that trade starts going wrong does it bring in a backup system to manage the situation — rather than trading blind from the start.
What it does well
It looks at recent price swings to work out whether the market is actually trending up or down before it ever considers a trade. It then checks that the broader trend direction, a shorter-term price average, and a momentum reading all agree with that trend, so it's not just reacting to noise.
Once it enters a trade, it doesn't automatically start placing extra backup orders. It only activates its backup grid if the original trade moves a certain distance against you without hitting its profit target first. If the trade just works, nothing else happens — no extra risk is added.
When the backup grid does activate, it's managed as its own separate basket of trades with a shared profit target that updates automatically as more orders fill, so the whole group is working toward one clean exit.
Every trade — whether it's the original trade or one from the backup grid — is protected two ways: a trailing stop that locks in profit as price moves in your favor, and a "giveback" protection that closes the trade if it pulls back too far from its best point, even before the normal take-profit is reached.
The robot is careful about what it touches. It only ever manages its own trades. Any trade you place manually, any backup order that hasn't filled yet, and any trade from a different robot are always left alone.
You can size your trades either with a fixed lot size or by risking a percentage of your account balance automatically. You can also restrict trading to certain hours of the day and avoid trading when the spread is too wide.
Everything about the strategy — how sensitive it is to swings, how far price has to move before the backup grid kicks in, how the trailing stop behaves, and so on — can be adjusted through its settings, so it can be tuned to different markets and trading styles.
Why people like it
It only trades when the trend, the momentum, and the price structure all line up, which cuts down on weak signals. The backup grid isn't a constant "average down on every trade" system — it's a genuine safety net that only comes into play when the original idea turns out to be wrong. Profits are protected as they grow, not just locked to a single fixed target. Because the original trade and the backup trades are clearly separated internally, it's easy to see how each part of the strategy is performing. And because it never interferes with anything that isn't its own trade, it can run safely alongside manual trading or other robots on the same account.
How it works, step by step
First, it studies recent price action to find genuine swing highs and swing lows and figure out the market structure. Then it checks that the broader trend and a momentum pullback both agree with that structure before considering a trade. Once those line up, it opens a trade in the direction of the trend, with a profit target already set. If price then moves against that trade by a set distance before the target is hit, it activates a backup grid of orders on the opposite side to manage the situation. Those backup orders share (or individually carry) a profit target depending on direction, and everything is automatically cleaned up once the trade and its backup orders are all closed. The whole time a trade is open, the trailing stop and profit-protection features are running in the background to help lock in gains.
Settings you can adjust
General — a unique ID number so the robot can tell its own original trades apart from anything else on the account; a label attached to its orders; how much price slippage is allowed; whether it's allowed to go long, go short, or both; and whether it prints detailed logs of its decisions.
Risk and position sizing — whether lot size is fixed or based on a percentage of your balance risked per trade; the fixed lot size to use; the risk percentage to use; the reward-to-risk ratio for setting the profit target; a small buffer added beyond the relevant swing point; minimum and maximum limits on that reference distance, below or above which a trade is skipped; and an optional hard cap on the size of any single order.
Market structure — how many bars are needed on each side of a price point before it counts as a confirmed swing; and how many bars back the robot looks when searching for those swings.
Trend and momentum settings — how the broader trend direction and shorter-term average are measured, and how the momentum reading is calculated; plus how many bars a signal is allowed to wait for confirmation before it expires.
Filters — a maximum spread beyond which new trades are skipped; and an optional restriction to only trade during certain hours.
Backup grid — whether the backup grid feature is turned on at all; the distance the original trade must move against it before the backup activates, which also sets the spacing between backup orders; how many backup orders to place on each side; the lot size for those orders; how far from the average entry price the shared profit target sits for the buy side; how far from each entry the individual profit target sits for the sell side; an optional expiry time for backup orders; caps on how many backup trades and pending orders can be open at once; and a separate ID number so backup trades can be told apart from the original trade and from anything else.
Profit protection — whether the giveback protection is turned on; how much profit a trade needs to reach before this protection starts tracking it; and what percentage of the peak profit is allowed to be given back before the trade closes automatically.
Trailing stop — whether trailing is turned on; how much profit is needed before it starts; how far behind price the stop is kept once active; and the minimum improvement in price needed before the stop moves again.
