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. AddTextColumn - add text exploration column (AFL 1.8)
  9. AddToComposite - add value to composite ticker (AFL 2.0)
  10. ADLine - advance/decline line (AFL 1.2)
  11. AdvIssues - advancing issues (AFL 1.2)
  12. AdvVolume - advancing issues volume (AFL 1.2)
  13. ADX - average directional movement index (AFL 1.3)
  14. AlertIf - trigger alerts (AFL 2.1)
  15. AlmostEqual - rounding error insensitive comparison (AFL 2.80)
  16. AMA - adaptive moving average (AFL 1.5)
  17. AMA2 - adaptive moving average (AFL 1.5)
  18. ApplyStop - apply built-in stop (AFL 1.7)
  19. Asc - get ASCII code of character (AFL 2.80)
  20. asin - arcsine function
  21. atan - arc tan
  22. atan2 - calculates arctangent of y/x (AFL 2.90)
  23. ATR - average true range (AFL 1.3)
  24. BarIndex - get zero-based bar number (AFL 2.3)
  25. BarsSince - bars since
  26. BBandBot - bottom bollinger band
  27. BBandTop - top bollinger band
  28. BeginValue - Value of the array at the begin of the range (AFL 2.3)
  29. CategoryAddSymbol - adds a symbol to a category (AFL 2.5)
  30. CategoryFind - search for category by name (AFL 3.0)
  31. CategoryGetName - get the name of a category (AFL 2.5)
  32. CategoryGetSymbols - retrieves comma-separated list of symbols belonging to given category (AFL 2.5)
  33. CategoryRemoveSymbol - remove a symbol from a category (AFL 2.5)
  34. CCI - commodity channel index
  35. ceil - ceil value
  36. Chaikin - chaikin oscillator
  37. ClipboardGet - retrieves current contents of Windows clipboard (AFL 2.60)
  38. ClipboardSet - copies the text to the Windows clipboard (AFL 2.6)
  39. ColorHSB - specify color using Hue-Saturation-Brightness (AFL 2.80)
  40. ColorRGB - specify color using Red-Green-Blue components (AFL 2.80)
  41. Correlation - correlation (AFL 1.4)
  42. cos - cosine
  43. cosh - hyperbolic cosine function (AFL 2.80)
  44. CreateObject - create COM object (AFL 1.8)
  45. CreateStaticObject - create static COM object (AFL 1.8)
  46. Cross - crossover check
  47. Cum - cumulative sum
  48. Date - date (AFL 1.1)
  49. DateNum - date number (AFL 1.4)
  50. DateTime - retrieves encoded date time (AFL 2.3)
  51. DateTimeConvert - date/time format conversion (AFL 2.90)
  52. DateTimeToStr - convert datetime to string (AFL 2.8)
  53. Day - day of month (AFL 1.4)
  54. DayOfWeek - day of week (AFL 1.4)
  55. DayOfYear - get ordinal number of day in a year (AFL 2.4)
  56. DaysSince1900 - get number of days since January 1st, 1900 (AFL 3.20)
  57. DecIssues - declining issues (AFL 1.2)
  58. DecVolume - declining issues volume (AFL 1.2)
  59. DEMA - double exponential moving average (AFL 2.0)
  60. EMA - exponential moving average
  61. EnableRotationalTrading - Turns on rotational-trading mode of the backtester (AFL 2.5)
  62. EnableScript - enable scripting engine
  63. EnableTextOutput - enables/disables text output in the Chart Commentary window (AFL 2.2)
  64. EncodeColor - encodes color for indicator title (AFL 2.2)
  65. EndValue - value of the array at the end of the selected range (AFL 2.3)
  66. Equity - calculate single-symbol equity line (AFL 2.0)
  67. EXP - exponential function
  68. EXREM - remove excessive signals (AFL 1.5)
  69. EXREMSPAN - remove excessive signals spanning given number of bars (AFL 2.0)
  70. fclose - close a file (AFL 2.5)
  71. fdelete - deletes a file (AFL 2.70)
  72. feof - test for end-of-file (AFL 2.5)
  73. FFT - performs Fast Fourier Transform (AFL 2.90)
  74. fgets - get a string from a file (AFL 2.5)
  75. fgetstatus - retrieves file status/properties (AFL 2.90)
  76. FLIP - (AFL 1.5)
  77. FLOOR - floor value
  78. fmkdir - creates (makes) a directory (AFL 2.70)
  79. fopen - open a file (AFL 2.5)
  80. FOREIGN - access foreign security data (AFL 1.5)
  81. fputs - write a string to a file (AFL 2.5)
  82. FRAC - fractional part
  83. frmdir - removes a directory (AFL 2.70)
  84. FullName - full name of the symbol (AFL 1.1)
  85. GAPDOWN - gap down
  86. GAPUP - gap up
  87. GetBacktesterObject - get the access to backtester object (AFL 2.60)
  88. GETBASEINDEX - retrieves symbol of relative strength base index (AFL 2.1)
  89. GetCategorySymbols - retrieves comma-separated list of symbols belonging to given category (AFL 2.4)
  90. GETCHARTID - get current chart ID (AFL 2.3)
  91. GetCursorMouseButtons - get current state of mouse buttons (AFL 2.80)
  92. GetCursorXPosition - get current X position of mouse pointer (AFL 2.80)
  93. GetCursorYPosition - get current Y position of mouse pointer (AFL 2.80)
  94. GetDatabaseName - retrieves folder name of current database (AFL 2.3)
  95. GETEXTRADATA - get extra data from external data source (AFL 1.9)
  96. GetFnData - get fundamental data (AFL 2.90)
  97. GetOption - gets the value of option in automatic analysis settings (AFL 2.60)
  98. GetPerformanceCounter - retrieves the current value of the high-resolution performance counter (AFL 2.90)
  99. GetPlaybackDateTime - get bar replay position date/time (AFL 3.0)
  100. GetPriceStyle - get current price chart style (AFL 2.70)
  101. GetRTData - retrieves the real-time data fields (AFL 2.60)
  102. GetRTDataForeign - retrieves the real-time data fields (for specified symbol) (AFL 2.80)
  103. GETSCRIPTOBJECT - get access to script COM object (AFL 1.8)
  104. GetTradingInterface - retrieves OLE automation object to automatic trading interfac (AFL 2.70)
  105. GfxArc - draw an arc (AFL 3.0)
  106. GfxChord - draw a chord (AFL 3.0)
  107. GfxCircle - draw a circle (AFL 3.0)
  108. GfxDrawText - draw a text (clipped to rectangle) (AFL 3.0)
  109. GfxEllipse - draw an ellipse (AFL 3.0)
  110. GfxGradientRect - draw a rectangle with gradient fill (AFL 3.0)
  111. GfxLineTo - draw a line to specified point (AFL 3.0)
  112. GfxMoveTo - move graphic cursor to new position (AFL 3.0)
  113. GfxPie - draw a pie (AFL 3.0)
  114. GfxPolygon - draw a polygon (AFL 3.0)
  115. GfxPolyline - draw a polyline (AFL 3.0)
  116. GfxRectangle - draw a rectangle (AFL 3.0)
  117. GfxRoundRect - draw a rectangle with rounded corners (AFL 3.0)
  118. GfxSelectFont - create / select graphic font (AFL 3.0)
  119. GfxSelectPen - create / select graphic pen (AFL 3.0)
  120. GfxSelectSolidBrush - create / select graphic brush (AFL 3.0)
  121. GfxSetBkColor - set graphic background color (AFL 3.0)
  122. GfxSetBkMode - set graphic background mode (AFL 3.0)
  123. GfxSetOverlayMode - set low-level graphic overlay mode (AFL 3.0)
  124. GfxSetPixel - set pixel at specified position to specified color (AFL 3.0)
  125. GfxSetTextAlign - set text alignment (AFL 3.0)
  126. GfxSetTextColor - set graphic text color (AFL 3.0)
  127. GfxTextOut - writes text at the specified location (AFL 3.0)
  128. GROUPID - get group ID/name (AFL 1.8)
  129. HHV - highest high value
  130. HHVBARS - bars since highest high
  131. HIGHEST - highest value
  132. HIGHESTBARS - bars since highest value
  133. HIGHESTSINCE - highest value since condition met (AFL 1.4)
  134. HIGHESTSINCEBARS - bars since highest value since condition met (AFL 1.4)
  135. HOLD - hold the alert signal
  136. HOUR - get current bar's hour (AFL 2.0)
  137. IIF - immediate IF function
  138. INDUSTRYID - get industry ID / name (AFL 1.8)
  139. INSIDE - inside day
  140. INT - integer part
  141. INTERVAL - get bar interval (in seconds) (AFL 2.1)
  142. InWatchList - watch list membership test (by ordinal number)
  143. InWatchListName - watch list membership test (by name) (AFL 3.0)
  144. IsContinuous - checks 'continuous quotations' flag state (AFL 2.60)
  145. ISEMPTY - empty value check (AFL 1.5)
  146. IsFavorite - check if current symbol belongs to favorites (AFL 2.5)
  147. ISFINITE - check if value is not infinite (AFL 2.3)
  148. IsIndex - check if current symbol is an index (AFL 2.5)
  149. ISNAN - checks for NaN (not a number) (AFL 2.3)
  150. ISNULL - check for Null (empty) value (AFL 2.3)
  151. ISTRUE - true value (non-empty and non-zero) check (AFL 1.5)
  152. LASTVALUE - last value of the array
  153. LineArray - generate trend-line array (AFL 2.5)
  154. LINEARREG - linear regression end-point (AFL 2.2)
  155. LINREGINTERCEPT - (AFL 2.2)
  156. LINREGSLOPE - linear regression slope (AFL 1.4)
  157. LLV - lowest low value
  158. LLVBARS - bars since lowest low
  159. LOG - natural logarithm
  160. LOG10 - decimal logarithm
  161. LOWEST - lowest value
  162. LOWESTBARS - bars since lowest
  163. LOWESTSINCE - lowest value since condition met (AFL 1.4)
  164. LOWESTSINCEBARS - barssince lowest value since condition met (AFL 1.4)
  165. MA - simple moving average
  166. MACD - moving average convergence/divergence
  167. MARKETID - market ID / name (AFL 1.8)
  168. MAX - maximum value of two numbers / arrays
  169. MDI - minus directional movement indicator (-DI) (AFL 1.3)
  170. Median - calculate median (middle element) (AFL 2.5)
  171. MFI - money flow index
  172. MIN - minimum value of two numbers / arrays
  173. MINUTE - get current bar's minute (AFL 2.0)
  174. MONTH - month (AFL 1.4)
  175. mtRandom - Mersene Twister random number generator (AFL 3.0)
  176. mtRandomA - Mersene Twister random number generator (array version) (AFL 3.0)
  177. NAME - ticker symbol (AFL 1.1)
  178. NoteGet - retrieves the text of the note (AFL 2.6)
  179. NoteSet - sets text of the note (AFL 2.6)
  180. NOW - gets current system date/time (AFL 2.3)
  181. NumToStr - convert number to string (AFL 2.5)
  182. NVI - negative volume index
  183. NZ - Null (Null/Nan/Infinity) to zero (AFL 2.3)
  184. OBV - on balance volume
  185. OPTIMIZE - define optimization variable (AFL 1.7)
  186. OSCP - price oscillator
  187. OSCV - volume oscillator
  188. OUTSIDE - outside bar
  189. PARAM - add user user-definable numeric parameter (AFL 2.3)
  190. ParamColor - add user user-definable color parameter (AFL 2.3)
  191. ParamDate - add user user-definable date parameter (AFL 2.60)
  192. ParamField - creates price field parameter (AFL 2.70)
  193. ParamList - creates the parameter that consist of the list of choices (AFL 2.70)
  194. PARAMSTR - add user user-definable string parameter (AFL 2.3)
  195. ParamStyle - select styles applied to the plot (AFL 2.70)
  196. ParamTime - add user user-definable time parameter (AFL 2.60)
  197. ParamToggle - create Yes/No parameter (AFL 2.70)
  198. ParamTrigger - creates a trigger (button) in the parameter dialog (AFL 2.70)
  199. PDI - plus directional movement indicator (AFL 1.3)
  200. PEAK - peak (AFL 1.1)
  201. PEAKBARS - bars since peak (AFL 1.1)
  202. Percentile - calculate percentile (AFL 2.5)
  203. PLOT - plot indicator graph (AFL 1.8)
  204. PLOTFOREIGN - plot foreign security data (AFL 2.2)
  205. PLOTGRID - Plot horizontal grid line (AFL 2.3)
  206. PLOTOHLC - plot custom OHLC chart (AFL 2.2)
  207. PLOTSHAPES - plots arrows and other shapes (AFL 2.3)
  208. PlotText - write text on the chart (AFL 2.80)
  209. PLOTVAPOVERLAY - plot Volume-At-Price overlay chart (AFL 2.4)
  210. PopupWindow - display pop-up window (AFL 3.0)
  211. PREC - adjust number of decimal points of floating point number
  212. PREFS - retrieve preferences settings (AFL 1.4)
  213. printf - Print formatted output to the output window. (AFL 2.5)
  214. PVI - positive volume index
  215. RANDOM - random number (AFL 1.9)
  216. REF - reference past/future values of the array
  217. RELSTRENGTH - comparative relative strength (AFL 1.3)
  218. RequestTimedRefresh - forces periodical refresh of indicator pane (AFL 2.90)
  219. RestorePriceArrays - restore price arrays to original symbol (AFL 2.5)
  220. RMI - Relative Momentum Index (AFL 2.1)
  221. ROC - percentage rate of change
  222. ROUND - round number to nearest integer
  223. RSI - relative strength index
  224. RWI - random walk index
  225. RWIHI - random walk index of highs
  226. RWILO - random walk index of lows
  227. SAR - parabolic stop-and-reverse (AFL 1.3)
  228. Say - speaks provided text (AFL 2.90)
  229. SECOND - get current bar's second (AFL 2.0)
  230. SECTORID - get sector ID / name (AFL 1.8)
  231. SELECTEDVALUE - retrieves value of the array at currently selected date/time point (AFL 2.1)
  232. SetBacktestMode - Sets working mode of the backtester (AFL 3.0)
  233. SetBarFillColor - set bar/candlestick/cloud chart fill color (AFL 3.1)
  234. SETBARSREQUIRED - set number of previous and future bars needed for script/DLL to properly execute (AFL 2.1)
  235. SetChartBkColor - set background color of a chart (AFL 2.80)
  236. SetChartBkGradientFill - enables background gradient color fill in indicators (AFL 2.90)
  237. SetChartOptions - set/clear/overwrite defaults for chart pane options (AFL 2.70)
  238. SetCustomBacktestProc - define custom backtest procedure formula file (AFL 2.70)
  239. SetForeign - replace current price arrays with those of foreign security (AFL 2.5)
  240. SetFormulaName - set the name of the formula (AFL 2.5)
  241. SetOption - sets options in automatic analysis settings (AFL 2.3)
  242. SetPositionSize - set trade size (AFL 2.70)
  243. SetSortColumns - sets the columns which will be used for sorting in AA window (AFL 2.90)
  244. SETTRADEDELAYS - allows to control trade delays applied by the backtester (AFL 2.1)
  245. sign - returns the sign of the number/array (AFL 2.50)
  246. SIGNAL - macd signal line
  247. SIN - sine function
  248. sinh - hyperbolic sine function (AFL 2.80)
  249. SQRT - square root
  250. StaticVarGet - gets the value of static variable (AFL 2.60)
  251. StaticVarGetText - gets the value of static variable as string (AFL 2.60)
  252. StaticVarRemove - remove static variable (AFL 2.80)
  253. StaticVarSet - sets the value of static variable (AFL 2.60)
  254. StaticVarSetText - Sets the value of static string variable. (AFL 2.60)
  255. STATUS - get run-time AFL status information (AFL 1.65)
  256. STDERR - standard error (AFL 1.4)
  257. STDEV - standard deviation (AFL 1.4)
  258. STOCHD - stochastic slow %D
  259. STOCHK - stochastic slow %K
  260. StrExtract - extracts given item (substring) from comma-separated string (AFL 2.4)
  261. StrFind - find substring in a string (AFL 2.5)
  262. StrFormat - Write formatted output to the string (AFL 2.5)
  263. StrLeft - extracts the leftmost part (AFL 2.0)
  264. StrLen - string length (AFL 1.5)
  265. StrMid - extracts part of the string (AFL 2.0)
  266. StrReplace - string replace (AFL 2.90)
  267. StrRight - extracts the rightmost part of the string (AFL 2.0)
  268. StrToDateTime - convert string to datetime (AFL 2.80)
  269. StrToLower - convert to lowercase (AFL 2.80)
  270. StrToNum - convert string to number (AFL 2.5)
  271. StrToUpper - convert to uppercase (AFL 2.80)
  272. STUDY - reference hand-drawn study (AFL 1.5)
  273. SUM - sum data over specified number of bars
  274. tan - tangent function (AFL 1.0)
  275. tanh - hyperbolic tangent function (AFL 2.80)
  276. TEMA - triple exponential moving average (AFL 2.0)
  277. TimeFrameCompress - compress single array to given time frame (AFL 2.5)
  278. TimeFrameExpand - expand time frame compressed array (AFL 2.5)
  279. TimeFrameGetPrice - retrieve O, H, L, C, V values from other time frame (AFL 2.5)
  280. TimeFrameMode - switch time frame compression mode (AFL 2.80)
  281. TimeFrameRestore - restores price arrays to original time frame (AFL 2.5)
  282. TimeFrameSet - switch price arrays to a different time frame (AFL 2.5)
  283. TIMENUM - get current bar time (AFL 2.0)
  284. TRIN - traders (Arms) index (AFL 1.2)
  285. TRIX - triple exponential smoothed price
  286. TROUGH - trough (AFL 1.1)
  287. TROUGHBARS - bars since trough (AFL 1.1)
  288. TSF - time series forecast (AFL 2.2)
  289. ULTIMATE - ultimate oscillator
  290. UNCISSUES - unchanged issues (AFL 1.2)
  291. UNCVOLUME - unchaged issues volume (AFL 1.2)
  292. VALUEWHEN - get value of the array when condition met (AFL 1.1)
  293. VarGet - gets the value of dynamic variable (AFL 2.60)
  294. VarGetText - gets the text value of dynamic variable (AFL 2.80)
  295. VarSet - sets the value of dynamic variable (AFL 2.60)
  296. VarSetText - sets dynamic variable of string type (AFL 2.80)
  297. VERSION - get version info (AFL 1.9)
  298. WILDERS - Wilder's smoothing (AFL 1.4)
  299. WMA - weighted moving average (AFL 2.0)
  300. WRITEIF - commentary conditional text output
  301. WriteVal - write number or value of the array
  302. YEAR - year (AFL 1.4)
  303. ZIG - zig-zag indicator (AFL 1.1)
  304. _DEFAULT_NAME - retrive default name of the plot (AFL 2.70)
  305. _N - no text output (AFL 2.1)
  306. _PARAM_VALUES - retrieve param values string (AFL 2.70)
  307. _SECTION_BEGIN - section begin marker (AFL 2.70)
  308. _SECTION_END - section end marker (AFL 2.70)
  309. _SECTION_NAME - retrieve current section name (AFL 2.70)
  310. _TRACE - print text to system debug viewer (AFL 2.4)

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