Welcome to AlgoCode

AlgoCode is Algocrab's scripting language for custom indicators and strategies. Write AlgoCode or plain JavaScript — the editor auto-detects the language, compiles AlgoCode to JavaScript, and runs it on your chart candles.

What you can build

  • Indicators — overlays and oscillator panes with plot(), shapes, fills, labels, and alerts.
  • Strategies — bar-by-bar backtests with strategy(), then publish to live algo trading.
  • Bridge signals — external MT4 / AmiBroker / other platform alerts via webhook (separate from the chart editor).

How the platform fits together

  1. Chart editor — write code, press Run, see plots and Strategy Tester results.
  2. Algo Trading — built-in strategies (RSI, MACD, …) or custom AlgoCode strategies published from the chart.
  3. Bridge Tool — connect external platforms with JSON webhooks.
Script vs platform risk: AlgoCode strategy.entry / strategy.close decide when to enter or exit. Stop loss and target on live LTP come from algo.risk in code, strategy parameters (Step 3 wizard or Publish modal), or — for script-driven exits only —strategy.exit when risk mode is "Script manages exits". See Risk management.

Documentation map

Language coverage

AlgoCode supports a large set of built-in functions for indicators and strategies. Use the language reference to see what is fully supported, partially supported, or planned. This documentation covers Algocrab-specific behaviour — how scripts run on the chart, publish to algo trading, and connect to brokers.