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
  • Before we start
  • Starting prompt
  • Second Prompt
  • Finished
  1. HorizonAI Chat
  2. Examples

Advanced Order Blocks w/ Volume

This will be a short guide on how to code an order block indicator that will show the volume. We will use HorizonAI entirely so no prior coding knowledge is needed

PreviousExamplesNextWhat is the Script Builder

Last updated 4 months ago

Get HorizonAI I'll be using the HorizonAI Chrome Extension, you can download the extension and follow along with a free account ->

Before we start

  1. Open up HAI, and click into "Edit script" mode.

  2. Open the Pine Editor and start a new script and make it blank (remove all the code).

  3. Finally, connect HorizonAI to the Pine Editor

Starting prompt

First, because we don't want to overwhelm the AI with tasks, we split the idea of "Order Blocks with Volume" into 2 parts. First being the order blocks, then adding the volume analysis

prompt: code an order block indicator

You can see HAI returned not only working code, but good looking order blocks

Second Prompt

With the Order Blocks done, now lets ask the AI to add volume analysis

prompt: can you add volume analysis for the order blocks. i want to see the volume so i can see how strong the order blocks are

HorizonAI not only added the volume analysis, with the volume reading inside the box, it also made it so the color of the Order Blocks get darker the strong they are.

We also now have "Volume Threshold" multiplier in the settings, so we can not show the "weaker" Order Blocks.

Finished

Just like that you now have your very own Order Block with Volume Analysis indicator!

https://horizontrading.ai/