LogoLogo
Back to HaasOnline.comSwitch to Trade Platform
3.x
3.x
  • Welcome
  • Getting Started
    • Using Local API Server
    • Authentication
    • Response
      • Error Codes
  • HaasScript
    • Using HaasScript
      • HaasScript Facts
      • Charting
      • Order Handling
      • Interval
      • Input Fields
      • Positions Handling
        • Fee correction
      • Position Information
      • Memory Management
      • Optimizations
      • Signal Handling
      • Trading
    • Script Editor
      • Syntax
      • Parameters
      • Interaction
    • Visual Editor
      • Blocks
      • Parameters
      • Flow Control
      • Interaction
    • Custom Commands
    • Tutorials
      • Trade Bot Guide
        • Creating A Trade Bot
          • Visual Editor Guide
          • Script Editor Guide
          • Custom Containers
        • Customizing Indicators
        • Customizing Safeties
        • Customizing Insurances
        • Creating Easy Indicators
      • Unmanaged Trading Guide
        • Executing Orders
        • Managing Orders
        • Managing Positions
        • Managing Wallet
      • Script Editor
        • Classes
        • MadHatter BBands
        • Percentage Price Change
      • Visual Editor
        • Importing Scripts
        • SmoothRSI
        • Scalper Bot
    • Commands
      • Array Helpers
      • Charting
      • Constants
      • Custom Commands Helpers
      • Easy Indicators
      • Easy Insurances
      • Easy Safeties
      • Equations
      • Flow Control
      • Input Fields
      • Input Settings
      • Mathematical
      • Memory Helpers
      • Miscellaneous
      • Order Handling
      • Order Information
      • Position Information
      • Position Prices
      • Price Data
      • Price Market Information
      • Profit Information
      • Settings
      • Signal Helpers
      • String Helpers
      • Technical Analysis
      • Technical Analysis Helpers
      • Time Information
      • Trade Actions (Managed)
      • Trade Actions (Unmanaged)
      • Trade Bot
      • Trade Market Information
      • Wallet
  • API Endpoints
    • Software API
    • Market Data API
    • Account Data API
    • Trade Data API
    • Advanced Order API
    • Trade Bot API
    • Custom Trade Bot API
    • ENUMS
    • Data Objects
  • Examples
    • Script Bots (C#)
      • Scalper Trade Bot
      • Flash Crash Trade Bot
    • Script Indicators (C#)
      • Indicator Script
      • Technical Analysis Library
    • Pshai Scripts (C#)
      • BBands Ext
      • BBands Ext v2
      • Chaikin A/D Line
      • Calibrator
      • Pshai's RVI
    • Scripted Driver
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Submit Support Ticket
Powered by GitBook
On this page
  • Parameter Information
  • Parameter Color
  • Parameter Execute
  • Parameter Multiple Connections
  • Parameter Suggestions
  • Parameter Connection Type
  • Parameter Input Field Hashtag

Was this helpful?

  1. HaasScript
  2. Visual Editor

Parameters

PreviousBlocksNextFlow Control

Last updated 5 years ago

Was this helpful?

Parameter Information

Everything you need to know about the parameter for a command is provided in a help window that pops up when you hover with your mouse on information icon on the top right of each command. The window contains information about the parameter name, type and a short description.

Parameter Color

Each input and output has its own type. There are numbers, text, arrays of numbers, enums and dynamics. The color of each connection point will tell you what type it is or it expects to receive. Each type is connectable with the same type and there are a few exceptions.

Type

Color

Connectable with

Number

Blue

Number/Dynamic

Number Array

Cyan

NumberArray/Number/Dynamic

Boolean

Orange

Boolean/Dynamic

Text

Purple

Text/Dynamic

Enum

Olive

Enum/Dynamic

Dynamic

Gold

All

A dynamic value can contain everything. The scipter controls what goes in and what comes out. While the type is connectable with every other, it doesn't mean it will work. Storing a number in the dynamic and using it as a boolean will result in an error.

Parameter Execute

Some command have a specific execute parameter. The result of the input needs to be true before the command is executed. If the command doesn't have this parameter by default we can enable it through the context menu with the "Toggle connector" option.

Parameter Multiple Connections

Input parameters who end with [] are not restricted to a single connection. They can be connected from an unlimited amount of outputs and will execute once all input values are set.

Parameter Suggestions

For every in- and output we have created a default suggestion list. This will help you define every parameter and quickly continue with the next block. If there are any favorites blocks with a valid connection they will be listed in the Favorite option. Any other block with a valid connection will be listed in the Others list.

Parameter Connection Type

Numbers, strings, dynamics & boolean types can switch between connection dots and input fields. Several command have parameter who are by default a field or checkbox. In the context menu of each parameter there is an option to change the type to a dot, field or checkbox depending on the compatibility.

Parameter Input Field Hashtag

The Visual Editor engine has a little tricks that include a #. When we change a parameter to a field and set a name starting with a hashtag, the engine will try to look up the value in different source.

  • Input field values

  • SessionSets results

  • Saved values of Save()

  • Custom command parameters