MultiCharts编程-PowerLanguage-Skip Words跳跃字
[font=宋体]第[/font]21[font=宋体]章[/font] Skip Words[font=宋体]跳跃字[/font][p=30, 2, left][font=宋体]本章的跳跃字,仅为了英文句法的通顺和可读性而存在,程序书写时都可以忽略不写。[/font][/p][table=98%][tr] [td=2,1] A An At Based By Does From Is Of On Place Than The Was [/td] [/tr]
[tr] [td=1,1,13%] [p=30, 2, left][font=宋体]说明[/font][/p] [/td] [td=1,1,86%] [p=30, 2, left][font=宋体]跳跃字。跳跃字的存在是为了提高[/font]PowerLanguage[font=宋体]代码的可读性,在编译和执行代码时会被跳过(忽略)。[/font][/p] [p=30, 2, left][font=宋体]跳跃字使用是可选的,跳跃字可以被插入在[/font]PL[font=宋体]代码中的任意位置。在[/font]PowerLanguage[font=宋体]编辑器中,跳跃字以红色显示。[/font][/p] [/td] [/tr]
[tr] [td=1,1,13%] [p=30, 2, left][font=宋体]范例[/font][/p] [/td] [td=1,1,86%] [p=30, 2, left][font=宋体]下例中[/font][font=宋体]跳跃[/font][font=宋体]字显示为红色:[/font][/p] [p=30, 2, left]If an Open is < than Close of 4 Bars Ago was Then Buy This Bar on Close;[/p] [p=30, 2, left]If Plot1 does Cross Above a 1350 Then Sell From Entry("My Entry") Next Bar at the Market; [/p] [/td] [/tr]
[tr] [td=1,1,13%] [p=30, 2, left][font=宋体]注意[/font][/p] [/td] [td=1,1,86%] [p=30, 2, left]Place[font=宋体]为兼容性保留。[/font][font="][/font][/p] [p=30, 2, left]From[font=宋体]在策略出场语句中和[/font]Entry[font=宋体]联合使用,使得出场绑定在指定名称的进场。[/font][/p] [p=30, 2, left][font=宋体]出场语句只能与相同名称的进场绑定(更多信息参考[/font]Buy[font=宋体]或[/font]Sellshort[font=宋体])。[/font][/p] [/td] [/tr]
[/table]
页:
[1]