📉Sample TradingView Commands

To enhance the auto-trading experience and ensure consistent execution of trade signals, Traders are encouraged to complete the Auto-Trade Preference within their Trade Profile. This will enable CandeFi to effectively process and execute trade signals. Below are sample payloads that can be sent to CandeFi for auto-trading.

Note: Please replace the text <<password>> with the CandeFi Bot password.

Sample payload where QUANTITY, PRICE & the other values are calculated based on Trade Profiler - Trade Preference

BUY COMMAND

{
    "password": "<<password>>",
    "asset_type": "stocks",
    "asset_name": "{{ticker}}",
    "action": "BUY"
}

SELL COMMAND

{
    "password": "<<password>>",
    "asset_type": "stocks",
    "asset_name": "{{ticker}}",
    "action": "SELL"
}

Sample payload where Trader specifies additional fields: QUANTITY, PRICE & STOP-LOSS.

Fields share in the payload take precedence when executing a signal. Required fields not provided in the payload are calculated based on Trade Profiler.

We recommend using the Trade-Profiler to simplify your Indicators, reduce errors and a more consistent trading.

BUY COMMAND

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "{{ticker}}",
  "action": "BUY",
  "price": 200,
  "stop_price": 190,
  "quantity": 5
}

SELL COMMAND

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "{{ticker}}",
  "action": "SELL",
  "enforce": "GTC",
  "price": 217.5,
  "quantity": 5
}

These are just sample payload commands for demonstration purpose, please do your verify script to make sure it is structured as you intended. If you have any questions about Payload, please contact us or join our community support/discussion on Discord.

TradingView Alert "Message" Command

{{strategy.order.alert_message}}

For all available payload fields for STOCKS & OPTIONS, click the link below:

Last updated