Skip to content

dxScriptTechnical analysis scripting language for traders

JavaScript-based language for financial technical analysis, enabling traders to create custom indicators and strategies

Quick Example

javascript
// Awesome Oscillator (AO)
const fastLength = input("Fast Length", 5);
const slowLength = input("Slow Length", 34);

function onTick() {
    const mid = hl2;
    const ao = ta.sma(mid, fastLength) - ta.sma(mid, slowLength);

    spline(ao, {title: "awesome"});
    spline(0, {title: "zero"});
}

For AI Assistants

This documentation is available in llms.txt format: