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

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