Horizon Trading
  • Welcome to Horizon AI
  • After Sign Up
    • Connecting your Discord
    • Download the Chrome Extension
  • HorizonAI Chat
    • Introduction
    • Horizon Chat Best Practices
    • Features
      • Connecting to the Pine Editor
      • Chat Commands
      • Quick add Scripts
      • Starting a New Project
    • Examples
      • Advanced Order Blocks w/ Volume
  • Script Builder
    • What is the Script Builder
    • Blocks
      • Indicators
      • Day and Time
      • Candle Patterns
      • Conditions
      • Open/Closing a Trade
    • Building your first script
    • Script Templates
      • Making an EMA Crossover
      • Higher TimeFrame Supertrend
      • Order Block Retest w/ Market Structure
      • Trend Line Breakout in a Trending Market
      • Break of Structure during London Open
Powered by GitBook
On this page
  1. Script Builder

Building your first script

Creating your first indicator

PreviousOpen/Closing a TradeNextScript Templates

Last updated 7 months ago

This guide will walk you through adding an indicator to your trading strategy using the Script Builder.

Steps:

  1. Add an Indicator Block

    1. Look for the Indicator Block in the sidebar.

    2. Click and drag the Indicator Block onto the canvas.

  1. Configure the Indicator

    1. Once you drop the block onto the canvas, you will see Indicator Settings Pop

    2. You'll see a dropdown menu labeled "Indicator".

    3. Click on this dropdown and select the indicator you want to use (e.g., "Moving Average Convergence Divergence (MACD)").

  1. Customize Indicator Settings

    1. After selecting an indicator, you'll see additional fields appear.

    2. These fields allow you to customize the indicator's parameters.

    3. For example, with MACD, you might see fields for "Fast Length", "Slow Length", and "Signal Length".

    4. You can also change the timeframe, and showing a Higher Timeframe MACD

    5. Adjust these values as needed for your strategy.

  1. Save Your Settings

    1. Once you're happy with your configuration, click the "Save" button.

  1. Compile Your Script

    1. After adding and configuring your Indicator Block, look for the "Compile" button, located at the top right of the Script Builder.

    2. Click "Compile" to turn your visual block into executable code.

  2. Review and Run

    1. After compilation, you can review the generated code if you wish.

    2. Your indicator is now ready to be used in your trading strategy!

Remember, this is just the beginning. You can add multiple indicators, combine them with other blocks like Conditions or Actions, and create complex trading strategies. Happy trading!

Indicator Block on the left sidebar
Indicator Settings
Indicator Options - Selecting MACD
MACD Indicator Settings
Saved MACD Indicator Block