AFL Function Reference - Alphabetical list of functions

  1. #include ( Miscellaneous functions) - preprocessor include command (AFL 2.2)
  2. #include_once ( Miscellaneous functions) - preprocessor include (once) command (AFL 2.70)
  3. #pragma ( Miscellaneous functions) - sets AFL pre-processor option (AFL 2.4)
  4. abs ( Math functions) - absolute value
  5. AccDist ( Indicators) - accumulation/distribution
  6. acos ( Math functions) - arccosine function
  7. AddColumn (Exploration / Indicators) - add numeric exploration column (AFL 1.8)
  8. AddMultiTextColumn (Exploration / Indicators) - adds exploration text column based on array (AFL 4.20)
  9. AddRankColumn (Exploration / Indicators) - add ranking column(s) according to current sort set by SetSortColumns (AFL 5.70)
  10. AddRow (Exploration / Indicators) - add raw text row to exploration (AFL 4.0)
  11. AddSummaryRows (Exploration / Indicators) - add summary row(s) to the exploration output (AFL 3.2)
  12. AddTextColumn (Exploration / Indicators) - add text exploration column (AFL 1.8)
  13. AddToComposite ( Composites) - add value to composite ticker (AFL 2.0)
  14. ADLine ( Composites) - advance/decline line (AFL 1.2)
  15. AdvIssues ( Composites) - advancing issues (AFL 1.2)
  16. AdvVolume ( Composites) - advancing issues volume (AFL 1.2)
  17. ADX ( Indicators) - average directional movement index (AFL 1.3)
  18. AlertIf ( Trading system toolbox) - trigger alerts (AFL 2.1)
  19. AlmostEqual ( Math functions) - rounding error insensitive comparison (AFL 2.80)
  20. AMA ( Moving averages, summation) - adaptive moving average (AFL 1.5)
  21. AMA2 ( Moving averages, summation) - adaptive moving average (AFL 1.5)
  22. ApplyStop ( Trading system toolbox) - apply built-in stop (AFL 1.7)
  23. Asc ( String manipulation) - get ASCII code of character (AFL 2.80)
  24. asin ( Math functions) - arcsine function
  25. atan ( Math functions) - arc tan
  26. atan2 ( Math functions) - calculates arctangent of y/x (AFL 2.90)
  27. ATR ( Indicators) - average true range (AFL 1.3)
  28. BarIndex ( Date/Time) - get zero-based bar number (AFL 2.3)
  29. BarsSince ( Trading system toolbox) - bars since
  30. BarsSinceCompare ( Trading system toolbox) - bars since comparision between past and present array values was true (AFL 4.40)
  31. BBandBot ( Indicators) - bottom bollinger band
  32. BBandTop ( Indicators) - top bollinger band
  33. BeginValue ( Date/Time) - Value of the array at the begin of the range (AFL 2.3)
  34. CategoryAddSymbol ( Information / Categories) - adds a symbol to a category (AFL 2.5)
  35. CategoryCreate ( Information / Categories) - add new category (such as watch list) (AFL 3.70)
  36. CategoryFind ( Information / Categories) - search for category by name (AFL 3.0)
  37. CategoryGetName ( Information / Categories) - get the name of a category (AFL 2.5)
  38. CategoryGetSymbols ( Information / Categories) - retrieves comma-separated list of symbols belonging to given category (AFL 2.5)
  39. CategoryRemoveSymbol ( Information / Categories) - remove a symbol from a category (AFL 2.5)
  40. CategorySetName ( Information / Categories) - set the name of category (group, market, watch list, industry) (AFL 3.20)
  41. CCI ( Indicators) - commodity channel index
  42. ceil ( Math functions) - ceil value
  43. Chaikin ( Indicators) - chaikin oscillator
  44. Chr ( String manipulation) - get string with given ASCII code (AFL 4.40)
  45. ClipboardGet ( Miscellaneous functions) - retrieves current contents of Windows clipboard (AFL 2.60)
  46. ClipboardSet ( Miscellaneous functions) - copies the text to the Windows clipboard (AFL 2.6)
  47. ColorBlend ( Indicators) - blends (mixes) two colors (AFL 3.30)
  48. ColorHSB ( Miscellaneous functions) - specify color using Hue-Saturation-Brightness (AFL 2.80)
  49. ColorRGB ( Miscellaneous functions) - specify color using Red-Green-Blue components (AFL 2.80)
  50. Correlation ( Statistical functions) - correlation (AFL 1.4)
  51. cos ( Math functions) - cosine
  52. cosh ( Math functions) - hyperbolic cosine function (AFL 2.80)
  53. CreateObject ( Miscellaneous functions) - create COM object (AFL 1.8)
  54. CreateStaticObject ( Miscellaneous functions) - create static COM object (AFL 1.8)
  55. Cross ( Trading system toolbox) - crossover check
  56. Cum ( Moving averages, summation) - cumulative sum
  57. CumProd ( Moving averages, summation) - cumulative product of all array elements (AFL 4.20)
  58. Date ( Date/Time) - date (AFL 1.1)
  59. DateNum ( Date/Time) - date number (AFL 1.4)
  60. DateTime ( Date/Time) - retrieves encoded date time (AFL 2.3)
  61. DateTimeAdd ( Date/Time) - adds specified number of seconds/minutes/hours/days to datetime (AFL 3.40)
  62. DateTimeConvert ( Date/Time) - date/time format conversion (AFL 2.90)
  63. DateTimeDiff ( Date/Time) - get difference in seconds between two datetime values (AFL 3.30)
  64. DateTimeFormat ( Date/Time) - converts datetime to string (AFL 4.20)
  65. DateTimeToStr ( Date/Time) - convert datetime to string (AFL 2.8)
  66. Day ( Date/Time) - day of month (AFL 1.4)
  67. DayOfWeek ( Date/Time) - day of week (AFL 1.4)
  68. DayOfYear ( Date/Time) - get ordinal number of day in a year (AFL 2.4)
  69. DaysSince1900 ( Date/Time) - get number of days since January 1st, 1900 (AFL 3.20)
  70. DecIssues ( Composites) - declining issues (AFL 1.2)
  71. DecVolume ( Composites) - declining issues volume (AFL 1.2)
  72. DEMA ( Moving averages, summation) - double exponential moving average (AFL 2.0)
  73. EMA ( Moving averages, summation) - exponential moving average
  74. EnableRotationalTrading ( Trading system toolbox) - Turns on rotational-trading mode of the backtester (AFL 2.5)
  75. EnableScript ( Miscellaneous functions) - enable scripting engine
  76. EnableTextOutput ( Miscellaneous functions) - allows to enable or disable text output (AFL 2.20)
  77. EncodeColor (Exploration / Indicators) - encodes color for indicator title (AFL 2.2)
  78. EndValue ( Date/Time) - value of the array at the end of the selected range (AFL 2.3)
  79. Equity ( Trading system toolbox) - calculate single-symbol equity line (AFL 2.0)
  80. erf ( Math functions) - calculates Gauss error function (erf) (AFL 4.40)
  81. Error ( Miscellaneous functions) - displays user-defined error message and stops the execution (AFL 3.7)
  82. EXP ( Math functions) - exponential function
  83. ExRem ( Trading system toolbox) - remove excessive signals (AFL 1.5)
  84. ExRemSpan ( Trading system toolbox) - remove excessive signals spanning given number of bars (AFL 2.0)
  85. fclose (File Input/Output functions) - close a file (AFL 2.5)
  86. fdelete (File Input/Output functions) - deletes a file (AFL 2.70)
  87. fdir (File Input/Output functions) - list directory content (AFL 3.70)
  88. feof (File Input/Output functions) - test for end-of-file (AFL 2.5)
  89. FFT ( Basic price pattern detection) - performs Fast Fourier Transform (AFL 2.90)
  90. fgetcwd (File Input/Output functions) - get current working directory (AFL 4.10)
  91. fgets (File Input/Output functions) - get a string from a file (AFL 2.5)
  92. fgetstatus (File Input/Output functions) - retrieves file status/properties (AFL 2.90)
  93. FindIndex ( Miscellaneous functions) - find index of array item matching specified value (AFL 4.40)
  94. FIR ( Moving averages, summation) - Finite Impulse Response filter (AFL 3.40)
  95. FirstVisibleValue ( Indicators) - get first visible value of array (AFL 3.40)
  96. Flip ( Trading system toolbox) - (AFL 1.5)
  97. floor ( Math functions) - floor value
  98. fmkdir (File Input/Output functions) - creates (makes) a directory (AFL 2.70)
  99. fopen (File Input/Output functions) - open a file (AFL 2.5)
  100. Foreign (Referencing other symbol data) - access foreign security data (AFL 1.5)
  101. fputs (File Input/Output functions) - write a string to a file (AFL 2.5)
  102. frac ( Math functions) - fractional part
  103. frmdir (File Input/Output functions) - removes a directory (AFL 2.70)
  104. FullName ( Information / Categories) - full name of the symbol (AFL 1.1)
  105. GapDown ( Basic price pattern detection) - gap down
  106. GapUp ( Basic price pattern detection) - gap up
  107. GetAsyncKeyState ( Miscellaneous functions) - query the current state of keyboard keys (AFL 3.60)
  108. GetBacktesterObject ( Trading system toolbox) - get the access to backtester object (AFL 2.60)
  109. GetBaseIndex (Referencing other symbol data) - retrieves symbol of relative strength base index (AFL 2.1)
  110. GetCategorySymbols ( Information / Categories) - retrieves comma-separated list of symbols belonging to given category (AFL 2.4)
  111. GetChartBkColor ( Indicators) - get the RGB color value of chart background (AFL 3.20)
  112. GetChartID (Exploration / Indicators) - get current chart ID (AFL 2.3)
  113. GetCursorMouseButtons ( Indicators) - get current state of mouse buttons (AFL 2.80)
  114. GetCursorXPosition ( Indicators) - get current X position of mouse pointer (AFL 2.80)
  115. GetCursorYPosition ( Indicators) - get current Y position of mouse pointer (AFL 2.80)
  116. GetDatabaseName ( Information / Categories) - retrieves folder name of current database (AFL 2.3)
  117. GetExtraData ( Miscellaneous functions) - get extra data from external data source (AFL 1.9)
  118. GetExtraDataForeign ( Miscellaneous functions) - get extra data from external data source for specified symbol (AFL 4.20)
  119. GetFnData ( Information / Categories) - get fundamental data (AFL 2.90)
  120. GetFnDataForeign ( Information / Categories) - get fundamental data for specified symbol (AFL 4.20)
  121. GetFormulaPath ( Miscellaneous functions) - get file path of current formula (AFL 3.90)
  122. GetLastOSError ( Miscellaneous functions) - get text of last operating system (Windows) error (AFL 4.30)
  123. GetObject ( Miscellaneous functions) - get handle to already running OLE object (AFL 4.40)
  124. GetOption ( Trading system toolbox) - gets the value of option in automatic analysis settings (AFL 2.60)
  125. GetPerformanceCounter ( Miscellaneous functions) - retrieves the current value of the high-resolution performance counter (AFL 2.90)
  126. GetPlaybackDateTime ( Date/Time) - get bar replay position date/time (AFL 3.0)
  127. GetPriceStyle (Exploration / Indicators) - get current price chart style (AFL 2.70)
  128. GetRTData ( Miscellaneous functions) - retrieves the real-time data fields (AFL 2.60)
  129. GetRTDataForeign ( Miscellaneous functions) - retrieves the real-time data fields (for specified symbol) (AFL 2.80)
  130. GetScriptObject ( Miscellaneous functions) - get access to script COM object (AFL 1.8)
  131. GetTradingInterface ( Trading system toolbox) - retrieves OLE automation object to automatic trading interfac (AFL 2.70)
  132. GfxArc (Low-level graphics) - draw an arc (AFL 3.0)
  133. GfxChord (Low-level graphics) - draw a chord (AFL 3.0)
  134. GfxCircle (Low-level graphics) - draw a circle (AFL 3.0)
  135. GfxDrawImage (Low-level graphics) - draw bitmap image (AFL 4.20)
  136. GfxDrawText (Low-level graphics) - draw a text (clipped to rectangle) (AFL 3.0)
  137. GfxEllipse (Low-level graphics) - draw an ellipse (AFL 3.0)
  138. GfxFillSolidRect (Low-level graphics) - fill rectangle with solid color (AFL 4.10)
  139. GfxGetTextWidth (Low-level graphics) - get pixel width of text (AFL 2.80)
  140. GfxGradientRect (Low-level graphics) - draw a rectangle with gradient fill (AFL 3.0)
  141. GfxLineTo (Low-level graphics) - draw a line to specified point (AFL 3.0)
  142. GfxMoveTo (Low-level graphics) - move graphic cursor to new position (AFL 3.0)
  143. GfxPie (Low-level graphics) - draw a pie (AFL 3.0)
  144. GfxPolygon (Low-level graphics) - draw a polygon (AFL 3.0)
  145. GfxPolyline (Low-level graphics) - draw a polyline (AFL 3.0)
  146. GfxRectangle (Low-level graphics) - draw a rectangle (AFL 3.0)
  147. GfxRoundRect (Low-level graphics) - draw a rectangle with rounded corners (AFL 3.0)
  148. GfxSelectFont (Low-level graphics) - create / select graphic font (AFL 3.0)
  149. GfxSelectHatchBrush (Low-level graphics) - select hatch style brush (AFL 4.0)
  150. GfxSelectPen (Low-level graphics) - create / select graphic pen (AFL 3.0)
  151. GfxSelectSolidBrush (Low-level graphics) - create / select graphic brush (AFL 3.0)
  152. GfxSelectStockObject (Low-level graphics) - select built-in graphic object (AFL 4.00)
  153. GfxSetBkColor (Low-level graphics) - set graphic background color (AFL 3.0)
  154. GfxSetBkMode (Low-level graphics) - set graphic background mode (AFL 3.0)
  155. GfxSetCoordsMode (Low-level graphics) - set low-level graphics co-ordinate mode (AFL 2.80)
  156. GfxSetOverlayMode (Low-level graphics) - set low-level graphic overlay mode (AFL 3.0)
  157. GfxSetPixel (Low-level graphics) - set pixel at specified position to specified color (AFL 3.0)
  158. GfxSetTextAlign (Low-level graphics) - set text alignment (AFL 3.0)
  159. GfxSetTextColor (Low-level graphics) - set graphic text color (AFL 3.0)
  160. GfxSetZOrder (Low-level graphics) - set current low-level graphic Z-order layer (AFL 2.80)
  161. GfxTextOut (Low-level graphics) - writes text at the specified location (AFL 3.0)
  162. GicsID ( Information / Categories) - get GICS category information (AFL 3.40)
  163. GroupID ( Information / Categories) - get group ID/name (AFL 1.8)
  164. GuiButton (GUI functions) - create on-chart button control (AFL 4.30)
  165. GuiCheckBox (GUI functions) - creates on-chart checkbox control (AFL 4.30)
  166. GuiDateTime (GUI functions) - creates on-chart date-time picker control (AFL 4.30)
  167. GuiEdit (GUI functions) - create on-chart edit control (AFL 4.30)
  168. GuiEnable (GUI functions) - enables or disables on-chart control (AFL 4.30)
  169. GuiGetCheck (GUI functions) - get checked state of control (AFL 4.30)
  170. GuiGetEvent (GUI functions) - get GUI event (AFL 4.30)
  171. GuiGetText (GUI functions) - get text from on-chart control (AFL 4.30)
  172. GuiGetValue (GUI functions) - get numeric value of on-chart control (AFL 4.30)
  173. GuiRadio (GUI functions) - creates on-chart radio button control (AFL 4.30)
  174. GuiSendKeyEvents (GUI functions) - request GUI notifications for specified keys (AFL 4.40)
  175. GuiSetCheck (GUI functions) - set checked state of on-chart control (AFL 4.30)
  176. GuiSetColors (GUI functions) - set colors of GUI controls (AFL 4.30)
  177. GuiSetFont (GUI functions) - set the font for on-chart control (AFL 4.30)
  178. GuiSetRange (GUI functions) - set slider control range (AFL 4.30)
  179. GuiSetText (GUI functions) - set text value of on-chart control (AFL 4.30)
  180. GuiSetValue (GUI functions) - set numeric value of on-chart control (AFL 4.30)
  181. GuiSetVisible (GUI functions) - shows or hides on-chart control (AFL 4.30)
  182. GuiSlider (GUI functions) - creates on-chart slider control (AFL 4.30)
  183. GuiToggle (GUI functions) - create on-chart toggle button control (AFL 4.30)
  184. HHV ( Lowest/Highest) - highest high value
  185. HHVBars ( Lowest/Highest) - bars since highest high
  186. Highest ( Lowest/Highest) - highest value
  187. HighestBars ( Lowest/Highest) - bars since highest value
  188. HighestSince ( Lowest/Highest) - highest value since condition met (AFL 1.4)
  189. HighestSinceBars ( Lowest/Highest) - bars since highest value since condition met (AFL 1.4)
  190. HighestVisibleValue ( Indicators) - get the highest value within visible chart area (AFL 3.30)
  191. HMA ( Moving averages, summation) - Hull Moving Average (AFL 3.40)
  192. Hold ( Trading system toolbox) - hold the alert signal
  193. Hour ( Date/Time) - get current bar's hour (AFL 2.0)
  194. IcbID ( Information / Categories) - get ICB category information (AFL 3.60)
  195. IIf ( Trading system toolbox) - immediate IF function
  196. IIR ( Moving averages, summation) - infinite impulse response filter (AFL 4.0)
  197. IndustryID ( Information / Categories) - get industry ID / name (AFL 1.8)
  198. InGICS ( Information / Categories) - test GICS membership (AFL 3.40)
  199. InICB ( Information / Categories) - test ICB membership (AFL 3.60)
  200. Inside ( Basic price pattern detection) - inside day
  201. Int ( Math functions) - integer part
  202. InternetClose (File Input/Output functions) - close Internet file handle (AFL 4.20)
  203. InternetGetStatusCode (File Input/Output functions) - returns HTTP status code of last Internet call (AFL 4.40)
  204. InternetOpenURL (File Input/Output functions) - opens Internet web resource (URL) (AFL 4.20)
  205. InternetPostRequest (File Input/Output functions) - send HTTP Post request to Internet web resource (URL) (AFL 4.30)
  206. InternetReadString (File Input/Output functions) - read a string from Internet resource (AFL 4.20)
  207. InternetSetAgent (File Input/Output functions) - set agent string for Internet function (AFL 4.30)
  208. InternetSetHeaders (File Input/Output functions) - set custom HTTP headers for subsequent web requests (AFL 4.40)
  209. InternetSetOption (File Input/Output functions) - set HTTP option for internet session (AFL 4.40)
  210. Interval ( Date/Time) - get bar interval (in seconds) (AFL 2.1)
  211. inverf ( Math functions) - inverse Gauss erf function (AFL 4.40)
  212. InWatchList ( Information / Categories) - watch list membership test (by ordinal number)
  213. InWatchListName ( Information / Categories) - watch list membership test (by name) (AFL 3.0)
  214. IsContinuous ( Information / Categories) - checks 'continuous quotations' flag state (AFL 2.60)
  215. IsEmpty ( Miscellaneous functions) - empty value check (AFL 1.5)
  216. IsFavorite ( Information / Categories) - check if current symbol belongs to favorites (AFL 2.5)
  217. IsFinite ( Miscellaneous functions) - check if value is not infinite (AFL 2.3)
  218. IsIndex ( Information / Categories) - check if current symbol is an index (AFL 2.5)
  219. IsNan ( Miscellaneous functions) - checks for NaN (not a number) (AFL 2.3)
  220. IsNull ( Miscellaneous functions) - check for Null (empty) value (AFL 2.3)
  221. IsTrue ( Miscellaneous functions) - true value (non-empty and non-zero) check (AFL 1.5)
  222. Kurtosis ( Math functions) - calculates kurtosis (AFL 4.20)
  223. LastValue ( Trading system toolbox) - last value of the array
  224. LastVisibleValue ( Indicators) - get last visible value of array (AFL 3.40)
  225. LineArray (Exploration / Indicators) - generate trend-line array (AFL 2.5)
  226. LinearReg ( Statistical functions) - linear regression end-point (AFL 2.2)
  227. LinRegIntercept ( Statistical functions) - (AFL 2.2)
  228. LinRegSlope ( Statistical functions) - linear regression slope (AFL 1.4)
  229. LLV ( Lowest/Highest) - lowest low value
  230. LLVBars ( Lowest/Highest) - bars since lowest low
  231. log ( Math functions) - natural logarithm
  232. log10 ( Math functions) - decimal logarithm
  233. Lookup ( Date/Time) - search the array for bar with specified date/time (AFL 3.40)
  234. Lowest ( Lowest/Highest) - lowest value
  235. LowestBars ( Lowest/Highest) - bars since lowest
  236. LowestSince ( Lowest/Highest) - lowest value since condition met (AFL 1.4)
  237. LowestSinceBars ( Lowest/Highest) - barssince lowest value since condition met (AFL 1.4)
  238. LowestVisibleValue ( Indicators) - get the lowest value within visible chart area (AFL 3.30)
  239. MA ( Moving averages, summation) - simple moving average
  240. MACD ( Indicators) - moving average convergence/divergence
  241. MarketID ( Information / Categories) - market ID / name (AFL 1.8)
  242. Matrix (Matrix functions) - create a new matrix (AFL 4.0)
  243. Max ( Math functions) - maximum value of two numbers / arrays
  244. MDI ( Indicators) - minus directional movement indicator (-DI) (AFL 1.3)
  245. Median ( Statistical functions) - calculate median (middle element) (AFL 2.5)
  246. MFI ( Indicators) - money flow index
  247. MicroSec ( Date/Time) - get bar's microsecond part of the timestamp
  248. MilliSec ( Date/Time) - get bar's millisecond part of the timestamp
  249. Min ( Math functions) - minimum value of two numbers / arrays
  250. Minute ( Date/Time) - get current bar's minute (AFL 2.0)
  251. Month ( Date/Time) - month (AFL 1.4)
  252. mtRandom ( Statistical functions) - Mersene Twister random number generator (AFL 3.0)
  253. mtRandomA ( Statistical functions) - Mersene Twister random number generator (array version) (AFL 3.0)
  254. MxCopy (Matrix functions) - copy rectangular block from one matrix to another (AFL 4.40)
  255. MxDet (Matrix functions) - calculate determinant of the matrix (AFL 4.10)
  256. MxFromString (Matrix functions) - creates a new matrix out of string (AFL 4.10)
  257. MxGetBlock (Matrix functions) - get rectangular block of items from matrix (AFL 4.10)
  258. MxGetSize (Matrix functions) - get size of the matrix (AFL 4.0)
  259. MxIdentity (Matrix functions) - create an identity matrix (AFL 4.0)
  260. MxInverse (Matrix functions) - calculate inverse matrix (AFL 4.10)
  261. MxSetBlock (Matrix functions) - sets values in the rectangular block of matrix cells (AFL 4.10)
  262. MxSolve (Matrix functions) - solves linear equation system A @ X = B (AFL 4.10)
  263. MxSort (Matrix functions) - sorts the matrix (AFL 4.10)
  264. MxSortRows (Matrix functions) - sort the rows of the matrix (AFL 4.10)
  265. MxSum (Matrix functions) - calculate grand sum of the matrix (AFL 4.20)
  266. MxToString (Matrix functions) - convert matrix to string (AFL 4.10)
  267. MxTranspose (Matrix functions) - creates transpose of an input matrix (AFL 4.0)
  268. Name ( Information / Categories) - ticker symbol (AFL 1.1)
  269. NormDist ( Statistical functions) - normal distribution function (AFL 4.20)
  270. NoteGet ( Miscellaneous functions) - retrieves the text of the note (AFL 2.6)
  271. NoteSet ( Miscellaneous functions) - sets text of the note (AFL 2.6)
  272. Now ( Date/Time) - gets current system date/time (AFL 2.3)
  273. NullCount ( Miscellaneous functions) - count consecutive Null values (AFL 3.90)
  274. NumToStr ( String manipulation) - convert number to string (AFL 2.5)
  275. NVI ( Indicators) - negative volume index
  276. Nz ( Miscellaneous functions) - Null (Null/Nan/Infinity) to zero (AFL 2.3)
  277. OBV ( Indicators) - on balance volume
  278. Optimize ( Trading system toolbox) - define optimization variable (AFL 1.7)
  279. OptimizerSetEngine ( Trading system toolbox) - select external optimization engine (AFL 3.20)
  280. OptimizerSetOption ( Trading system toolbox) - set the value of external optimizer engine parameter (AFL 3.20)
  281. OscP ( Indicators) - price oscillator
  282. OscV ( Indicators) - volume oscillator
  283. Outside ( Basic price pattern detection) - outside bar
  284. Param (Exploration / Indicators) - add user user-definable numeric parameter (AFL 2.3)
  285. ParamColor (Exploration / Indicators) - add user user-definable color parameter (AFL 2.3)
  286. ParamDate (Exploration / Indicators) - add user user-definable date parameter (AFL 2.60)
  287. ParamField (Exploration / Indicators) - creates price field parameter (AFL 2.70)
  288. ParamList (Exploration / Indicators) - creates the parameter that consist of the list of choices (AFL 2.70)
  289. ParamStr (Exploration / Indicators) - add user user-definable string parameter (AFL 2.3)
  290. ParamStyle (Exploration / Indicators) - select styles applied to the plot (AFL 2.70)
  291. ParamTime (Exploration / Indicators) - add user user-definable time parameter (AFL 2.60)
  292. ParamToggle (Exploration / Indicators) - create Yes/No parameter (AFL 2.70)
  293. ParamTrigger (Exploration / Indicators) - creates a trigger (button) in the parameter dialog (AFL 2.70)
  294. PDI ( Indicators) - plus directional movement indicator (AFL 1.3)
  295. Peak ( Basic price pattern detection) - peak (AFL 1.1)
  296. PeakBars ( Basic price pattern detection) - bars since peak (AFL 1.1)
  297. Percentile ( Statistical functions) - calculate percentile (AFL 2.5)
  298. PercentRank ( Indicators) - calculate percent rank (AFL 3.40)
  299. PlaySound ( Miscellaneous functions) - play back specified .WAV file (AFL 3.40)
  300. Plot (Exploration / Indicators) - plot indicator graph (AFL 1.8)
  301. PlotForeign (Referencing other symbol data) - plot foreign security data (AFL 2.2)
  302. PlotGrid (Exploration / Indicators) - Plot horizontal grid line (AFL 2.3)
  303. PlotOHLC (Exploration / Indicators) - plot custom OHLC chart (AFL 2.2)
  304. PlotShapes (Exploration / Indicators) - plots arrows and other shapes (AFL 2.3)
  305. PlotText ( Indicators) - write text on the chart (AFL 2.80)
  306. PlotTextSetFont ( Basic price pattern detection) - write text on the chart with user-defined font (AFL 2.80)
  307. PlotVAPOverlay (Exploration / Indicators) - plot Volume-At-Price overlay chart (AFL 2.4)
  308. PlotVAPOverlayA ( Indicators) - plot multiple-segment Volume-At-Price chart (AFL 3.20)
  309. PopupWindow ( Miscellaneous functions) - display pop-up window (AFL 3.0)
  310. Prec ( Math functions) - adjust number of decimal points of floating point number
  311. Prefs ( Miscellaneous functions) - retrieve preferences settings (AFL 1.4)
  312. PriceVolDistribution (Matrix functions) - general-purpose distribution function (AFL 4.20)
  313. printf ( String manipulation) - Print formatted output to the output window. (AFL 2.5)
  314. Prod ( Moving averages, summation) - cumulative product of array over specified range (AFL 4.20)
  315. ProdSince ( Moving averages, summation) - cumulative product since condition is met (AFL 4.20)
  316. PVI ( Indicators) - positive volume index
  317. Random ( Statistical functions) - random number (AFL 1.9)
  318. Ref ( Trading system toolbox) - reference past/future values of the array
  319. RelStrength (Referencing other symbol data) - comparative relative strength (AFL 1.3)
  320. Remap ( Math functions) - re-maps one range to another (AFL 4.30)
  321. RequestMouseMoveRefresh ( Indicators) - request chart to be refreshed when user moves mouse cursor (AFL 4.30)
  322. RequestTimedRefresh ( Indicators) - forces periodical refresh of indicator pane (AFL 2.90)
  323. RestorePriceArrays (Referencing other symbol data) - restore price arrays to original symbol (AFL 2.5)
  324. Reverse ( Miscellaneous functions) - reverse the order of the elements in the array (AFL 3.90)
  325. RMI ( Indicators) - Relative Momentum Index (AFL 2.1)
  326. ROC ( Indicators) - percentage rate of change
  327. Round ( Math functions) - round number to nearest integer
  328. RSI ( Indicators) - relative strength index
  329. RWI ( Indicators) - random walk index
  330. RWIHi ( Indicators) - random walk index of highs
  331. RWILo ( Indicators) - random walk index of lows
  332. SafeDivide ( Math functions) - division with divide-by-zero protection (AFL 4.40)
  333. SAR ( Indicators) - parabolic stop-and-reverse (AFL 1.3)
  334. Say (Text-to-Speech functions) - speaks provided text (AFL 2.90)
  335. Second ( Date/Time) - get current bar's second (AFL 2.0)
  336. SectorID ( Information / Categories) - get sector ID / name (AFL 1.8)
  337. SelectedValue (Exploration / Indicators) - retrieves value of the array at currently selected date/time point (AFL 2.1)
  338. SendEmail ( Miscellaneous functions) - send an e-mail message (AFL 3.90)
  339. SetBacktestMode ( Trading system toolbox) - Sets working mode of the backtester (AFL 3.0)
  340. SetBarFillColor ( Indicators) - set bar/candlestick/cloud chart fill color (AFL 3.1)
  341. SetBarsRequired ( Miscellaneous functions) - set number of previous and future bars needed for script/DLL to properly execute (AFL 2.1)
  342. SetChartBkColor ( Indicators) - set background color of a chart (AFL 2.80)
  343. SetChartBkGradientFill ( Indicators) - enables background gradient color fill in indicators (AFL 2.90)
  344. SetChartOptions (Exploration / Indicators) - set/clear/overwrite defaults for chart pane options (AFL 2.70)
  345. SetCustomBacktestProc ( Trading system toolbox) - define custom backtest procedure formula file (AFL 2.70)
  346. SetForeign (Referencing other symbol data) - replace current price arrays with those of foreign security (AFL 2.5)
  347. SetFormulaName ( Trading system toolbox) - set the name of the formula (AFL 2.5)
  348. SetGradientFill ( Indicators) - set the colors of a gradient fill plot (AFL 3.60)
  349. SetOption ( Trading system toolbox) - sets options in automatic analysis settings (AFL 2.3)
  350. SetPositionSize ( Trading system toolbox) - set trade size (AFL 2.70)
  351. SetSortColumns (Exploration / Indicators) - sets the columns which will be used for sorting in AA window (AFL 2.90)
  352. SetStopPrecedence ( Trading system toolbox) - set precedence of built-in stops (AFL 4.0)
  353. SetTradeDelays ( Trading system toolbox) - allows to control trade delays applied by the backtester (AFL 2.1)
  354. ShellExecute ( Basic price pattern detection) - execute a file (AFL 3.40)
  355. sign ( Math functions) - returns the sign of the number/array (AFL 2.50)
  356. Signal ( Indicators) - macd signal line
  357. sin ( Math functions) - sine function
  358. sinh ( Math functions) - hyperbolic sine function (AFL 2.80)
  359. Skewness ( Math functions) - calculate skewness (AFL 4.20)
  360. Sort ( Miscellaneous functions) - performs a quick sort of the array (AFL 3.90)
  361. SparseCompress ( Miscellaneous functions) - compress sparse array (AFL 4.0)
  362. SparseExpand ( Miscellaneous functions) - expand compressed array to sparse array (AFL 4.0)
  363. sqrt ( Math functions) - square root
  364. StaticVarAdd ( Miscellaneous functions) - an "atomic" addition for static variables (AFL 4.10)
  365. StaticVarCompareExchange ( Miscellaneous functions) - atomic interlocked static variable compare-exchange operation (AFL 3.50)
  366. StaticVarCount ( Miscellaneous functions) - get the total number of static variables in memory (AFL 3.30)
  367. StaticVarGenerateRanks ( Miscellaneous functions) - generate ranking of multiple symbols and store it to static variables (AFL 3.70)
  368. StaticVarGet ( Miscellaneous functions) - gets the value of static variable (AFL 2.60)
  369. StaticVarGetRankedSymbols ( Miscellaneous functions) - retrieve a list of ranked symbols from static variables (AFL 3.70)
  370. StaticVarGetText ( Miscellaneous functions) - gets the value of static variable as string (AFL 2.60)
  371. StaticVarInfo ( Miscellaneous functions) - get the information about static variable(s) (AFL 3.60)
  372. StaticVarRemove ( Miscellaneous functions) - remove static variable (AFL 2.80)
  373. StaticVarSet ( Miscellaneous functions) - sets the value of static variable (AFL 2.60)
  374. StaticVarSetText ( Miscellaneous functions) - Sets the value of static string variable. (AFL 2.60)
  375. Status ( Miscellaneous functions) - get run-time AFL status information (AFL 1.65)
  376. StdErr ( Statistical functions) - standard error (AFL 1.4)
  377. StDev ( Statistical functions) - standard deviation (AFL 1.4)
  378. StochD ( Indicators) - stochastic slow %D
  379. StochK ( Indicators) - stochastic slow %K
  380. StrCount ( String manipulation) - count the occurrences of substring within a string (AFL 3.20)
  381. StrExtract ( String manipulation) - extracts given item (substring) from comma-separated string (AFL 2.4)
  382. StrFind ( String manipulation) - find substring in a string (AFL 2.5)
  383. StrFormat ( String manipulation) - Write formatted output to the string (AFL 2.5)
  384. StrLeft ( String manipulation) - extracts the leftmost part (AFL 2.0)
  385. StrLen ( String manipulation) - string length (AFL 1.5)
  386. StrMatch ( String manipulation) - string pattern/wildcard matching (AFL 4.0)
  387. StrMid ( String manipulation) - extracts part of the string (AFL 2.0)
  388. StrReplace ( String manipulation) - string replace (AFL 2.90)
  389. StrRight ( String manipulation) - extracts the rightmost part of the string (AFL 2.0)
  390. StrSort ( String manipulation) - sort comma-separated item list (AFL 3.90)
  391. StrToDateTime ( String manipulation) - convert string to datetime (AFL 2.80)
  392. StrToLower ( String manipulation) - convert to lowercase (AFL 2.80)
  393. StrToNum ( String manipulation) - convert string to number (AFL 2.5)
  394. StrToUpper ( String manipulation) - convert to uppercase (AFL 2.80)
  395. StrTrim ( String manipulation) - trim whitespaces from the string (AFL 3.90)
  396. Study ( Miscellaneous functions) - reference hand-drawn study (AFL 1.5)
  397. Sum ( Moving averages, summation) - sum data over specified number of bars
  398. SumSince ( Moving averages, summation) - sum of array elements since condition was tru (AFL 4.10)
  399. tan ( Math functions) - tangent function (AFL 1.0)
  400. tanh ( Math functions) - hyperbolic tangent function (AFL 2.80)
  401. TEMA ( Moving averages, summation) - triple exponential moving average (AFL 2.0)
  402. ThreadSleep ( Miscellaneous functions) - suspend thread for specified number of milliseconds (AFL 3.50)
  403. TimeFrameCompress (Time Frame functions) - compress single array to given time frame (AFL 2.5)
  404. TimeFrameExpand (Time Frame functions) - expand time frame compressed array (AFL 2.5)
  405. TimeFrameGetPrice (Time Frame functions) - retrieve O, H, L, C, V values from other time frame (AFL 2.5)
  406. TimeFrameMode (Time Frame functions) - switch time frame compression mode (AFL 2.80)
  407. TimeFrameRestore (Time Frame functions) - restores price arrays to original time frame (AFL 2.5)
  408. TimeFrameSet (Time Frame functions) - switch price arrays to a different time frame (AFL 2.5)
  409. TimeNum ( Date/Time) - get current bar time (AFL 2.0)
  410. Trin ( Composites) - traders (Arms) index (AFL 1.2)
  411. TRIX ( Indicators) - triple exponential smoothed price
  412. Trough ( Basic price pattern detection) - trough (AFL 1.1)
  413. TroughBars ( Basic price pattern detection) - bars since trough (AFL 1.1)
  414. TSF ( Statistical functions) - time series forecast (AFL 2.2)
  415. Ultimate ( Indicators) - ultimate oscillator
  416. UncIssues ( Composites) - unchanged issues (AFL 1.2)
  417. UncVolume ( Composites) - unchaged issues volume (AFL 1.2)
  418. ValueWhen ( Trading system toolbox) - get value of the array when condition met (AFL 1.1)
  419. VarGet ( Miscellaneous functions) - gets the value of dynamic variable (AFL 2.60)
  420. VarGetText ( Miscellaneous functions) - gets the text value of dynamic variable (AFL 2.80)
  421. VarSet ( Miscellaneous functions) - sets the value of dynamic variable (AFL 2.60)
  422. VarSetText ( Miscellaneous functions) - sets dynamic variable of string type (AFL 2.80)
  423. Version ( Miscellaneous functions) - get version info (AFL 1.9)
  424. VoiceCount (Text-to-Speech functions) - get number of SAPI voices (AFL 4.20)
  425. VoiceSelect (Text-to-Speech functions) - select SAPI voice (AFL 4.20)
  426. VoiceSetRate (Text-to-Speech functions) - sets voice speech rate (AFL 4.30)
  427. VoiceSetVolume (Text-to-Speech functions) - set the volume of speech (AFL 4.30)
  428. VoiceWaitUntilDone (Text-to-Speech functions) - waits until TTS voice has finished speaking (AFL 4.30)
  429. Wilders ( Moving averages, summation) - Wilder's smoothing (AFL 1.4)
  430. WMA ( Moving averages, summation) - weighted moving average (AFL 2.0)
  431. WriteIf (Exploration / Indicators) - commentary conditional text output
  432. WriteVal (Exploration / Indicators) - converts number to string
  433. XYChartAddPoint (Exploration / Indicators) - add point to exploration scatter (XY) chart (AFL 3.60)
  434. XYChartSetAxis (Exploration / Indicators) - set the names of X and Y axes in exploration scatter charts (AFL 3.60)
  435. Year ( Date/Time) - year (AFL 1.4)
  436. ZIG ( Basic price pattern detection) - zig-zag indicator (AFL 1.1)
  437. _DEFAULT_NAME (Exploration / Indicators) - retrive default name of the plot (AFL 2.70)
  438. _DT ( Date/Time) - convert string to datetime (AFL 3.40)
  439. _exit ( Miscellaneous functions) - terminate the execution of AFL formula (AFL 4.40)
  440. _N (Exploration / Indicators) - no text output (AFL 2.1)
  441. _PARAM_VALUES (Exploration / Indicators) - retrieve param values string (AFL 2.70)
  442. _SECTION_BEGIN (Exploration / Indicators) - section begin marker (AFL 2.70)
  443. _SECTION_END (Exploration / Indicators) - section end marker (AFL 2.70)
  444. _SECTION_NAME (Exploration / Indicators) - retrieve current section name (AFL 2.70)
  445. _TRACE ( Miscellaneous functions) - print text to system debug viewer (AFL 2.4)
  446. _TRACEF ( Miscellaneous functions) - print formatted text to system debug viewer (AFL 4.0)