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
  2. Script Templates

Trend Line Breakout in a Trending Market

Creating a Trend Line Breakout Strategy for a Trending Market

PreviousOrder Block Retest w/ Market StructureNextBreak of Structure during London Open

Last updated 7 months ago

This guide will walk you through creating a Trend Line Breakout Strategy for a Trending Market

Steps:

Drag an Indicator Block onto the canvas

  1. Select Trend Line Breakout as your Indicator

  2. Set the Indicator settings for the Trend Line Breakout

  3. Save the Indicator

Add a Condition Block

  1. Drag a Condition Block onto the canvas.

  2. Connect the Trend Line Indicator Block to this Condition Block.

  3. For "Line 1", select "Bullish Breakout".

  4. For "Condition", choose "Is".

  5. For "Line 2", select "True".

  6. Save the settings.

Drag a Second Indicator Block onto the canvas

  1. Select EMA as your Indicator

  2. Set the Indicator settings for the EMA

  3. Save the Indicator

Add a Second Condition Block

  1. Drag a Second Condition Block onto the canvas.

  2. Connect both the EMA Indicator Block and the First Condition Block to this Condition Block

  3. For "Line 1", select Close.

  4. For "Condition", choose "Is Above".

  5. For "Line 2", select EMA

  6. Save the settings.

Add Open Trade and Close Trade Blocks

  1. Drag an Open Trade Block onto the canvas and connect it to the Condition Block.

  2. Configure it to "Buy" when the condition is met (Green Dot Connection).

  3. This will "Buy" when all the conditions are met

Compile Your Strategy

  • Click the "Compile" button to generate the code for your strategy.

Trend Line Breakout Indicator Settings
Saved Trend Line Indicator Block
Creating a Trend Line Breakout Condition
Saved Bullish Breakout Conditon Block
EMA Indicator Settings
Saved EMA Indicator Block
Save EMA Crossover Condition