REVDEN AI Desk · Setup

Bring your own AI to the desk

Your AI gets every symbol with its REVDEN state as the basis, and you talk the setup through right next to the chart. The AI Desk runs on your own API key. You connect your AI once: one key in MT5, two allowed addresses, one model. Your key stays in your terminal.

REVDEN AI Desk MarketAI Desk
Connected to OpenRouter · checked 14:02
US30Trending
XAUUSDDeveloping
You choose the view at the top of the panel. Market runs for everyone, AI Desk with your own key.

Two views in one panel

You choose: Market or AI Desk

The switch at the top of the panel takes you between both views, whenever you like. On its first start the desk opens on Market.

For every trader

Market

Runs from the first start, before you connect anything. Four blocks show where the market stands right now:

  • Currencies: which currency is strong and which is weak
  • Hot symbols: the symbols in motion, each with its REVDEN state
  • Today: the events of the day for your symbols
  • Just changed: a ticker of the latest state changes

With your own API key

AI Desk

Here you talk your symbols through with your own AI, right next to the chart. The AI Desk works only with an API key from your AI provider. Until your AI is connected, this view shows the invitation with the button Set up AI, and it leads to this page.

REVDEN AI Desk MarketAI Desk
Without a key, Market runs in full and AI Desk shows the invitation. Symbols and states are an example.

Connect your AI

Five steps, one key

Pick the way that fits you. Both end at the same green line in the panel.

One account for many models. You can switch models later in the panel and keep the same key.

OpenRouter

  1. 1Step 1 of 5

    Create an account and add credits

    Sign up at openrouter.ai and open Credits. OpenRouter runs on prepaid credits: what you load is what your AI can spend. You top up by hand or set an automatic top-up.

    openrouter.ai/settings/credits ↗

    openrouter.ai/settings/credits
    Credits
    Balance
    Add credits
    Balance
  2. 2Step 2 of 5

    Create a key and give it a limit

    Open Keys and create a key. Name it REVDEN AI Desk and set a credit limit, as OpenRouter recommends for every key. Then copy the key, it starts with sk-or-.

    openrouter.ai/keys ↗

    openrouter.ai/keys
    API Keys
    Create key
    NameREVDEN AI Desk
    Credit limit 
    sk-or-v1-3f9c······a71eCopyCopied
  3. 3Step 3 of 5

    Paste the key into MT5

    Press F7 on the chart with the desk. In the group AI connection, set AiProvider to OpenRouter and paste your key into AiApiKey with Ctrl+V. Confirm with OK.

    AiBaseUrl stays empty. It is only for Azure OpenAI and a custom endpoint.

    REVDEN AI Desk✕
    === AI connection · all other settings are on the chart ===
    AiProvider: AI serviceAnthropicOpenRouter
    AiBaseUrl: address, only for Azure OpenAI and Custom endpoint
    AiApiKey: API key (paste with Ctrl+V)sk-or-v1-3f9c······a71e
    OKCancel
  4. 4Step 4 of 5

    Allow two addresses

    In MT5: Tools › Options › Expert Advisors › Allow WebRequest for listed URL

    Tick the box and add both lines. The first carries your AI, the second the REVDEN data for your symbols.

    https://openrouter.ai https://revden.io

    The panel notices the change by itself within 30 s.

    Options✕
    Expert Advisors
    Allow WebRequest for listed URL:
    https://openrouter.ai
    https://revden.io
    + add new URL
    OKCancel
  5. 5Step 5 of 5

    Pick a model

    Open the desk's settings with the gear at the top right and go to AI. Under Model, pick one from the list, for example Anthropic: Claude Sonnet 5.5.

    The desk checks the connection right after your choice. The dot turns green with Connected to OpenRouter.

    Settings › AI
    Provider
    OpenRouter
    Model
    not set Anthropic: Claude Sonnet 5.5
    Connection
    No model name yet. Checking the connection to OpenRouter … Connected to OpenRouter · checked 14:02
    Allowed URLs
    https://openrouter.ai
    https://revden.io

Connected

Your AI is at the desk

The setup in the panel continues with your symbols. After that, the switch at the top takes you between Market and AI Desk.

REVDEN AI Desk MarketAI Desk
Checking the connection to OpenRouter …
Connected to OpenRouter · checked 14:02
US30Trending

Anthropic

  1. 1Step 1 of 5

    Open a Console account and buy credits

    Sign in at platform.claude.com or create an account. On the Billing page, click Buy credits. The Claude API runs on prepaid credits, and auto-reload is there if you want it.

    platform.claude.com/settings/billing ↗

    With a Claude Max or Team plan, Anthropic adds monthly API credits. You claim them on claude.ai under Settings › Billing by linking your Console organization. Anthropic help ↗

    platform.claude.com/settings/billing
    Billing
    Credit balance
    Buy credits
    Credit balance
  2. 2Step 2 of 5

    Create a key and copy it right away

    Open API keys, click Create key and name it REVDEN AI Desk. The Console shows the full key once, at creation. It starts with sk-ant-.

    platform.claude.com/settings/keys ↗

    platform.claude.com/settings/keys
    API keys
    Create key
    NameREVDEN AI Desk
    Expiration 
    sk-ant-api03-7d2e······b90cCopyCopied
  3. 3Step 3 of 5

    Paste the key into MT5

    Press F7 on the chart with the desk. In the group AI connection, set AiProvider to Anthropic and paste your key into AiApiKey with Ctrl+V. Confirm with OK.

    AiBaseUrl stays empty. It is only for Azure OpenAI and a custom endpoint.

    REVDEN AI Desk✕
    === AI connection · all other settings are on the chart ===
    AiProvider: AI serviceAnthropic
    AiBaseUrl: address, only for Azure OpenAI and Custom endpoint
    AiApiKey: API key (paste with Ctrl+V)sk-ant-api03-7d2e······b90c
    OKCancel
  4. 4Step 4 of 5

    Allow two addresses

    In MT5: Tools › Options › Expert Advisors › Allow WebRequest for listed URL

    Tick the box and add both lines. The first carries your AI, the second the REVDEN data for your symbols.

    https://api.anthropic.com https://revden.io

    The panel notices the change by itself within 30 s.

    Options✕
    Expert Advisors
    Allow WebRequest for listed URL:
    https://api.anthropic.com
    https://revden.io
    + add new URL
    OKCancel
  5. 5Step 5 of 5

    Pick a model and its thinking depth

    Open the desk's settings with the gear at the top right and go to AI. The model list marks Claude Sonnet 5.5 as recommended. Thinking depth runs from Low to Very high, Medium is preset.

    The desk checks the connection after each model change. The dot turns green with Connected to Anthropic.

    Settings › AI
    Provider
    Anthropic
    Model
    Claude Haiku 5.5 Claude Sonnet 5.5recommended
    Thinking depth
    LowMediumHighVery high
    Connection
    Connected to Anthropic · checked 14:01 Checking the connection to Anthropic … Connected to Anthropic · checked 14:02

Connected

Your AI is at the desk

The setup in the panel continues with your symbols. After that, the switch at the top takes you between Market and AI Desk.

REVDEN AI Desk MarketAI Desk
Checking the connection to Anthropic …
Connected to Anthropic · checked 14:02
US30Trending

Will this run up a bill?

You set the ceiling for AI costs

You pay your AI provider directly, under your own account. Two ceilings sit between the desk and your balance, and you set both.

In the desk

Daily AI budget, on from the first start at 5 USD

Before each AI call the desk adds today's spend to the estimate for this call. Once the budget is reached, new AI calls wait until 00:00, and open positions keep their stops and targets. You change the amount under Settings › AI.

At your provider

A limit on the key or the workspace

At OpenRouter, the credit limit from step 2 caps what this one key can spend. At Anthropic, you can give the workspace of your key its own spend limit in the Console.

Where does my key go?

What leaves your terminal

Three destinations, each with its own share. Your key travels only to your AI provider.

Your key

It lives in the EA inputs on your chart and goes with each call to your provider. The desk saves model and thinking depth in a file of its own, and your key stays out of it.

To your AI provider

The request of each call: your rulebook, the REVDEN context, prices and your positions, an account summary without account number, the latest journal lines and your notes. It runs under your own contract with the provider.

To Stein Investments

Your build token, a random terminal ID and your symbol list. With that, revden.io sends the REVDEN data for exactly those symbols.

If something is off

The panel names the fix in its own line

Each line below appears like this in the desk. Next to it: what it means and what to do.

AiApiKey is still empty

The key is missing. Press F7 on the chart and paste it into AiApiKey, as in step 3.

OpenRouter rejected the key (401)

Your provider refuses the key. Copy it again in full and paste it into AiApiKey.

MT5 blocks openrouter.ai (4014)

MT5 still holds the address back. Add it as in step 4. The panel notices the change within 30 s; if the line stays, restart the EA.

No model name yet. Enter it under Settings › AI.

On OpenRouter you choose the model yourself. Pick one as in step 5.

Model unknown to the AI provider (404)

Your provider has no model under this name. Choose another one under Settings › AI.

OpenRouter is unreachable right now

The panel tries again by itself every 30 s. If it stays like this, check this terminal's internet connection.

AI call failed: http 402 …

The text after the code comes from your provider. At OpenRouter and at Anthropic, 402 stands for credits or billing: top up your balance there.

Daily AI budget 5 USD reached: no new AI calls until 00:00

Your own ceiling from the desk. Open positions keep their stops and targets. Raise the amount under Settings › AI, or the desk carries on at 00:00.

Good to know

  • The AiProvider list also holds OpenAI, Google Gemini, xAI, DeepSeek, Mistral, Groq, Azure OpenAI, Ollama Cloud and a custom endpoint. Each needs its own key and its own allowed address; Azure OpenAI and a custom endpoint also need AiBaseUrl.
  • Your model choice applies to every desk in this terminal. Each provider keeps its own choice.
  • Model and thinking depth are saved in MQL5\Files\REVDEN AI Desk\setup.txt.
  • The daily AI budget works with an estimate per call. A call that runs longer than estimated can end above it. The budget line under Settings › AI shows how the budget stands for your chosen model.