Welcome Features News Download Registration Support FAQ Wish list Links
Advanced stock charting and analysis program

AFL Function Reference - Alphabetical list of functions

  1. #include - preprocessor include command (AFL 2.2)
  2. #include_once - preprocessor include (once) command (AFL 2.70)
  3. #pragma - sets AFL pre-processor option (AFL 2.4)
  4. abs - absolute value
  5. AccDist - accumulation/distribution
  6. acos - arccosine function
  7. AddColumn - add numeric exploration column (AFL 1.8)
  8. AddRankColumn - add ranking column(s) according to current sort set by SetSortColumns (AFL 5.70)
  9. AddSummaryRows - add summary row(s) to the exploration output (AFL 3.2)
  10. AddTextColumn - add text exploration column (AFL 1.8)
  11. AddToComposite - add value to composite ticker (AFL 2.0)
  12. ADLine - advance/decline line (AFL 1.2)
  13. AdvIssues - advancing issues (AFL 1.2)
  14. AdvVolume - advancing issues volume (AFL 1.2)
  15. ADX - average directional movement index (AFL 1.3)
  16. AlertIf - trigger alerts (AFL 2.1)
  17. AlmostEqual - rounding error insensitive comparison (AFL 2.80)
  18. AMA - adaptive moving average (AFL 1.5)
  19. AMA2 - adaptive moving average (AFL 1.5)
  20. ApplyStop - apply built-in stop (AFL 1.7)
  21. Asc - get ASCII code of character (AFL 2.80)
  22. asin - arcsine function
  23. atan - arc tan
  24. atan2 - calculates arctangent of y/x (AFL 2.90)
  25. ATR - average true range (AFL 1.3)
  26. BarIndex - get zero-based bar number (AFL 2.3)
  27. BarsSince - bars since
  28. BBandBot - bottom bollinger band
  29. BBandTop - top bollinger band
  30. BeginValue - Value of the array at the begin of the range (AFL 2.3)
  31. CategoryAddSymbol - adds a symbol to a category (AFL 2.5)
  32. CategoryCreate - add new category (such as watch list) (AFL 3.70)
  33. CategoryFind - search for category by name (AFL 3.0)
  34. CategoryGetName - get the name of a category (AFL 2.5)
  35. CategoryGetSymbols - retrieves comma-separated list of symbols belonging to given category (AFL 2.5)
  36. CategoryRemoveSymbol - remove a symbol from a category (AFL 2.5)
  37. CategorySetName - set the name of category (group, market, watch list, industry) (AFL 3.20)
  38. CCI - commodity channel index
  39. ceil - ceil value
  40. Chaikin - chaikin oscillator
  41. ClipboardGet - retrieves current contents of Windows clipboard (AFL 2.60)
  42. ClipboardSet - copies the text to the Windows clipboard (AFL 2.6)
  43. ColorBlend - blends (mixes) two colors (AFL 3.30)
  44. ColorHSB - specify color using Hue-Saturation-Brightness (AFL 2.80)
  45. ColorRGB - specify color using Red-Green-Blue components (AFL 2.80)
  46. Correlation - correlation (AFL 1.4)
  47. cos - cosine
  48. cosh - hyperbolic cosine function (AFL 2.80)
  49. CreateObject - create COM object (AFL 1.8)
  50. CreateStaticObject - create static COM object (AFL 1.8)
  51. Cross - crossover check
  52. Cum - cumulative sum
  53. Date - date (AFL 1.1)
  54. DateNum - date number (AFL 1.4)
  55. DateTime - retrieves encoded date time (AFL 2.3)
  56. DateTimeAdd - adds specified number of seconds/minutes/hours/days to datetime (AFL 3.40)
  57. DateTimeConvert - date/time format conversion (AFL 2.90)
  58. DateTimeDiff - get difference in seconds between two datetime values (AFL 3.30)
  59. DateTimeToStr - convert datetime to string (AFL 2.8)
  60. Day - day of month (AFL 1.4)
  61. DayOfWeek - day of week (AFL 1.4)
  62. DayOfYear - get ordinal number of day in a year (AFL 2.4)
  63. DaysSince1900 - get number of days since January 1st, 1900 (AFL 3.20)
  64. DecIssues - declining issues (AFL 1.2)
  65. DecVolume - declining issues volume (AFL 1.2)
  66. DEMA - double exponential moving average (AFL 2.0)
  67. EMA - exponential moving average
  68. EnableRotationalTrading - Turns on rotational-trading mode of the backtester (AFL 2.5)
  69. EnableScript - enable scripting engine
  70. EnableTextOutput - enables/disables text output in the Chart Commentary window (AFL 2.2)
  71. EncodeColor - encodes color for indicator title (AFL 2.2)
  72. EndValue - value of the array at the end of the selected range (AFL 2.3)
  73. Equity - calculate single-symbol equity line (AFL 2.0)
  74. Error - displays user-defined error message and stops the execution (AFL 3.7)
  75. EXP - exponential function
  76. ExRem - remove excessive signals (AFL 1.5)
  77. ExRemSpan - remove excessive signals spanning given number of bars (AFL 2.0)
  78. fclose - close a file (AFL 2.5)
  79. fdelete - deletes a file (AFL 2.70)
  80. fdir - list directory content (AFL 3.70)
  81. feof - test for end-of-file (AFL 2.5)
  82. FFT - performs Fast Fourier Transform (AFL 2.90)
  83. fgets - get a string from a file (AFL 2.5)
  84. fgetstatus - retrieves file status/properties (AFL 2.90)
  85. FIR - Finite Impulse Response filter (AFL 3.40)
  86. FirstVisibleValue - get first visible value of array (AFL 3.40)
  87. Flip - (AFL 1.5)
  88. floor - floor value
  89. fmkdir - creates (makes) a directory (AFL 2.70)
  90. fopen - open a file (AFL 2.5)
  91. Foreign - access foreign security data (AFL 1.5)
  92. fputs - write a string to a file (AFL 2.5)
  93. frac - fractional part
  94. frmdir - removes a directory (AFL 2.70)
  95. FullName - full name of the symbol (AFL 1.1)
  96. GapDown - gap down
  97. GapUp - gap up
  98. GetAsyncKeyState - query the current state of keyboard keys (AFL 3.60)
  99. GetBacktesterObject - get the access to backtester object (AFL 2.60)
  100. GetBaseIndex - retrieves symbol of relative strength base index (AFL 2.1)
  101. GetCategorySymbols - retrieves comma-separated list of symbols belonging to given category (AFL 2.4)
  102. GetChartBkColor - get the RGB color value of chart background (AFL 3.20)
  103. GetChartID - get current chart ID (AFL 2.3)
  104. GetCursorMouseButtons - get current state of mouse buttons (AFL 2.80)
  105. GetCursorXPosition - get current X position of mouse pointer (AFL 2.80)
  106. GetCursorYPosition - get current Y position of mouse pointer (AFL 2.80)
  107. GetDatabaseName - retrieves folder name of current database (AFL 2.3)
  108. GetExtraData - get extra data from external data source (AFL 1.9)
  109. GetFnData - get fundamental data (AFL 2.90)
  110. GetOption - gets the value of option in automatic analysis settings (AFL 2.60)
  111. GetPerformanceCounter - retrieves the current value of the high-resolution performance counter (AFL 2.90)
  112. GetPlaybackDateTime - get bar replay position date/time (AFL 3.0)
  113. GetPriceStyle - get current price chart style (AFL 2.70)
  114. GetRTData - retrieves the real-time data fields (AFL 2.60)
  115. GetRTDataForeign - retrieves the real-time data fields (for specified symbol) (AFL 2.80)
  116. GetScriptObject - get access to script COM object (AFL 1.8)
  117. GetTradingInterface - retrieves OLE automation object to automatic trading interfac (AFL 2.70)
  118. GfxArc - draw an arc (AFL 3.0)
  119. GfxChord - draw a chord (AFL 3.0)
  120. GfxCircle - draw a circle (AFL 3.0)
  121. GfxDrawText - draw a text (clipped to rectangle) (AFL 3.0)
  122. GfxEllipse - draw an ellipse (AFL 3.0)
  123. GfxGradientRect - draw a rectangle with gradient fill (AFL 3.0)
  124. GfxLineTo - draw a line to specified point (AFL 3.0)
  125. GfxMoveTo - move graphic cursor to new position (AFL 3.0)
  126. GfxPie - draw a pie (AFL 3.0)
  127. GfxPolygon - draw a polygon (AFL 3.0)
  128. GfxPolyline - draw a polyline (AFL 3.0)
  129. GfxRectangle - draw a rectangle (AFL 3.0)
  130. GfxRoundRect - draw a rectangle with rounded corners (AFL 3.0)
  131. GfxSelectFont - create / select graphic font (AFL 3.0)
  132. GfxSelectPen - create / select graphic pen (AFL 3.0)
  133. GfxSelectSolidBrush - create / select graphic brush (AFL 3.0)
  134. GfxSetBkColor - set graphic background color (AFL 3.0)
  135. GfxSetBkMode - set graphic background mode (AFL 3.0)
  136. GfxSetOverlayMode - set low-level graphic overlay mode (AFL 3.0)
  137. GfxSetPixel - set pixel at specified position to specified color (AFL 3.0)
  138. GfxSetTextAlign - set text alignment (AFL 3.0)
  139. GfxSetTextColor - set graphic text color (AFL 3.0)
  140. GfxTextOut - writes text at the specified location (AFL 3.0)
  141. GicsID - get GICS category information (AFL 3.40)
  142. GroupID - get group ID/name (AFL 1.8)
  143. HHV - highest high value
  144. HHVBars - bars since highest high
  145. Highest - highest value
  146. HighestBars - bars since highest value
  147. HighestSince - highest value since condition met (AFL 1.4)
  148. HighestSinceBars - bars since highest value since condition met (AFL 1.4)
  149. HighestVisibleValue - get the highest value within visible chart area (AFL 3.30)
  150. HMA - Hull Moving Average (AFL 3.40)
  151. Hold - hold the alert signal
  152. Hour - get current bar's hour (AFL 2.0)
  153. IcbID - get ICB category information (AFL 3.60)
  154. IIf - immediate IF function
  155. IndustryID - get industry ID / name (AFL 1.8)
  156. InGICS - test GICS membership (AFL 3.40)
  157. InICB - test ICB membership (AFL 3.60)
  158. Inside - inside day
  159. Int - integer part
  160. Interval - get bar interval (in seconds) (AFL 2.1)
  161. InWatchList - watch list membership test (by ordinal number)
  162. InWatchListName - watch list membership test (by name) (AFL 3.0)
  163. IsContinuous - checks 'continuous quotations' flag state (AFL 2.60)
  164. IsEmpty - empty value check (AFL 1.5)
  165. IsFavorite - check if current symbol belongs to favorites (AFL 2.5)
  166. IsFinite - check if value is not infinite (AFL 2.3)
  167. IsIndex - check if current symbol is an index (AFL 2.5)
  168. IsNan - checks for NaN (not a number) (AFL 2.3)
  169. IsNull - check for Null (empty) value (AFL 2.3)
  170. IsTrue - true value (non-empty and non-zero) check (AFL 1.5)
  171. LastValue - last value of the array
  172. LastVisibleValue - get last visible value of array (AFL 3.40)
  173. LineArray - generate trend-line array (AFL 2.5)
  174. LinearReg - linear regression end-point (AFL 2.2)
  175. LinRegIntercept - (AFL 2.2)
  176. LinRegSlope - linear regression slope (AFL 1.4)
  177. LLV - lowest low value
  178. LLVBars - bars since lowest low
  179. log - natural logarithm
  180. log10 - decimal logarithm
  181. Lookup - search the array for bar with specified date/time (AFL 3.40)
  182. Lowest - lowest value
  183. LowestBars - bars since lowest
  184. LowestSince - lowest value since condition met (AFL 1.4)
  185. LowestSinceBars - barssince lowest value since condition met (AFL 1.4)
  186. LowestVisibleValue - get the lowest value within visible chart area (AFL 3.30)
  187. MA - simple moving average
  188. MACD - moving average convergence/divergence
  189. MarketID - market ID / name (AFL 1.8)
  190. Max - maximum value of two numbers / arrays
  191. MDI - minus directional movement indicator (-DI) (AFL 1.3)
  192. Median - calculate median (middle element) (AFL 2.5)
  193. MFI - money flow index
  194. MicroSec - get bar's microsecond part of the timestamp
  195. MilliSec - get bar's millisecond part of the timestamp
  196. Min - minimum value of two numbers / arrays
  197. Minute - get current bar's minute (AFL 2.0)
  198. Month - month (AFL 1.4)
  199. mtRandom - Mersene Twister random number generator (AFL 3.0)
  200. mtRandomA - Mersene Twister random number generator (array version) (AFL 3.0)
  201. Name - ticker symbol (AFL 1.1)
  202. NoteGet - retrieves the text of the note (AFL 2.6)
  203. NoteSet - sets text of the note (AFL 2.6)
  204. Now - gets current system date/time (AFL 2.3)
  205. NumToStr - convert number to string (AFL 2.5)
  206. NVI - negative volume index
  207. Nz - Null (Null/Nan/Infinity) to zero (AFL 2.3)
  208. OBV - on balance volume
  209. Optimize - define optimization variable (AFL 1.7)
  210. OptimizerSetEngine - select external optimization engine (AFL 3.20)
  211. OptimizerSetOption - set the value of external optimizer engine parameter (AFL 3.20)
  212. OscP - price oscillator
  213. OscV - volume oscillator
  214. Outside - outside bar
  215. Param - add user user-definable numeric parameter (AFL 2.3)
  216. ParamColor - add user user-definable color parameter (AFL 2.3)
  217. ParamDate - add user user-definable date parameter (AFL 2.60)
  218. ParamField - creates price field parameter (AFL 2.70)
  219. ParamList - creates the parameter that consist of the list of choices (AFL 2.70)
  220. ParamStr - add user user-definable string parameter (AFL 2.3)
  221. ParamStyle - select styles applied to the plot (AFL 2.70)
  222. ParamTime - add user user-definable time parameter (AFL 2.60)
  223. ParamToggle - create Yes/No parameter (AFL 2.70)
  224. ParamTrigger - creates a trigger (button) in the parameter dialog (AFL 2.70)
  225. PDI - plus directional movement indicator (AFL 1.3)
  226. Peak - peak (AFL 1.1)
  227. PeakBars - bars since peak (AFL 1.1)
  228. Percentile - calculate percentile (AFL 2.5)
  229. PercentRank - calculate percent rank (AFL 3.40)
  230. PlaySound - play back specified .WAV file (AFL 3.40)
  231. Plot - plot indicator graph (AFL 1.8)
  232. PlotForeign - plot foreign security data (AFL 2.2)
  233. PlotGrid - Plot horizontal grid line (AFL 2.3)
  234. PlotOHLC - plot custom OHLC chart (AFL 2.2)
  235. PlotShapes - plots arrows and other shapes (AFL 2.3)
  236. PlotText - write text on the chart (AFL 2.80)
  237. PlotVAPOverlay - plot Volume-At-Price overlay chart (AFL 2.4)
  238. PlotVAPOverlayA - plot multiple-segment Volume-At-Price chart (AFL 3.20)
  239. PopupWindow - display pop-up window (AFL 3.0)
  240. Prec - adjust number of decimal points of floating point number
  241. Prefs - retrieve preferences settings (AFL 1.4)
  242. printf - Print formatted output to the output window. (AFL 2.5)
  243. PVI - positive volume index
  244. Random - random number (AFL 1.9)
  245. Ref - reference past/future values of the array
  246. RelStrength - comparative relative strength (AFL 1.3)
  247. RequestTimedRefresh - forces periodical refresh of indicator pane (AFL 2.90)
  248. RestorePriceArrays - restore price arrays to original symbol (AFL 2.5)
  249. RMI - Relative Momentum Index (AFL 2.1)
  250. ROC - percentage rate of change
  251. Round - round number to nearest integer
  252. RSI - relative strength index
  253. RWI - random walk index
  254. RWIHi - random walk index of highs
  255. RWILo - random walk index of lows
  256. SAR - parabolic stop-and-reverse (AFL 1.3)
  257. Say - speaks provided text (AFL 2.90)
  258. Second - get current bar's second (AFL 2.0)
  259. SectorID - get sector ID / name (AFL 1.8)
  260. SelectedValue - retrieves value of the array at currently selected date/time point (AFL 2.1)
  261. SetBacktestMode - Sets working mode of the backtester (AFL 3.0)
  262. SetBarFillColor - set bar/candlestick/cloud chart fill color (AFL 3.1)
  263. SetBarsRequired - set number of previous and future bars needed for script/DLL to properly execute (AFL 2.1)
  264. SetChartBkColor - set background color of a chart (AFL 2.80)
  265. SetChartBkGradientFill - enables background gradient color fill in indicators (AFL 2.90)
  266. SetChartOptions - set/clear/overwrite defaults for chart pane options (AFL 2.70)
  267. SetCustomBacktestProc - define custom backtest procedure formula file (AFL 2.70)
  268. SetForeign - replace current price arrays with those of foreign security (AFL 2.5)
  269. SetFormulaName - set the name of the formula (AFL 2.5)
  270. SetGradientFill - set the colors of a gradient fill plot (AFL 3.60)
  271. SetOption - sets options in automatic analysis settings (AFL 2.3)
  272. SetPositionSize - set trade size (AFL 2.70)
  273. SetSortColumns - sets the columns which will be used for sorting in AA window (AFL 2.90)
  274. SetTradeDelays - allows to control trade delays applied by the backtester (AFL 2.1)
  275. ShellExecute - execute a file (AFL 3.40)
  276. sign - returns the sign of the number/array (AFL 2.50)
  277. Signal - macd signal line
  278. sin - sine function
  279. sinh - hyperbolic sine function (AFL 2.80)
  280. sqrt - square root
  281. StaticVarCompareExchange - atomic interlocked static variable compare-exchange operation (AFL 3.50)
  282. StaticVarCount - get the total number of static variables in memory (AFL 3.30)
  283. StaticVarGenerateRanks - generate ranking of multiple symbols and store it to static variables (AFL 3.70)
  284. StaticVarGet - gets the value of static variable (AFL 2.60)
  285. StaticVarGetRankedSymbols - retrieve a list of ranked symbols from static variables (AFL 3.70)
  286. StaticVarGetText - gets the value of static variable as string (AFL 2.60)
  287. StaticVarInfo - get the information about static variable(s) (AFL 3.60)
  288. StaticVarRemove - remove static variable (AFL 2.80)
  289. StaticVarSet - sets the value of static variable (AFL 2.60)
  290. StaticVarSetText - Sets the value of static string variable. (AFL 2.60)
  291. Status - get run-time AFL status information (AFL 1.65)
  292. StdErr - standard error (AFL 1.4)
  293. StDev - standard deviation (AFL 1.4)
  294. StochD - stochastic slow %D
  295. StochK - stochastic slow %K
  296. StrCount - count the occurrences of substring within a string (AFL 3.20)
  297. StrExtract - extracts given item (substring) from comma-separated string (AFL 2.4)
  298. StrFind - find substring in a string (AFL 2.5)
  299. StrFormat - Write formatted output to the string (AFL 2.5)
  300. StrLeft - extracts the leftmost part (AFL 2.0)
  301. StrLen - string length (AFL 1.5)
  302. StrMid - extracts part of the string (AFL 2.0)
  303. StrReplace - string replace (AFL 2.90)
  304. StrRight - extracts the rightmost part of the string (AFL 2.0)
  305. StrToDateTime - convert string to datetime (AFL 2.80)
  306. StrToLower - convert to lowercase (AFL 2.80)
  307. StrToNum - convert string to number (AFL 2.5)
  308. StrToUpper - convert to uppercase (AFL 2.80)
  309. Study - reference hand-drawn study (AFL 1.5)
  310. Sum - sum data over specified number of bars
  311. tan - tangent function (AFL 1.0)
  312. tanh - hyperbolic tangent function (AFL 2.80)
  313. TEMA - triple exponential moving average (AFL 2.0)
  314. ThreadSleep - suspend thread for specified number of milliseconds (AFL 3.50)
  315. TimeFrameCompress - compress single array to given time frame (AFL 2.5)
  316. TimeFrameExpand - expand time frame compressed array (AFL 2.5)
  317. TimeFrameGetPrice - retrieve O, H, L, C, V values from other time frame (AFL 2.5)
  318. TimeFrameMode - switch time frame compression mode (AFL 2.80)
  319. TimeFrameRestore - restores price arrays to original time frame (AFL 2.5)
  320. TimeFrameSet - switch price arrays to a different time frame (AFL 2.5)
  321. TimeNum - get current bar time (AFL 2.0)
  322. Trin - traders (Arms) index (AFL 1.2)
  323. TRIX - triple exponential smoothed price
  324. Trough - trough (AFL 1.1)
  325. TroughBars - bars since trough (AFL 1.1)
  326. TSF - time series forecast (AFL 2.2)
  327. Ultimate - ultimate oscillator
  328. UncIssues - unchanged issues (AFL 1.2)
  329. UncVolume - unchaged issues volume (AFL 1.2)
  330. ValueWhen - get value of the array when condition met (AFL 1.1)
  331. VarGet - gets the value of dynamic variable (AFL 2.60)
  332. VarGetText - gets the text value of dynamic variable (AFL 2.80)
  333. VarSet - sets the value of dynamic variable (AFL 2.60)
  334. VarSetText - sets dynamic variable of string type (AFL 2.80)
  335. Version - get version info (AFL 1.9)
  336. Wilders - Wilder's smoothing (AFL 1.4)
  337. WMA - weighted moving average (AFL 2.0)
  338. WriteIf - commentary conditional text output
  339. WriteVal - converts number to string
  340. XYChartAddPoint - add point to exploration scatter (XY) chart (AFL 3.60)
  341. XYChartSetAxis - set the names of X and Y axes in exploration scatter charts (AFL 3.60)
  342. Year - year (AFL 1.4)
  343. ZIG - zig-zag indicator (AFL 1.1)
  344. _DEFAULT_NAME - retrive default name of the plot (AFL 2.70)
  345. _DT - convert string to datetime (AFL 3.40)
  346. _N - no text output (AFL 2.1)
  347. _PARAM_VALUES - retrieve param values string (AFL 2.70)
  348. _SECTION_BEGIN - section begin marker (AFL 2.70)
  349. _SECTION_END - section end marker (AFL 2.70)
  350. _SECTION_NAME - retrieve current section name (AFL 2.70)
  351. _TRACE - print text to system debug viewer (AFL 2.4)

About | Privacy | Terms of Use | Contact information
Copyright © 2003 AMIBROKER.COM