TradingView reversal signals routed to Hyperliquid
Automating the KivancOzbilgic PMax Strategy on Hyperliquid
PMax places two moving rails around price. EMA 10 points along the recent trend, while ATR 5 multiplied by 3 determines how much room volatile ETH candles need. A reversal is accepted only after price and those moving boundaries complete their change of side.
ETH can travel hundreds of dollars without moving in a straight line. A trend boundary that stands too close is repeatedly crossed by noise. A boundary that stands too far away recognizes the reversal after most of the move has already happened.
The PMax Explorer Strategy and Screener approaches this tension by combining two different trailing systems. One follows a moving average. The other adjusts its distance according to Average True Range.
This test runs the strategy on the OKX ETHUSDT Perpetual Swap Contract using four-hour candles. TradingView calculates the strategy from OKX history, while AlgoWay sends the resulting orders to Hyperliquid.
PMax gives trend direction and volatility separate jobs
A moving average describes where recent prices have been concentrating. In this configuration, PMax uses an EMA with a length of 10. Because an exponential average places more weight on recent candles, it adjusts relatively quickly when the ETH trend changes.
ATR answers a different question. It does not decide whether the trend is bullish or bearish. It measures how widely price has recently been moving.
The configured ATR Length is 5. On a four-hour chart, the volatility measurement is therefore built from a short window of five recent candles. The ATR Multiplier is 3, placing the volatility-based boundary three measured ranges away from its reference.
EMA 10 points along the track
EMA 10 reacts to the recent direction of ETH and supplies the moving-average component of the PMax calculation.
ATR 5 measures the required clearance
A short ATR window responds when four-hour candles become wider or narrower. The multiplier of 3 converts that measurement into a trailing distance.
PMax moves both rails together
The trend rail changes direction with the moving-average structure. The volatility rail expands and contracts with recent candle ranges.
The railway metaphor is not decoration. It follows the indicator's mechanics. EMA 10 determines the recent route, while ATR 5 × 3 determines the amount of clearance around that route. Price must complete a meaningful crossing of the combined boundary before the strategy changes direction.
The exact inputs behind the recorded result
Change ATR Calculation Method is enabled. The option belongs to the strategy's ATR implementation and remains part of the tested configuration. Reproducing the result with that checkbox disabled would create another test.
Show Moving Average, Show Crossing Signals and Highlighter are enabled. They make the moving-average structure, strategy crossings and current trend state easier to inspect.
Show Price/PMax Crossing Signals and Show Screener Label are disabled. These display choices should not be confused with the strategy orders recorded by the Strategy Tester.
ATR Length, ATR Multiplier, Moving Average Type and Moving Average Length change the PMax calculation. Label position, label color and visibility options primarily change what appears on the chart.
Why four-hour bar close separates an attempt from a reversal
During an unfinished four-hour candle, ETH can cross PMax and then return to its previous side before the candle closes. The crossing looked real while the candle was forming, but the final close no longer confirms it.
PMax distinguishes a potential reversal forming on the current candle from a confirmed reversal recorded after a candle has completed.
Before the close, price and the PMax boundary are still moving. After the close, TradingView can evaluate the completed relationship and create the strategy order from the finished bar.
The Strategy Properties therefore remain set to On bar close. Sending orders from unfinished crossings would automate a different and more aggressive interpretation of PMax.
The OKX chart and Hyperliquid order book are different price streams
ETHUSDT perpetual contracts on OKX and Hyperliquid follow the same underlying market, but their candles and execution prices do not have to be identical.
Each venue has its own order book, liquidity, temporary imbalances, highs, lows and closing prices. Since ATR reacts to candle ranges and EMA reacts to closes, another TradingView provider can produce a reversal on a different candle.
This historical report belongs specifically to the OKX ETHUSDT perpetual feed. Hyperliquid is the destination where the finished instruction is executed.
That separation is intentional. TradingView supplies the strategy engine. AlgoWay carries the completed order state to the selected trading venue.
The historical test spans more than four years of ETH trading
The visible Strategy Tester period runs from January 1, 2022 through July 26, 2026. Initial capital is 100,000 USDT, each order uses 10% of equity, and the script executes on the completed four-hour candle.
| Test element | Recorded value | Why it matters |
|---|---|---|
| Chart | OKX ETHUSDT perpetual | Supplies the highs, lows and closes used by EMA and ATR. |
| Timeframe | 4 hours | Defines the clock duration behind every indicator period. |
| Initial capital | 100,000 USDT | Provides the starting balance for the simulation. |
| Order size | 10% of equity | Determines the quantity calculated by TradingView. |
| Script execution | On bar close | Prevents unfinished crossings from becoming strategy orders. |
| Historical period | Jan 1, 2022 - Jul 26, 2026 | Defines the exact sample behind the reported statistics. |
TradingView also displays a compatibility warning because the public strategy uses an older Pine Script version. The warning does not automatically invalidate the recorded report, but the strategy should be checked again after any future platform or script update.
Most PMax trades lost, but the historical result remained positive
The strategy completed 107 simulated trades. Forty-six were profitable and sixty-one were unprofitable. The win rate was therefore below 50%.
That does not automatically make the system unprofitable. A trend-following strategy can abandon several failed reversals and recover those losses when one sustained movement travels far enough.
A profit factor of 1.566 means the historical gross profit was approximately 1.57 times the historical gross loss. Total simulated profit reached 6,251.65 USDT, while maximum drawdown reached 1,646.87 USDT.
The result suggests that the profitable trades were large enough to compensate for the lower win rate during this sample. It does not prove that the same relationship will survive another period, another feed or real execution costs.
Reverse/Netting keeps Hyperliquid aligned with one PMax direction
PMax describes one current trend state. It changes from long to short, from short to long, or closes the strategy exposure. It is not designed to maintain two independent ETH strategies on opposite sides.
Hedge/Dual Side
A long and short position can survive as separate exposures. Hyperliquid could then hold both directions while TradingView reports one current PMax state.
Reverse/Netting
The opposite instruction works against the current exposure. After the order is processed, the account retains one resulting net ETH position.
Flat state
When TradingView reports flat, the strategy exposure is removed rather than replaced by another independent direction.
Select Reverse/Netting in the AlgoWay Hyperliquid webhook. This mode matches the single directional state produced by PMax.
A dedicated Hyperliquid API wallet signs the orders
Hyperliquid does not require AlgoWay to receive the private key of the main wallet. Instead, authorize a dedicated API wallet and save the private key generated for that agent.
- Open the API page in Hyperliquid. Select Authorize API Wallet and enter a recognizable name such as algoway.
- Choose the validity period. Set Days Valid or use the maximum available authorization period. Once the authorization expires, the API wallet can no longer submit new orders.
- Save the generated API private key. Hyperliquid displays it during wallet authorization. Store it securely because it may not be shown again.
- Copy the Master Wallet Address. Use the public wallet address from the main Hyperliquid account menu. Do not substitute the agent wallet address displayed in the API wallet table.
The Master Wallet Address identifies the trading account. The API private key authorizes the dedicated agent to sign trading requests. The main wallet private key should never be entered into AlgoWay.
The full connection procedure is available in How to Connect TradingView to Hyperliquid via AlgoWay .
Creating the Hyperliquid route in AlgoWay
Open Dashboard >> Trade Webhooks and create a route with TradingView as the source and Hyperliquid as the destination.
| Webhook field | Recorded setup | Function |
|---|---|---|
| Market Type | Futures/Perpetual | Routes orders to the Hyperliquid perpetual market. |
| Margin Mode | Cross | Uses account margin shared across the cross-margin positions. |
| Trade Type | Reverse/Netting | Maintains one resulting ETH direction. |
| Account Type | Live | Connects to the live account shown in the recorded setup. |
| Quantity Multiplier | Absolute 1 | Does not intentionally scale the TradingView quantity. |
| News Filter | No | Does not block the cryptocurrency signal around news events. |
Enter the Master Wallet Address and the private key generated for the authorized API wallet. Vault Address remains empty unless the orders are specifically intended for a Hyperliquid vault.
Save the webhook only after checking every field. The wallet address, API key and unique webhook UUID are private account data and should never be published.
The manual test proves the route, not the PMax calculation
Open Dashboard >> Webhook Logs, select Test Webhook and choose the new Hyperliquid route.
Enter the ETH market and use the smallest quantity accepted by the destination. The purpose is to discover whether AlgoWay can read the account, authorize the request, resolve the symbol and submit the selected volume.
The manual order does not calculate EMA 10, ATR 5 or the PMax boundary. It checks only the execution connection between AlgoWay and Hyperliquid.
Read the AlgoWay response and verify the actual position in Hyperliquid. Close the manual test position before activating the strategy alert.
The TradingView alert sends the completed strategy state
Return to the OKX ETHUSDT perpetual four-hour chart. Confirm Source Close, ATR Length 5, ATR Multiplier 3, EMA and Moving Average Length 10.
Create an alert from the PMax strategy order fills and paste this one-line message:
{"platform_name":"hyperliquid","ticker":"{{ticker}}","order_contracts":"{{strategy.order.contracts}}","order_action":"{{strategy.market_position}}","price":{{close}}}
{{ticker}}
Inserts the exact TradingView chart ticker. When Hyperliquid uses another market name, AlgoWay can translate it through Symbol Mapping.
{{strategy.order.contracts}}
Inserts the quantity belonging to the executed strategy order. A fixed manual test volume should not replace the calculated strategy quantity.
{{strategy.market_position}}
Inserts the resulting PMax state as long, short or flat. Reverse/Netting uses that state to maintain one resulting ETH exposure.
{{close}}
Inserts the closing price available when the TradingView alert fires. Hyperliquid can execute at another price because it has a separate order book.
Open the alert Notifications, enable Webhook URL and paste the private URL copied from the AlgoWay Hyperliquid webhook.
If the webhook log reports an unknown symbol, inspect the exact ticker received
from TradingView and add a deliberate mapping to the Hyperliquid market. For
example, a chart ticker such as ETHUSDT.P may need to be translated
to the destination's ETH market name.
The first autonomous reversal must agree across three records
After a four-hour candle closes with a PMax strategy order, TradingView replaces the placeholders and sends the completed message to AlgoWay.
- Check the TradingView strategy state. Confirm that the completed candle changed the strategy to the expected long, short or flat state.
- Check AlgoWay Webhook Logs. Confirm the received ticker, calculated quantity, market position and Hyperliquid response.
- Check the Hyperliquid position. Confirm the actual ETH market, accepted size and resulting net direction.
The OKX candle close and the Hyperliquid fill price can differ. The critical comparison is whether the destination market, quantity and resulting direction correspond to the TradingView strategy order.
The complete PMax route
What this ETHUSDT automation experiment establishes
EMA 10 supplies a responsive trend rail. ATR 5 × 3 supplies a volatility rail that expands and contracts with recent four-hour candle ranges. Bar-close execution prevents an unfinished crossing from becoming a real order.
On the recorded OKX ETHUSDT history, the configuration completed 107 trades and produced 6,251.65 USDT in simulated profit, a profit factor of 1.566 and maximum drawdown of 1.59%.
AlgoWay carries the confirmed strategy state to Hyperliquid using an authorized API wallet, the Master Wallet Address, Futures/Perpetual market type, Cross margin and Reverse/Netting execution.
The manual order verifies the road. The TradingView strategy alert supplies the actual ticker, calculated quantity and resulting PMax direction.
Original strategy: PMax Explorer Strategy and Screener . Hyperliquid connection manual: TradingView to Hyperliquid via AlgoWay .
Direct answers
Direct answers about PMax ETHUSDT automation on Hyperliquid
Can PMax ETHUSDT signals be sent from TradingView to Hyperliquid?
Yes. TradingView can calculate PMax strategy orders from the OKX ETHUSDT perpetual chart and send them through an AlgoWay webhook to Hyperliquid. The chart provider and the execution destination do not have to be the same trading venue.
Which PMax settings produced the recorded ETHUSDT backtest?
The recorded backtest used Close as the source, ATR Length 5, ATR Multiplier 3, EMA as the moving-average type and Moving Average Length 10 on the four-hour OKX ETHUSDT perpetual chart.
What does the ATR 5 multiplier 3 setting do in PMax?
ATR Length 5 measures recent four-hour volatility from a short five-candle window. The multiplier of 3 places the ATR-based boundary three measured volatility units from its reference level, giving ETH room to move before a reversal is accepted.
What does EMA 10 do in this PMax configuration?
EMA 10 supplies the moving-average component of PMax. Because an exponential moving average gives more weight to recent prices, the ten-period EMA reacts more quickly than a long, equally weighted trend average.
What is the difference between a potential and confirmed PMax reversal?
A potential reversal is forming inside the current unfinished candle and can disappear before the candle closes. A confirmed reversal belongs to a completed candle and is the safer event to use for a bar-close strategy order.
Why is the PMax strategy executed on the four-hour candle close?
Bar-close execution prevents a temporary intrabar crossing from being treated as a completed reversal. TradingView waits until the four-hour candle finishes before confirming the strategy state and generating the order.
Which AlgoWay trade mode should PMax use with Hyperliquid?
The recorded setup uses Reverse/Netting because PMax expresses one resulting ETH direction at a time. An opposite order works against the existing position rather than preserving separate long and short exposures.
Which Hyperliquid credentials are required by AlgoWay?
AlgoWay requires the public Master Wallet Address and the private key generated for an authorized Hyperliquid API wallet. The main wallet private key should never be entered into AlgoWay.
Should a fixed test quantity be used in the final PMax TradingView alert?
No. A small fixed quantity belongs only to a manual connection test. The final PMax strategy alert should use {{strategy.order.contracts}} so TradingView supplies the quantity attached to the executed strategy order.
What historical results did the PMax ETHUSDT test produce?
From January 1, 2022 through July 26, 2026, the recorded TradingView test produced 6,251.65 USDT in simulated profit, a profit factor of 1.566, 46 profitable trades out of 107 and a maximum drawdown of 1,646.87 USDT.