|
| Functions by CategoryArithmetic and LogicThe following functions and symbols are used in arithmetic and Logic operations. -, +, *, /, %, **, +=, -=, *=, /=, %=, **=, ++, --, <=>, >=, >, <, <=, ==, !=, &, |, ~, <<, >>, If Account Capital FunctionsThe following functions return information about the account. AccountBalance, OpenTradeEquity, SecuritiesOnDeposit, LiquidatingValue, TotalEquity, StockMarketValue, InitialMargin, MaintenanceMargin, TotalCapital, TotalSystemEquity, TotalCash, Cash, PendingCash, Credit, Debit Chart Manipulation FunctionsThe following functions are used to create Charts. PlotPrice, PlotColumn, PlotFixedLine, PlotSetScale, PlotLine, PlotText, PlotFixedLine, PlotCandlestick, PlotTellTale, PlotPAC, PlotBand, PlotGrid, DrawLine, DrawText, DrawRectangle, DrawFilledRectangle, SetChartOption, Color, Dashes, Dots, Vline, SetBarBackground, SetBarColor, ChartInputSlider, ChartInputCombobox Column FunctionsThe following functions allow access to column data. Above, Below, Crossover, Crossunder, Cross, Today, Now, Yesterday, Previous, Ago Date FunctionsThe following functions deal with dates and times. DateTime, Time, Second, Minute, Hour, Month, Year, DayOfWeek, DayOfMonth, DayOfYear, WeekOfYear, NewHour, NewDay, NewWeek, NewMonth, NewYear, Monday, Tuesday, Wednesday, Thursday, Friday, FormatDateTime, ValidateDateTime, AddDeltaDHMS, AddDeltaYM, DeltaDateTime Indicator Manipulation FunctionsThe following functions are used to create technical analysis indicators. ValidatePeriods, ValidateColumns, SetColumnName, Value, SetValue, BarsBack, NumberOfBars, NewColumn, SetColumnType Instrument FunctionsThe following functions return information about the current instrument. CompanyName, Symbol, BigPointValue, TickValue, TickSize, DecimalPoints, SymbolInitialMargin, SymbolMaintenanceMargin Market FunctionsThe following functions are used to place orders to the market. BuyOpen, SellOpen, SellStop, BuyStop, BuyLimit, SellLimit, BuyStopLimit, SellStopLimit, StopLoss, PlaceBuyOpen, PlaceSellOpen, PlaceBuyStop, PlaceSellStop, PlaceBuyLimit, PlaceSellLimit, PlaceBuyStopLimit, PlaceSellStopLimit, PlaceStopLoss, NextBarOpen Numeric FunctionsThe following functions are used to manipulate numbers log, cos, exp, abs, int, sqrt, sin, atan2, ceil, floor, Round, log10, IsNull, IsEqual, NVL, MinValue, MaxValue, Min, Max, Sum, Cum Output FunctionsThe following functions can be used to output information. Markbar, Output, Warning, SendEmail, SendSMS, PlaySound, Alert Position FunctionsThe following functions return information about positions held within an account/system. All the position function only return a value when there is a current position for this symbol, if there is no position they return false. All functions include the bar of entry in the calculation. Position, NoPosition, LongPosition, ShortPosition, NumOfPositions, PositionType, PositionValue, PositionQuantity, MaxPriceSinceEntry, MinPriceSinceEntry, MaxClosePriceSinceEntry, MinClosePriceSinceEntry, BarsSinceEntry, OpenProfit, EnterPrice, EnterDate, AccPosition, AccNoPosition, AccLongPosition, AccShortPosition, AccNumOfPositions, AccPositionType, Positions, AccPositions, Contracts, Units, Shares Price FunctionsThe following functions return columns or the price for the current bar Open, Close, High, Low, Volume, DateTime, OpenPrice, ClosePrice, HighPrice, LowPrice String ManipulationThe following functions can be used to manipulate strings index, length, substr Trading StatisticsThe following functions return information about the trading statistics of the account/ system. Calling these functions will returns the latest trading statistics and are suitable for use in complex money management or position sizing logic. TotalTrades, LargestWinningTrade, LargestLosingTrade, LosingTrades, WinningTrades, PerWinningTrades, PerLosingTrades, AvgBarsTrade, AvgBarsLosingTrade, AvgBarsWinningTrade, AvgTrade, AvgLosingTrade, AvgWinningTrade, AccTradehistory, Tradehistory |