Guide to Connecting DXTrade via Webhook in TradingView

Step 1: Creating a Webhook on AlgoWay
  1. Log in to your AlgoWay account

    Go to AlgoWay.trade and log in to your account.

  2. Adding a webhook:
    • Go to the Dashboard tab.
    • Click the Add Trial Webhook button (for a trial webhook) or Add Main Webhook (for a main webhook).
  3. Configuring webhook parameters:
    • Platform: Select DxTrade from the dropdown menu.
    • Quantity Multiplier: Select Absolute and set the multiplier to 1.
    • Trade Type: Choose Hedge.
    • URL: Enter the DxTrade URL, e.g., https://dxtrade.fortraders.com.
    • Login: Enter your DxTrade login (e.g., FT_C10253).
    • Password: Enter your DxTrade password.
    • Account ID: Find your Account ID on the DxTrade platform in the top-right corner after logging in.
  4. Guide to Creating a Webhook and Configuring It in TradingView Guide to Creating a Webhook and Configuring It in TradingView
  5. Saving the webhook:

    Click Add Trial Webhook or Add Main Webhook to save. The webhook will then appear in the list on the Dashboard panel.

Guide to Creating a Webhook and Configuring It in TradingView
Step 2: Configuring TradingView to Work with the Webhook
  1. Opening a chart:

    Go to TradingView and select the chart of the instrument you want to work with.

  2. Creating an alert:
    • Right-click on the chart and select Add Alert.
    • Alternatively, click on the bell icon in the top toolbar.
  3. Guide to Creating a Webhook and Configuring It in TradingView
  4. Configuring the alert:
    • In the Condition section, set the parameters for the alert (e.g., crossing a price level).
    • Make sure the correct time frame is selected for the chart.
  5. Adding the Webhook URL:

    Enable the Webhook URL option. Copy the URL from your AlgoWay webhook (e.g., https://algoway.co/xxxxx-yyyyy-zzzzz) and paste it into the Webhook URL field.

  6. Guide to Creating a Webhook and Configuring It in TradingView Guide to Creating a Webhook and Configuring It in TradingView
  7. Webhook message:

    In the Message section, enter the JSON message:

    { "platform_name": "dxtrade", "ticker": "{{ticker}}", "order_contracts": "{{strategy.order.contracts}}", "order_action": "{{strategy.market_position}}" }

    Use TradingView parameters for automatic value substitution (e.g., {{ticker}} will insert the current instrument's ticker).

  8. Guide to Creating a Webhook and Configuring It in TradingView
  9. Saving the alert:

    Click Create to save the alert.

Step 3: Verifying Connection and Functionality
  1. Go to the Logs section on the AlgoWay website to check if messages are being received from TradingView.
  2. Ensure the webhook is active in the Your Webhooks section.
  3. Verify functionality on DxTrade, where trades created via the webhook should appear.

Your webhook is now configured, and you can use it for automated trading through TradingView and DxTrade!