LEFTURN ← Back to Webhook Portfolio · Print
◈ WEBHOOK PORTFOLIO GUIDE

LEFTURN Webhook Portfolio Guide

Master Multi-Timeframe Trading Confirmations

Combine three TradingView indicators (a higher-timeframe bias, a mid-timeframe setup and an execution-timeframe entry) into one strategy. LEFTURN waits until all three agree, in order and on time, then sends one trade instruction to your Publisher EA. Every alert, setup and trade is recorded so you can measure what works.

Open Webhook Portfolio+ Create Portfolio

1What Is a Webhook Portfolio?

A Webhook Portfolio is a trading strategy made of three TradingView alerts that must line up before LEFTURN sends a single trade.

In plain words

The first two alerts, on bigger timeframes, find the trend. The third, on a small timeframe, times the entry. A trade only happens when all three agree, in order, and each one arrives before the time window of the one before it runs out. Miss a window and the setup expires: no trade.

Stage 1 · DailyDirectional biasBullish Stage 2 · 8HSetup confirmationBullish Stage 3 · 15MEntry triggerBUY One trade instructionto your Publisher EAon your MT5 account In order · inside their time windows · same instrument · one trade per setup

Why use one

  • Trade only in the direction of the bigger picture.
  • Skip entries that have no setup behind them.
  • See exactly why each trade was or wasn't taken.
  • Measure whether the extra filters actually help.

What it is not

  • Not a guarantee: confirmations reduce some bad trades and can also skip good ones.
  • Not a replacement for risk control: your Publisher EA's limits still apply.
  • Not automatic optimisation: you decide the rules; LEFTURN records the evidence.

2Single Webhook vs Webhook Portfolio

Single Webhook = one signal, independently processed. Webhook Portfolio = three sequential confirmations, one authorized trade.

⚡ Single Webhook

Menu: My Marketplace › Webhooks · key starts with lfwh_

  • One TradingView alert
  • Each alert can open, close or cancel a trade
  • One key for all your alerts
  • Best for a complete strategy that already lives in TradingView

◈ Webhook Portfolio

Menu: My Marketplace › Webhook Portfolio · keys start with lfwp_

  • Three TradingView alerts, one per stage
  • No single alert can trade: Stage 3 trades only after 1 and 2 qualify
  • Three keys per portfolio, one per stage
  • Best for combining indicators across timeframes
Single WebhookWebhook Portfolio
Alerts needed for one trade13, in order
KeysOne lfwh_ keyThree lfwp_ keys per portfolio
Webhook URLhttps://master.manage.forex/api/rockstar/tv.php (the same for both)
Time limitsSignal valid about 2 minutesYour windows between stages, plus about 2 minutes for the EA
Label in your signal and trade history⚡ Single Webhook◈ Webhook Portfolio: name

3Understanding the Three Stages

1Higher Timeframe — Directional Bias

Decides the market regime: bullish, bearish, consolidating or neutral. It is a context, never an order. Typical charts: Weekly, Daily, 12H, 8H.

Sends "state"

2Mid Timeframe — Setup Confirmation

Confirms an opportunity is forming inside that context. It must agree with Stage 1 under your rules, and arrive within Window A. Typical charts: Daily to 1H.

Sends "state"

3Execution Timeframe — Entry Trigger

The entry itself: buy or sell, on the same side as the setup, within Window B. Typical charts: 1M to 1H. It can carry price, stop and target.

Sends "action"

4Creating Your First Portfolio

  1. Open Webhook Portfolio

    Trader Area › My Marketplace › ◈ Webhook Portfolio › + Create Portfolio.

  2. General information

    Name it (e.g. "EUR/USD Multi-Timeframe Portfolio"), choose the instrument (EURUSD) and add a short description. All three stages must use this instrument.

  3. Fill in the three stage cards

    For each stage: the timeframe, the TradingView indicator name and, if you like, a short strategy description. Set how long the bias stays valid and the two windows.

    2 Mid Timeframe — Setup Confirmation
    Timeframe 8H a · Indicator MACD Momentum b · Must arrive within 12 hours of Stage 1 c

    a: the chart the alert comes from · b: for your records and analytics · c: Window A, independent of the chart timeframe

  4. Set the rules

    Direction compatibility (trend or range), trade direction, automatic publishing, entry settings, daily limit and notifications. See Portfolio Settings.

  5. Create, then get the three keys

    The portfolio is saved as a Draft and its page opens. In the box Set up your 3 TradingView alerts, press Generate all 3 keys. Yes, one key per stage: the key tells LEFTURN which stage an alert is for. Each key is shown once and is already put into that stage's messages.

    Key lfwp_••••0514 d   Copy Webhook URL Copy TradingView Alert Example e

    d: only the last four characters are shown after the first time · e: the examples already contain your key right after you generate it

  6. Make the TradingView alerts, stage by stage

    Open the Stage 1, Stage 2 and Stage 3 tabs. Each tab says which chart to open, how many alerts to make and gives each message with a Copy message button, worked out from your rules. The checklist ticks Alerts heard as each stage sends its first alert.

    Your rulesStage 1 alertsStage 2 alertsStage 3 alerts
    Trend, buys and sellsBullish, BearishBullish, BearishBUY, SELL (or 1 from a TradingView strategy)
    Trend, buys onlyBullish (+ optional Bearish to cancel)BullishBUY
    Trend, sells onlyBearish (+ optional Bullish to cancel)BearishSELL
    RangeConsolidating (+ optional trend alerts)Bullish, BearishBUY, SELL
  7. Activate

    Press Activate. LEFTURN checks that every stage has a timeframe, an indicator name and a key. From now on alerts are processed.

5Connecting TradingView

The easiest way: the portfolio page's Set up your 3 TradingView alerts box writes every message with your keys in it. The details below are for reference. Webhooks need a paid TradingView plan with 2-factor sign-in. In each alert, tick Webhook URL and paste https://master.manage.forex/api/rockstar/tv.php, then paste the message for that stage.

Stage 1 message (higher timeframe)

{"key":"lfwp_YOUR_STAGE_1_KEY","state":"bullish","symbol":"{{ticker}}","tf":"{{interval}}","indicator":"RSI Directional Bias","time":"{{timenow}}","id":"{{timenow}}"}

Stage 2 message (mid timeframe)

{"key":"lfwp_YOUR_STAGE_2_KEY","state":"bullish","symbol":"{{ticker}}","tf":"{{interval}}","indicator":"MACD Momentum","time":"{{timenow}}","id":"{{timenow}}"}

Stage 3 message (execution)

{"key":"lfwp_YOUR_STAGE_3_KEY","action":"buy","symbol":"{{ticker}}","tf":"{{interval}}","price":{{close}},"sl_pips":20,"tp_pips":40,"time":"{{timenow}}","id":"{{timenow}}"}
FieldStagesWhat it does
key1, 2, 3That stage's key (each stage has its own). Required.
state1, 2bullish, bearish, consolidating or neutral. Also understood: bull, up, bear, down, range, sideways, uncertain.
action3buy or sell (also long, short, or {{strategy.order.action}}).
symbol1, 2, 3{{ticker}}. Must be the portfolio's instrument; prefixes like OANDA: are removed.
tf1, 2, 3{{interval}}. Recommended: LEFTURN rejects an alert from the wrong chart timeframe.
id1, 2, 3{{timenow}}. Stops duplicates from counting twice.
time1, 2, 3{{timenow}}. Kept as the alert time for your records; timing uses LEFTURN's receipt time.
indicator1, 2, 3Optional label stored with the alert.
price, sl, tp, sl_pips, tp_pips, type, distance, expire, why3Optional trade details, the same as a single webhook. Without them your Publisher EA (or the portfolio's strategy) decides.
Advanced: what LEFTURN answers

Every alert gets a short JSON answer, for example {"ok":true,"stage":2,"result":"confirmed","detail":"Bullish setup accepted. Waiting for a Stage 3 BUY until Nov 15, 20:41."}. result is confirmed, accepted (recorded, no change), ignored, rejected, or "duplicate":true. A wrong or replaced key gets HTTP 401.

Never put your Publisher Key, MT5 password or single webhook key into a portfolio alert. Portfolio keys can only feed their own portfolio.

6Understanding Market Direction

StateMeaningExample indicator conditions
BullishBuyers in controlRSI above 50 and rising · Stochastic %K above %D out of oversold · MACD above signal and zero · higher highs and higher lows
BearishSellers in controlRSI below 50 and falling · Stochastic %K below %D out of overbought · MACD below signal and zero · lower highs and lower lows
ConsolidatingRange or regime without trendRSI between 40 and 60 · MACD flat near zero · equal highs and lows inside a box
NeutralUnclearMixed readings, news pending, or your indicator can't decide. A neutral bias never trades.

These are teaching examples, not recommendations. Your Pine Script decides the state; LEFTURN only checks that the states line up.

Trend-following

Bullish → Bullish → BUY
Bearish → Bearish → SELL

Consolidating or neutral Stage 1: no trades until the bias changes.

Range

Consolidating → Bullish → BUY
Consolidating → Bearish → SELL

Use a Stage 2 indicator that fires at the edges of the range.

A signal that doesn't fit is recorded with the reason and the setup keeps waiting. LEFTURN never re-reads a bearish signal as bullish.

7Confirmation Windows

Window A is the time allowed from Stage 1 to Stage 2. Window B is the time allowed from Stage 2 to Stage 3. The bias also has its own validity. Each is separate from the chart timeframe.

Qualified: all three in time

Window A (12h) Window B (8h, ends 16:00) 07:00 Stage 1 bullish 08:00 Stage 2 bullish 09:15 Stage 3 BUY → one instruction

Expired: Stage 3 too late

07:00 Stage 108:00 Stage 2 16:00 Setup Expired — No Trade 16:20 Stage 3 BUY: rejected (late)
Advanced: invalidation and new setups

A different Stage 1 state invalidates the setup in progress. A Stage 2 in the opposite direction while waiting for Stage 3 invalidates it too. After a setup ends (traded, expired or invalidated), a new Stage 2 can start another setup on the same bias as long as that bias is still inside Window A and its validity. Stage 3 always needs a fresh Stage 2.

8Portfolio Settings

SettingWhat it does
Name, instrument, descriptionShown on the portfolio and saved with every setup. The instrument is enforced on every alert.
Stage timeframeThe chart each stage's alert must come from (checked when the alert sends tf).
Indicator name, strategy descriptionYour labels, kept in the history and analytics.
Bias stays valid forHow long a Stage 1 state counts. 15 minutes to 30 days.
Window AStage 1 → Stage 2. 5 minutes to 30 days.
Window BStage 2 → Stage 3. 1 minute to 14 days.
Direction compatibilityTrend-following or range (chapter 6).
Trade directionBuys and sells, buys only, or sells only.
Publish automaticallyOn: the instruction goes out the moment Stage 3 qualifies. Off: you have 15 minutes to send it from the portfolio page.
Entry, stop, target and riskYour Publisher EA inputs, or one of your strategies. Stage 3 fields override.
Maximum trades a day1 to 10 instructions per portfolio per day.
Only accept TradingViewRefuses alerts that don't come from TradingView's servers. Switch off only to test.
NotificationsLEFTURN Inbox messages for each stage, qualified, expired, invalidated, instruction sent, broker execution and failures.
Always onThree confirmations, strict order, one setup at a time, one instruction per setup, duplicate protection.

9Publisher and Execution

Qualifiedall 3 stages Sent to the EAinstruction created EA took itpublisher acknowledged Trade placedbroker order confirmed Filledbroker fill

When the three stages qualify, LEFTURN creates exactly one trade instruction and puts it in the same queue as your single webhook signals. Your Publisher EA collects it (usually within 2 seconds), places it on your MT5 account, publishes the trade plan as usual and reports back. Each step is recorded separately, so "sent" is never confused with "filled".

Stage 3 from your own EA

Already trade with an EA in MT5 (yours, or LEFTURN Rockstar Strategy)? Let it be Stage 3. On the portfolio's Edit page choose Stage 3 comes from: My Entry EA (MT5). Stages 1 and 2 stay TradingView alerts with their own keys; Stage 3 needs no key and no alert.

10Reading Portfolio History

History › Activity log lists every alert and every decision, newest first. Filter by date, stage and status, or export it as CSV.

Setup #9 timeline
  1. 07:00 Stage 1 confirmed: Bullish bias accepted. Waiting for Stage 2.
  2. 08:00 Stage 2 confirmed: Bullish setup accepted. Waiting for a Stage 3 BUY until 16:00.
  3. 09:15 Publisher instruction #22 created: BUY EURUSD.
  4. 09:15 Stage 3 confirmed: All three stages qualified.
  5. 09:15 Publisher acknowledged: your Publisher EA collected instruction #22.
  6. 09:15 Broker order confirmed by the EA: MT5 #123456.
  7. 09:15 Broker fill confirmed on MT5.
StatusMeaning
Waiting for Stage 1 / 2 / 3The setup is in progress; the countdown shows the time left.
QualifiedAll three confirmations arrived in order.
Sent to the EA / EA took itInstruction created / collected by your Publisher EA.
Trade placedMT5 accepted the order; the fill is shown when it happens.
Expired: no tradeA window ran out.
Invalidated: no tradeStage 1 changed, or Stage 2 turned the other way.
Not executed / RejectedThe EA refused or never collected it, or the daily limit was reached. The reason is in the timeline.
Rejected alertWrong instrument, wrong timeframe, out of order, wrong direction, late, or the portfolio is paused. Nothing changed.

11Performance Analytics

Analytics counts signals, setups, expiries and instructions, then measures results from closed trades only. Results are in R (multiples of the risk on each trade), because that is how LEFTURN records each trade plan's result.

MeasureHow it's calculated
Win rateWins ÷ (wins + losses). Trades within ±0.05R are break-even and not counted either way.
ExpectancyNet R ÷ closed trades: what an average trade has earned.
Profit factorTotal R won ÷ total R lost. Above 1.0 means the wins outweigh the losses.
Max drawdownThe deepest fall of the running R total from its high point.
Confirmation timeAverage minutes from Stage 1 to Stage 2, Stage 2 to Stage 3, and Stage 1 to Stage 3.
By rules versionThe same results split by each saved version of your rules (timeframes, windows, indicators).
Single vs PortfolioYour single-webhook trades next to your portfolio trades.
Under about 30 closed trades the numbers can swing a lot; the page says so. Signals that never filled are never counted as wins or losses.

12Improving Your Strategy

13Troubleshooting

No alerts appear in History

Check the Webhook URL is exactly https://master.manage.forex/api/rockstar/tv.php, the alert's Webhook URL box is ticked, and the message is valid JSON. TradingView's alert log shows the answer LEFTURN sent.

"Portfolio key not recognised or replaced" (HTTP 401)

The key was mistyped or replaced. Generate a new key on that stage card and paste it into that stage's alert only.

"Wrong instrument"

The alert was set on a different symbol. All three alerts must be on the portfolio's instrument.

"Wrong timeframe"

The alert's {{interval}} doesn't match the stage's timeframe. Move the alert to the right chart, or edit the stage timeframe.

"Stage 3 can't trade on its own"

Stages 1 and 2 haven't both qualified yet, or the last setup already sent its instruction. This is working as designed.

"Setup expired"

A window ran out. Consider longer windows if your setups often need more time.

"Only TradingView may send to this portfolio"

You tested from another tool. Use the testing switch on the portfolio page, then switch it back.

Duplicate alerts

Add "id":"{{timenow}}". Duplicates are recorded once and never count twice.

"Not executed"

Open the setup's timeline for the EA's reason. Check MT5 is running with the Publisher EA and Algo Trading on, AllowLiveTrading on real money, and the New York close window.

"The portfolio is draft / paused"

Activate or resume it on the portfolio page. Alerts during a pause are recorded but never trade later.

14Frequently Asked Questions

Can my own MT5 EA be Stage 3?

Yes. Edit the portfolio and choose Stage 3 comes from: My Entry EA (MT5). Your EA places its orders; the Publisher EA (v4.08+) asks this portfolio before publishing each one. Approved orders become the portfolio's trade; the others are cancelled, or kept without a plan if you chose that.

Do I need a key for each of the three alerts?

Yes. Each stage has its own key (lfwp_…), because the key tells LEFTURN which portfolio and which stage the alert belongs to. All three use the same webhook URL. One press of "Generate all 3 keys" makes them.

How many TradingView alerts do I make?

At least one per stage, often two: for a portfolio that trades both ways, Stage 1 needs a Bullish and a Bearish alert, Stage 2 the same, and Stage 3 a BUY and a SELL (or one alert from a TradingView strategy). The portfolio page tells you exactly which ones for your rules.

Does a Webhook Portfolio make my trading more profitable?

Not by itself. Extra confirmations filter trades; they don't remove risk or guarantee results. Use Analytics to see whether your portfolio actually beats your single webhooks over enough trades.

Can a single alert ever open a trade in a portfolio?

No. Stage 1 and Stage 2 alerts never trade. A Stage 3 alert trades only when Stages 1 and 2 already qualified, in order, inside their windows.

Can I reuse my single webhook key for a portfolio?

No. Each portfolio gets three new keys (they start with lfwp_). Single webhook keys (lfwh_) can't complete a portfolio, and portfolio keys can't send single trades.

Do I need a different webhook URL?

No. Both kinds use https://master.manage.forex/api/rockstar/tv.php. The key inside the message tells LEFTURN which kind it is.

What happens if TradingView sends the same alert twice?

It counts once. Keep "id":"{{timenow}}" in every message: an alert with an id LEFTURN has already seen is recorded as a duplicate and changes nothing. Without an id, an identical message within 15 seconds is treated as the same alert.

What if Stage 3 arrives before Stage 2?

It is recorded as rejected ("Stage 3 can't trade on its own") and nothing happens. It does not wait to be used later.

What if Stage 3 arrives one minute after the window closed?

The setup is already expired ("Setup Expired — No Trade"). Late signals never revive an expired setup; the next setup needs Stage 2 again.

What if Stage 1 changes its mind?

A different Stage 1 state ends the setup in progress (Invalidated) and, if the new bias can trade, starts a fresh one. A repeat of the same state restarts the Stage 1 → 2 window while the setup still waits for Stage 2.

Is an 8-hour chart the same as an 8-hour window?

No. The chart timeframe is where the indicator runs; the window is how long LEFTURN waits. Set them separately.

Which time zone are the times in?

LEFTURN times every confirmation by the moment its server received the alert, shown in the portal's time zone (Eastern). The time TradingView put in the alert is kept beside it as the alert time.

Can I trade buys and sells in one portfolio?

Yes, with Direction compatibility set to trend-following and Trade direction set to Buys and sells. Or limit it to buys only or sells only.

How do range portfolios work?

Stage 1 must say consolidating. Stage 2 then picks the side (bullish = buy, bearish = sell), and Stage 3 must match that side.

Can two setups run at once in one portfolio?

Not in this version: one setup at a time per portfolio. Create a second portfolio (for another instrument or another idea) if you need more.

What does "Publisher acknowledged" mean?

Your Publisher EA collected the trade instruction from LEFTURN. It isn't a trade yet. "Broker order confirmed" means MT5 accepted the order; "Broker fill" means it filled.

Why was my qualified setup not executed?

Open its timeline. Common reasons: the Publisher EA wasn't running (the instruction expires after about two minutes), AllowLiveTrading is false on a real-money account, the New York close (4:30 to 6:30 PM), the daily trade limit, or one plan per instrument per day.

What happens to my history when I edit a portfolio?

Nothing is lost. Each rule change is saved as a new version. Old setups and trades keep the version and the name they were made under.

What do Pause and Archive do?

Pause stops new setups and cancels the one in progress (and any instruction the EA hasn't collected); alerts are still recorded. Archive switches the three keys off for good and keeps all history and analytics.

Why does my win rate say "—"?

Win rate only counts closed trades. Signals and setups that never filled are not trades and are never counted as wins or losses.

Risk notice. Trading carries risk of loss. Webhook Portfolios add structure and records; they don't predict markets or guarantee results. Test on demo first.

Back to Webhook Portfolio