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
  • How it works:
  • Using the Day and Time Block:
  1. Script Builder
  2. Blocks

Day and Time

PreviousIndicatorsNextCandle Patterns

Last updated 7 months ago

The Day and Time Block is a versatile tool in the script builder that allows you to set specific time-based conditions for your trading strategy. This block helps you define when your strategy should be active based on days of the week and specific time ranges.

How it works:

  • Time Zone Selection: Choose the appropriate time zone for your trading activities from a comprehensive list of global time zones.

  • Day Selection: Select which days of the week you want your strategy to be active. You can choose any combination of days from Monday to Sunday.

  • Time Range: You can set your strategy to run "All Day" or specify a particular time range. If you choose a specific time range, you'll need to set a "Start Time" and an "End Time" for your trading hours.

  • Visual Representation: You have the option to "Draw Allowed Time" on your chart, which visually highlights the periods when your strategy is active.

Using the Day and Time Block:

  • Market Hours: Set your strategy to only operate during specific market hours, such as the New York Stock Exchange trading hours.

  • Day Trading: Limit your strategy to operate only during the most active trading hours of the day.

  • Avoid Specific Periods: Exclude certain days or times known for high volatility or unpredictable market behavior.

  • Time-Based Strategies: Create strategies that only trade during specific times of day when certain patterns are more likely to occur.

  • Multiple Sessions: Set up different rules for different trading sessions (e.g., Asian, European, and American sessions).

Remember, the Day and Time Block acts as a filter for your entire strategy. When the current time is outside your specified days and times, your strategy will not generate any signals or execute any trades, regardless of what other conditions might be met. By carefully configuring your Day and Time Block, you can fine-tune your strategy to trade only during the most opportune periods, potentially improving its effectiveness and reducing unnecessary trades during less favorable times.

Day and Time Block Settings