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
  • Signal Logic
  • Parameters

Was this helpful?

  1. Examples
  2. Pshai Scripts (C#)

BBands Ext v2

Bollinger Bands Extended version 2

PreviousBBands ExtNextChaikin A/D Line

Last updated 6 years ago

Was this helpful?

Signal Logic

The BBands Ext v2 will produce a buy signal when price has visited below and closed back above lower band. A sell signal is produced when price has visited above and closed back below upper band. These signals are kept until the reset conditions are met.

If [Reset Middle] is used, the signals are persistent until price crosses above middle band on buy signals, and below middle band on sell signals. If this parameter is not used, the signals are persistent until the opposite signal conditions are met.

If [Require FCC] is used, the signals will only start once the full candle (all prices from OHLC) has closed above lower band when buying and below upper band when selling. If this parameter is not used, the signals will start once only the close price comes back inside the bands. Use this parameter to filter out false break-ins back inside the bands during extremely volatile markets.

Parameters

  • Length

    • The period length of the Moving Average

  • Dev. Up

    • The deviation of the upper band

  • Dev. Down

    • The deviation of the lower band

  • MA Type

    • The type of Moving Average. Valid values are: sma, ema, dema, tema, trima, t3, mama, kama and wma

  • Require FCC? (y/n)

    • FCC stands for Full Candle Close. This means, that the whole candle must be inside the bands before signals start to generate when parameter is set to y. Otherwise only the close price has to cross back inside the bands.

  • Reset middle? (y/n)

    • Whether to stop signals on middle band (y) or on opposite signal (n)

BBands Ext v2 in a trade bot