Textpad Editor codes for AFL syntax (Revised)....afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:7k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Textpad Editor codes for AFL syntax (Revised)...
  4. //  Author/Uploader: dingo 
  5. //  E-mail:          dingo@adelphia.net
  6. //  Date/Time Added: 2004-02-09 23:50:08
  7. //  Origin:          
  8. //  Keywords:        Textpad
  9. //  Level:           basic
  10. //  Flags:           system,exploration,indicator,commentary,function
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=337
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=337
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Textpad Editor codes for AFL syntax (Revised)...
  17. //
  18. //------------------------------------------------------------------------------
  19. ; Syntax file for AFL
  20. C=1
  21. [Syntax]
  22. Namespace1 = 6
  23. IgnoreCase = Yes
  24. InitKeyWordChars = A-Za-z_
  25. KeyWordChars = A-Za-z0-9_
  26. BracketChars=()
  27. OperatorChars=*/+-><
  28. PreprocStart =
  29. SyntaxStart =
  30. SyntaxEnd =
  31. CommentStart = /*
  32. CommentEnd = */
  33. CommentStartAlt = 
  34. CommentEndAlt = 
  35. SingleComment = //
  36. SingleCommentCol =
  37. StringStart = "
  38. StringEnd = "
  39. StringAlt =
  40. StringEsc =
  41. CharStart = "
  42. CharEnd = "
  43. CharEsc =
  44. [Preprocessor keywords]
  45. #include
  46. #pragma
  47. ; Following color will be Black
  48. [Keywords 1]
  49. open 
  50. o
  51. close 
  52. c
  53. high 
  54. h
  55. low 
  56. l
  57. volume 
  58. v
  59. openint 
  60. oi
  61. average 
  62. a
  63. ; Following color will be Blue
  64. [Keywords 2]
  65. _N
  66. _TRACE
  67. abs
  68. AccDist
  69. acos
  70. AddColumn
  71. AddTextColumn
  72. AddToComposite
  73. ADLine
  74. AdvIssues
  75. AdvVolume
  76. ADX
  77. AlertIf
  78. AMA
  79. AMA2
  80. ApplyStop
  81. atan
  82. ATR
  83. BarIndex
  84. BarsSince
  85. BBandBot
  86. BBandTop
  87. BeginValue
  88. CategoryAddSymbol
  89. CategoryGetName
  90. CategoryGetSymbols
  91. CategoryRemoveSymbol
  92. CCI
  93. ceil
  94. Chaikin
  95. Correlation
  96. cos
  97. CreateObject
  98. CreateStaticObject
  99. Cross
  100. Cum
  101. Date
  102. DateNum
  103. DateTime
  104. Day
  105. DayOfWeek
  106. DayOfYear
  107. DecIssues
  108. DecVolume
  109. DEMA
  110. EMA
  111. EnableRotationalTrading
  112. EnableScript
  113. EnableTextOutput
  114. EncodeColor
  115. EndValue
  116. Equity
  117. exp
  118. ExRem
  119. ExRemSpan
  120. fclose
  121. feof
  122. fgets
  123. Flip
  124. floor
  125. fopen
  126. Foreign
  127. fputs
  128. frac
  129. FullName
  130. GapDown
  131. GapUp
  132. GetBaseIndex
  133. GetCategorySymbols
  134. GetChartID
  135. GetDatabaseName
  136. GetExtraData
  137. GetScriptObject
  138. GroupID
  139. HHV
  140. HHVBars
  141. Highest
  142. HighestBars
  143. HighestSince
  144. HighestSinceBars
  145. Hold
  146. Hour
  147. IIf
  148. IndustryID
  149. Inside
  150. int
  151. Interval
  152. InWatchList
  153. IsEmpty
  154. IsFavorite
  155. IsFinite
  156. IsIndex
  157. IsNan
  158. IsNull
  159. IsTrue
  160. LastValue
  161. LineArray
  162. LinearReg
  163. LinRegIntercept
  164. LinRegSlope
  165. LLV
  166. LLVBars
  167. log
  168. log10
  169. Lowest
  170. LowestBars
  171. LowestSince
  172. LowestSinceBars
  173. MA
  174. MACD
  175. MarketID
  176. Max
  177. MDI
  178. Median
  179. MFI
  180. Min
  181. Minute
  182. Month
  183. Name
  184. Now
  185. NumToStr
  186. NVI
  187. Nz
  188. OBV
  189. Optimize
  190. OscP
  191. OscV
  192. Outside
  193. Param
  194. ParamColor
  195. ParamStr
  196. PDI
  197. Peak
  198. PeakBars
  199. Percentile
  200. Plot
  201. PlotForeign
  202. PlotGrid
  203. PlotOHLC
  204. PlotShapes
  205. PlotVAPOverlay
  206. Prec
  207. Prefs
  208. printf
  209. PVI
  210. Random
  211. Ref
  212. RelStrength
  213. RestorePriceArrays
  214. RMI
  215. ROC
  216. round
  217. RSI
  218. RSIa
  219. RWI
  220. RWIHi
  221. RWILo
  222. SAR
  223. Second
  224. SectorID
  225. SelectedValue
  226. SetBarsRequired
  227. SetForeign
  228. SetFormulaName
  229. SetOption
  230. SetTradeDelays
  231. sign
  232. Signal
  233. sin
  234. sqrt
  235. Status
  236. StdErr
  237. StDev
  238. StochD
  239. StochK
  240. StrExtract
  241. StrFind
  242. StrFormat
  243. StrLeft
  244. StrLen
  245. StrMid
  246. StrRight
  247. StrToNum
  248. Study
  249. Sum
  250. tan
  251. TEMA
  252. TimeFrameCompress
  253. TimeFrameExpand
  254. TimeFrameGetPrice
  255. TimeFrameRestore
  256. TimeFrameSet
  257. TimeNum
  258. Trin
  259. Trix
  260. Trough
  261. TroughBars
  262. TSF
  263. Ultimate
  264. UncIssues
  265. UncVolume
  266. ValueWhen
  267. Version
  268. Wilders
  269. WMA
  270. WriteIf
  271. WriteVal
  272. Year
  273. Zig
  274. ; Following color will be Black 
  275. [Keywords 3]
  276. and
  277. BarCount
  278. buy
  279. buyprice
  280. colorAqua
  281. colorBlack
  282. colorBlue
  283. colorBlueGrey
  284. colorBrightGreen
  285. colorBrown
  286. colorCustom1
  287. colorCustom10
  288. colorCustom11
  289. colorCustom12
  290. colorCustom13
  291. colorCustom14
  292. colorCustom15
  293. colorCustom16
  294. colorCustom2
  295. colorCustom3
  296. colorCustom4
  297. colorCustom5
  298. colorCustom6
  299. colorCustom7
  300. colorCustom8
  301. colorCustom9
  302. colorDarkBlue
  303. colorDarkGreen
  304. colorDarkGrey
  305. colorDarkOliveGreen
  306. colorDarkRed
  307. colorDarkTeal
  308. colorDarkYellow
  309. colorGold
  310. colorGreen
  311. colorGrey
  312. colorGrey
  313. colorIndigo
  314. colorLavender
  315. colorLightBlue
  316. colorLightGrey
  317. colorLightOrange
  318. colorLightYellow
  319. colorLime
  320. colorOrange
  321. colorPaleBlue
  322. colorPaleGreen
  323. colorPaleTurquoise
  324. colorPink
  325. colorPlum
  326. colorRed
  327. colorRose
  328. colorSeaGreen
  329. colorSkyblue
  330. colorTan
  331. colorTeal
  332. colorTurquoise
  333. colorViolet
  334. colorWhite
  335. colorYellow
  336. column0 
  337. column0format
  338. column0name
  339. column1
  340. column1format
  341. column1name
  342. column2
  343. column2format
  344. column2name
  345. column3
  346. column3format
  347. column3name
  348. column4
  349. column4format
  350. column4name
  351. column5
  352. column5format
  353. column5name
  354. column6
  355. column6format
  356. column6name
  357. column7
  358. column7format
  359. column7name
  360. column8
  361. column8format
  362. column8name
  363. column9
  364. column9format
  365. column9name
  366. compressHigh 
  367. compressLast 
  368. compressLow 
  369. compressOpen 
  370. compressVolume
  371. cover
  372. coverprice
  373. expandLast 
  374. expandFirst 
  375. expandPoint
  376. false
  377. filter
  378. graph0
  379. graph0barcolor
  380. graph0color
  381. graph0name
  382. graph0style
  383. graph1
  384. graph1barcolor
  385. graph1color
  386. graph1name
  387. graph1style
  388. graph2
  389. graph2barcolor
  390. graph2color
  391. graph2name
  392. graph2style
  393. graph3
  394. graph3barcolor
  395. graph3color
  396. graph3name
  397. graph3style
  398. graph4
  399. graph4barcolor
  400. graph4color
  401. graph4name
  402. graph4style
  403. graph5
  404. graph5barcolor
  405. graph5color
  406. graph5name
  407. graph5style
  408. graph6
  409. graph6barcolor
  410. graph6color
  411. graph6name
  412. graph6style
  413. graph7
  414. graph7barcolor
  415. graph7color
  416. graph7name
  417. graph7style
  418. graph8
  419. graph8barcolor
  420. graph8color
  421. graph8name
  422. graph8style
  423. graph9
  424. graph9barcolor
  425. graph9color
  426. graph9name
  427. graph9style
  428. graphxspace
  429. graphzorder
  430. in15Minute 
  431. in1Minute 
  432. in5Minute 
  433. inDaily 
  434. inHourly 
  435. inMonthly 
  436. inWeekly
  437. margindeposit
  438. maxgraph
  439. not
  440. Null
  441. numcolumns
  442. or
  443. pointvalue
  444. PositionScore
  445. positionsize
  446. roundlotsize
  447. scoreNoRotate
  448. sell
  449. sellprice
  450. shapeCircle
  451. shapeDigit0
  452. shapeDigit1
  453. shapeDigit2
  454. shapeDigit3
  455. shapeDigit4
  456. shapeDigit5
  457. shapeDigit6
  458. shapeDigit7
  459. shapeDigit8
  460. shapeDigit9
  461. shapeDownArrow
  462. shapeDownTriangle
  463. shapeHollowCircle
  464. shapeHollowDownArrow
  465. shapeHollowDownTriangle
  466. shapeHollowSmallCircle
  467. shapeHollowSmallDownTriangle
  468. shapeHollowSmallSquare
  469. shapeHollowSmallUpTriangle
  470. shapeHollowSquare
  471. shapeHollowStar
  472. shapeHollowUpArrow
  473. shapeHollowUpTriangle
  474. shapeNone
  475. shapePositionAbove
  476. shapeSmallCircle
  477. shapeSmallDownTriangle
  478. shapeSmallSquare
  479. shapeSmallUpTriangle
  480. shapeSquare
  481. shapeStar
  482. shapeUpArrow
  483. shapeUpTriangle
  484. short
  485. shortprice
  486. styleArea
  487. styleBar
  488. styleCandle
  489. styleDots
  490. styleHistogram
  491. styleLeftAxisScale
  492. styleLine
  493. styleLog
  494. styleNoDraw
  495. styleNoLabel
  496. styleNoLine
  497. styleNoRescale
  498. styleOwnScale
  499. stylePointAndFigure
  500. styleStaircase
  501. styleSwingDots
  502. styleThick
  503. ticksize
  504. title
  505. true
  506. ; Following color will be Red 
  507. [Keywords 4]
  508. do
  509. else
  510. for
  511. function
  512. global
  513. #include
  514. #pragma
  515. if
  516. local
  517. procedure
  518. return
  519. while