Links

Change Log

Version 1.1

HaasScript version 1.1 is currently used in the Cloud and Enterprise edition. In this version, we added the following new commands;

Charting constants:

  • ShapeDash

Signal constants:

  • SignalError
  • SignalExitLong
  • SignalExitShort

Trading constants:

  • CrossMarginMode
  • HedgePositionMode
  • OneWayPositionMode

Price Source constants:

  • ClosePriceSource
  • HighPriceSource
  • HLCPriceSource
  • HLPriceSource
  • OpenPriceSource
  • VolumePriceSource
  • LowPriceSource
  • OHLCPriceSource

Array Helpers

  • ArrayDistinct

Charting

  • Color
  • PlotShapes
  • SetStackedAreaOpacity

Easy Insurances

  • OrderOncePerBar
  • WaitAfterOrder

Input fields

  • InputButton
  • InputSourcePrice

Mathematical

  • Truncate

Machine Learning

  • IsAbnormal
  • SimpleForecastBySsa

Memory Helpers

  • Delete

Order Handling

  • IsBuyOrder
  • IsSellOrder

Order Information

  • GetFailedOrderMessage
  • GetOrderProfit

Price Data

  • GetBodyHighPrices
  • GetBodyLowPrices

Price Market Information

  • LastBuyTradesCommand
  • LastSellTradesCommand

Profit Information

  • SetBotRoiBaseValue
  • GetTradingReport

Settings

  • GetLeverage
  • GetMarginMode
  • GetMaxLeverage
  • GetOrderType
  • GetPositionMode
  • HideTradeAmountSettings
  • IsBotPaused
  • IsEnterpriseVersion
  • GetHaasScriptVersion
  • IsMarginModeSupported
  • IsPositionModeSupported
  • PauseBot
  • ResumeBot
  • SetLeverage
  • SetMarginMode
  • SetPositionMode

Social Media

  • BroadcastToDiscord
  • BroadcastToTelegram

Signal Helpers

  • DelaySignal
  • SaveRemoteSignal
  • SignalMapper

Technical Analysis

  • CHOP

Time Information

  • CloseTime
  • FormatDateTime
  • GetTimer
  • OpenTime
  • StartTimer
  • StopTimer

Trade market information

  • AmountCurrency
  • AmountDecimals
  • AmountStep
  • PriceDecimals
  • PriceStep
  • ProfitCurrency
  • QuoteDecimals
  • QuoteStep

Wallet

  • Balance
  • BalanceAmount

Version 1.0

HaasScript version 1.0 is the initial release and is introduced in version 3 of the TradeServer.