Skip to main content
In this tutorial, you’ll build a simple Moving Average Crossover indicator that generates BUY/SELL signals on the InnovaTrading chart.

Prerequisites

  • An API key (contact us to get one)
  • Python 3.8+ or Node.js 16+
  • Basic understanding of trading concepts

What We’ll Build

A Moving Average Crossover indicator that:
  1. Calculates 20-period and 50-period Simple Moving Averages
  2. Generates a BUY signal when the fast MA crosses above the slow MA
  3. Generates a SELL signal when the fast MA crosses below the slow MA

Step 1: Set Up Your Project

Step 2: Create the Configuration

Create a config.py or config.js file:

Step 3: Fetch Market Data

Run it to verify:

Step 4: Calculate Moving Averages

Step 5: Detect Crossovers

Step 6: Submit to InnovaTrading

Step 7: Put It All Together

Step 8: Run It!

Expected output:

Step 9: View on Chart

  1. Open InnovaTrading
  2. Navigate to EURUSD H1 chart
  3. Open the External Indicators panel
  4. Your “MA Crossover” indicator should appear
  5. Toggle it ON to see the signals
MA Crossover on chart

Next Steps

Add Stop Loss & Take Profit

Make your signals actionable with risk management levels

Continuous Updates

Set up automatic signal updates

Full Source Code

Download the complete example: