Payoff Ratio Keeper

EVERY POSITION GETS A TAKE PROFIT AT THE PAYOFF:RISK RATIO YOU CHOSE, EVEN WHEN YOU FORGOT TO SET ONE.

Payoff Ratio Keeper is a risk to payoff manager for MetaTrader 5: an auto take profit tool that sets the TP of manual and EA trades to a fixed R-multiple of the stop loss. Positions without a take profit get one; a take profit that pays less than your minimum ratio is moved further out. Your stop loss is never changed and a take profit is never pulled closer.

Built for traders who decide the stop first and then lose the discipline on the target: a TP forgotten in a fast market, a TP of 40 points behind a stop of 150, a copier that sends trades with no target at all. One promise: every trade in scope carries the ratio you planned. Mechanism: risk = distance from the entry to the stop; target = entry + risk x your ratio + the spread and commission, so the ratio is net of costs.

Before and after, from the Strategy Tester log (June 2026): EURUSD buy with a stop of 150 points and a take profit only 1:0.27 away: the TP was moved from 1.16439 to 1.16643, the 1:2 target.

Works with: manual trades and other Expert Advisors or trade copiers on the same terminal (symbol scope and magic filter decide which positions it manages), hedging and netting accounts, every symbol (forex, gold, indices, crypto), and prop-firm style rules: it only writes take profits, it never adds volume and it never opens a trade on your account.

Try it free first: run Payoff Ratio Keeper in the Strategy Tester with visual mode on. There it opens small demo positions with a stop, most of them with no take profit and every third one with a TP of only 0.5 R, so you can watch the dotted target line, the TP appearing and the RISK|TARGET gauge in the panel turning green.

Who this is NOT for: traders looking for an entry robot or a grid (it opens nothing on a live chart), scalpers who close by hand and want no take profit at all, and traders who never use a stop loss and do not want to give a fixed risk in points.

A worked example (default settings)

EURUSD buy 0.30 lots at 1.16489 with a stop at 1.16353, so the risk is 136 points. No take profit.

After the 10 second grace time the keeper computes the 1:2 target: 1.16489 + 2 x 136 points = 1.16761, plus about 12 points of spread and 7 points for the 7 USD per lot commission on 0.30 lots: the take profit is set at 1.16780. These are the real numbers of the first demo trade in the tester log.

If you or your EA later put a take profit at 1.16550 (1:0.31 after costs), the keeper sees a ratio below the 1:1.5 minimum and moves it back out to 1.16780. A take profit at 1.16900 (more than 1:2) is left exactly where it is.

In short

  • Target payoff:risk ratio, for example 1:2, with risk = entry to stop loss.
  • Two rules: only add missing take profits, or also lift take profits that offer less than a minimum ratio.
  • Costs inside the ratio: current spread and your commission per lot, so 1:2 means 1:2 after costs.
  • Grace time after a position opens, so an EA that sets its own TP a moment later is not overruled.
  • Optional fixed risk in points for positions without a stop; otherwise they are left alone.
  • Never changes the stop loss, never pulls a take profit closer, respects stops level and freeze level.
  • Alert-only mode: one alert per position that needs a take profit, nothing sent.
  • Panel with real trading data: TARGET COVERAGE bar, book risk against book target in money, and per position the risk in points, the TP now, the R:R now, the target TP and a RISK|TARGET gauge.
  • Not a grid, no martingale, no DLLs, no web requests.
  • Tester numbers (June 2026, EURUSD H1, defaults): 42 demo positions, 28 take profits set, 15 lifted, 0 failed sends, 0 journal errors.

START HERE

Attach it to one chart, for example EURUSD H1. One copy manages every symbol of the account unless you limit it. Set your target ratio and your commission per lot (0 if your broker has none). Turn on Algo Trading and watch the position table: GRACE, SETTING TP, LIFTING TP, RATIO OK. To watch first, switch to ALERT ONLY with the panel button.

How one trade is handled

Risk. The distance from the entry to the stop loss, read on every pass. A stop already moved into profit means the trade has no risk left: the state shows STOP IN PROFIT and the take profit is left alone.

Target. Entry plus risk times the target ratio plus spread and commission, rounded away from the entry to the tick size.

Missing take profit. After the grace time the target is sent as the take profit, with the stop loss sent back unchanged.

Low ratio. With the lift rule, a take profit that pays less than the minimum ratio after costs is moved out to the target, never closer.

Removed take profit. If you delete a take profit the keeper set, it sets it again; turn InpReapply off to respect your choice.

Price already past the target. The target would be invalid, so nothing is sent and the state shows PRICE PAST TARGET.

Safety patterns inside

Before any send it checks that Algo Trading is allowed, that the symbol session is open and that the last quote is no older than 5 minutes. Every new take profit is checked against the broker's stops and freeze levels. Right before each send the position is selected again and its symbol, magic, stop and take profit are compared with the plan, so a changed position is never overwritten with old numbers. A refused send is retried with a growing pause up to 2 minutes, with one alert after a set number of failures. Which positions it already handled is kept in GlobalVariables whose keys contain the chart symbol, the magic filter and the magic number, so two copies never share a key.

Inputs, every one explained

TARGET TO RISK

InpMode = 1. 0 alert only, 1 keep (set and lift take profits).

InpRule = missing + lift. Only positions without a take profit, or also take profits below the minimum ratio.

InpTargetRR = 2.0. Take profit distance = risk x this.

InpMinRR = 1.5. A take profit offering less than this ratio after costs is lifted (lift rule only). Not above the target ratio.

InpNoSLRiskPts = 0. Risk in points for positions without a stop; 0 leaves them alone.

InpGraceSec = 10. Seconds to wait after a position opens before acting.

InpReapply = true. Set the take profit again if it is removed later.

COSTS IN THE RATIO

InpAddSpread = true. Add the current spread to the target.

InpCommPerLot = 7.0. Round-turn commission per lot in account money, 0 = none.

EXECUTION

InpMinMovePts = 5. Smallest take profit move worth a send, in points.

InpFailAlertAt = 3. One alert after this many failed attempts.

FILTER - WHICH POSITIONS ARE MANAGED

InpSymbolScope = all symbols or the chart symbol only. InpMagicFilter = any magic, only manual trades (magic 0), or only the magic number InpMagic.

ALERTS

InpAlertPopup = true. InpAlertPush = false (push to the MetaTrader app on your phone).

PANEL

ShowPanel = true. ShowLines = true: dotted target take profit line for chart-symbol positions. PanelX = 12, PanelY = 15, PanelFontSize = 9, MaxTableRows = 6, MaxHistoryRows = 4. The MOVE button drags the panel; on a short chart it drops its least important rows first.

STRATEGY TESTER DEMO

InpTesterDemo = true. Strategy Tester only: Monday to Friday 08 to 16 one demo position per 4-hour slot with a stop 1.5 ATR away, at most 3 open, margin checked x 1.5, closed after 4 days, stopped after a 20 percent balance loss. This code never runs on a live or demo chart.

The panel

TARGET COVERAGE: a bar with the share of positions whose take profit pays at least the minimum ratio. KEEPER PLAN: target and minimum ratio, rule, book risk against book target in money with the ratio of the whole book, positions without TP or with a low ratio, open profit, costs, mode, last action, Algo Trading, failed sends and totals. POSITIONS, LOWEST RATIO FIRST: symbol, side, lots, risk, TP now, R:R now, target TP, profit, state and the RISK|TARGET gauge (red block = 1 risk, green or amber = payoff up to 1:4, blue tick = your target). ACTION HISTORY lists every take profit set or lifted with server time. QUICK CONTROLS: ARMED or PAUSED, the mode button and CHECK NOW. The right side of the chart stays clear.

Common questions

Does it open trades by itself? No. On a live or demo chart it only writes take profits of positions that are already open. Demo positions exist only inside the Strategy Tester.

Will it fight my EA's take profit? It waits the grace time, never pulls a TP closer, and only lifts a TP below your minimum ratio. If your EA rewrites its TP every tick, exclude it with the magic filter.

Why is the take profit a few points further than exactly 2R? Spread and commission are added so the ratio is net of costs; turn both off for a pure 2R.

Does it move my stop loss? Never. The stop is sent back unchanged with every take profit.

What it cannot do

It does not choose entries and it does not manage stops. A take profit can still be filled with slippage, and a far target is reached less often than a near one: that is the trade-off of a fixed ratio. It only works while it runs: keep the terminal on, for example on a VPS.

What was and was not tested

Tested in the Strategy Tester on a hedging account, 1 to 30 June 2026, 1-minute OHLC, H1, deposit 10000, leverage 100, four runs, with no journal error and no failed send. EURUSD defaults: 42 demo positions, 28 take profits set, 15 lifted. XAUUSD with target 1:3, minimum 1:2.5 and no commission: 25 demo positions, 17 set, 8 lifted. EURUSD missing-only rule: 28 set, 0 lifted. EURUSD alert only: 41 demo positions, 28 alerts, nothing sent. On a demo chart the panel ran in alert-only mode beside 4 EURUSD positions on a closed market and showed MARKET SHUT with the targets drawn.

Not tested at the time of writing: real sends on a live or demo broker, a netting account, retries after a broker refusal, freeze level refusals, chart symbol scope, magic filters, pop-up and push alerts and a terminal restart. These paths exist in the code and are described by design. Please try them on a demo account with your own broker first.

Try it in the Strategy Tester

Choose Payoff Ratio Keeper, EURUSD or XAUUSD, H1, any recent month, visual mode, and press Start. Watch the dotted target line and the take profit appearing on each new demo trade.

If the keeper saved a trade from closing without a target, or you think it should handle a case differently, an honest review on the product page helps other traders decide and tells me what to improve next.

Yazarın diğer ürünleri
Simple SMA Cross EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Try it in the Strategy Tester before anything else: load Simple SMA Cross EA on EURUSD H1, switch on visual mode and watch the panel follow the two moving averages, mark every cross with an arrow and open one trade with its stop-loss and take-profit already attached. TWO MOVING AVERAGES, ONE CLEAR RULE, ONE TRADE AT A TIME. Simple SMA Cross EA is an Expert Advisor for MetaTrader 5 built on the oldest and most widely understood idea in technical trading: when a fast simple moving average crosses
Hope EA MT5
AL MOOSAWI ABDULLAH JAFFER BAQER
Test it free first: load Hope EA in the MetaTrader 5 Strategy Tester, turn on visual mode, and watch how little it does while it waits and what it does when price turns against it. PATIENT ENTRIES. A LADDER WITH LIMITS. A BOOK THAT REMEMBERS. Hope EA is a two-sided grid for traders who prefer a quiet robot to a busy one. It enters only after a slow momentum reading turns back from an extreme, adds levels only when price has really moved, and pays down its oldest order with the profit of its newe
Happy and Steady
AL MOOSAWI ABDULLAH JAFFER BAQER
Happiness in Forex Means Winning! What if we made your winnings "Steady Winnings!" This will make you happier! (Forex is risky, you may loose all your capital) We implemented a safe and reliable strategy, that proved itself since 2010 until today! It passed COVID 19 fluctuations without any issues! The idea behind the expert to to be a super scalping expert, attacking few pips at a time. This happens while using big lot size, thus insuring handsome profit. Expert entries are very selective, w
Safe and Steady Profits Pro
AL MOOSAWI ABDULLAH JAFFER BAQER
Safety in Forex trading is the main concern of the traders! There is no use to trade today, and loose everything tomorrow! (Trading is risky, and there are no guarantees for winning)   Here comes the power of our expert! The idea behind it is safety to the investors fund, then comes the profit. Thus this expert wont be the expert that will double your account by xx fold. It will be the expert you can rely on for steady, hassle free profits. To do so, the targets pips are minimal to insure
Penny Collector EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Some users are very comfortable keeping their trades for ages, while other users are happy to get the least and leave :) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning)   Check our other products which will be added to the market soon.
Penny Collector Pro
AL MOOSAWI ABDULLAH JAFFER BAQER
5 (1)
Some users are very comfort 2 able keeping their trades for ages, while other users are happy to get the least and leave :) If you cannot wait on your trades, then this expert will be the best for you! The expert tries to enter trades on a high probability of success, and in most cases it do catch the right wave. If not , don't worry because the expert will deal with the situation by itself and will take the trades to profits! (Trading is risky, and there are no guarantees for winning) You
Drag Race Scalper
AL MOOSAWI ABDULLAH JAFFER BAQER
Scalping! What a thrill! Forex trading had been a source of income and thrill at the same time! (Forex is risky, you may loose all your capital) With our new Expert Advisor "Drag Race Scalper" , you will earn both. (Forex is risky, you may loose all your capital) We tried to use a safe, profitable, and fast formula and this is what we ended by! A drag racing scalper! (Forex is risky, you may loose all your capital) In this scalper you would expect few points per trade only. This expert is fo
Against The Surf EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Trading Forex has a million way! One of the innovative ways is to go against the surf! Here we fight the market and work out to get our bread and butter from it :) (Trading is risky, and you may loose!) From here began the idea! Fighting the market. The Expert uses a combination of : Hedging, Grid and trend strategies to operate. This operation allows it to arrive safely even if it worked against the surf! (Trading is risky, and you may loose!) Please find the 99.9% tick data back test res
Cent Collector
AL MOOSAWI ABDULLAH JAFFER BAQER
Cent Collector is the second Expert advisor of the "Collector" Series :) The first was Penny collector :  https://www.mql5.com/en/market/product/61215?source=Site +Profile+Seller And here is the second EA : Cent Collector Those Experts are designed for Scalpers who cannot wait for ages.. As soon as the Expert realizes the profit it cash out and leave. If things went wrong, the Expert will work on managing itself by averaging and will cash out as soon as it could. This version is called Cent
Yen Collector
AL MOOSAWI ABDULLAH JAFFER BAQER
Yen Collector is the Third Expert advisor of the "Collector" Series :) The first was Penny collector :  https://www.mql5.com/en/market/product/61215?source=Site +Profile+Seller The second one was Cent collector:  https://www.mql5.com/en/market/product/65344?source=Site +Profile+Seller And here is the third EA : Yen Collector Those Experts are designed for Scalpers who cannot wait for ages.. As soon as the Expert realizes the profit it cash out and leave. If things went wrong, the Expert will w
Super Hedge Fighter EA
AL MOOSAWI ABDULLAH JAFFER BAQER
5 (1)
**Çok Önemli: "Siparişler Arası Mesafe" ayarını lütfen düzenleyin. İyi sonuçlar almak için bunu 2 ile 10 arasında bir değere düşürün.** Forex ve volatil piyasalarla işlem yapmak çok karmaşık ve riskli olabilir. Neredeyse tüm stratejiler %100 başarılı olmayabilir! Yeni uzman danışmanımız "Super Hedge Fighter EA" ile piyasayı yeni bir açıdan göreceksiniz! Volatiliteyi artık korkulacak bir şey olarak görmeyeceksiniz, çünkü bu sizin gelir kaynağınız olacak. "Super Hedge Fighter EA", özellikle d
Market Master EA
AL MOOSAWI ABDULLAH JAFFER BAQER
2.5 (2)
Çok önemli: "Siparişler arasındaki mesafeyi" ayarlayın... İyi sonuçlar almak için mesafeyi küçültün. Daha yüksek mesafeler, EA'yı çok daha güvenli hale getirecektir. Forex ticareti, milyonlarca yol sunar! Yenilikçi yollardan biri, akıntıya karşı gitmektir! Burada piyasaya karşı savaşıyoruz ve ondan ekmeğimizi ve tereyağımızı kazanıyoruz :) (Ticaret risklidir ve kaybedebilirsiniz!) İşte buradan çıktı fikir! Piyasaya karşı savaşmak. Expert Advisor, Hedging, Grid ve trend stratejilerinin bir kombin
Magnet Scalper Pro
AL MOOSAWI ABDULLAH JAFFER BAQER
In this EA you will have two sources of income: 1- Direct trades 2- Rebates from your broker. Thus insure to register under an IB that shares with you their revenues Scalping! What a thrill! Forex trading had been a source of income and thrill at the same time! (Forex is risky, you may loose all your capital) With our new Expert Advisor "Magnet Scalper Pro" , you will earn both. (Forex is risky, you may loose all your capital) We tried to use a safe, profitable, and fast formula and this i
Speedy EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Trading using Experts are the best ways to win in Forex! Here are our second Expert Advisor, where you can Set and forget! Time frame: M1 All currency Pairs will work perfectly on the EA Account type: All (If hedging is not allowed, please disable either Sell or Buy) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning)   Check our other pro
Diamond EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Minimum deposit is 1000$ , or 1000 Cent = 10$. (Recommended 1500$) Every 1000$ = 0.01 Lot. Please stick to the rules, as we want you to win, win and win! (Trading is risky, and there are no guarantees for winning)                                         Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell
Impala EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Minimum deposit is 1000$ , or 1000 Cent = 10$. (Recommended 1500$) Every 1000$ = 0.01 Lot. Please stick to the rules, as we want you to win, win and win! (Trading is risky, and there are no guarantees for winning)                                         Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell f
EX Pro EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Fox EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning)
Good Mood Trading EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Hope EA MT4
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Moderate EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
More Pro EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Nu Pro EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Shooting Star EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Tiger EA MT4
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Treasure EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
LevelGuard Smart SMA EA
AL MOOSAWI ABDULLAH JAFFER BAQER
LevelGuard SmartSMA Master Support & Resistance Trading with Precision LevelGuard SmartSMA leverages the power of moving averages to help you trade confidently across markets. Designed to identify dynamic support and resistance levels, this EA delivers precise trade entries and exits, empowering traders to capitalize on market movements with ease. How It Works Core Strategy: Uses a central SMA (e.g., 50 or 200-period) as a dynamic support or resistance line. Additional SMAs (optional) provide s
Basic SMA Price Cross EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Explore Our Full EA Collection Visit our website for an extensive range of expertly crafted Expert Advisors designed to empower traders of all levels. Whether you're new to trading or a seasoned professional, our tools are tailored to meet your needs. Affordable Trading for Everyone We believe in making trading accessible to everyone. That’s why all our Expert Advisors are priced at just $65 each, helping our community achieve success without breaking the bank. Unlock the Power of Automation Th
Lion’s Roar - Trend Strength Indicator Are you ready to take control of your trading journey? The Lion’s Roar - Trend Strength Indicator is here to help you identify and harness powerful market trends with precision and confidence. Designed with traders in mind, this advanced tool is built on a robust strategy that combines trend direction with momentum validation using the Average True Range (ATR). This indicator is not pre-optimized, giving YOU the freedom to tailor it to your unique trading
Visual Titan Force Indicator MT4
AL MOOSAWI ABDULLAH JAFFER BAQER
Unleash Market Volatility with the Titan Force Indicator! Are you ready to dominate the market by capitalizing on volatility? The Titan Force Indicator is your ultimate trading tool, designed for traders who thrive during periods of heightened market activity. Not Optimized for You – Yet! This indicator is a canvas for your creativity. It's been crafted to let you optimize it according to your unique trading strategies and preferences. Your skills, your edge! How Does the Titan Force Indicator
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt