龙听期货论坛's Archiver

龙听 发表于 2023-10-27 15:17

【Break】退出循环

Break[table]
[tr][td]退出循环。[/td][/tr]
[/table]
[table=98%]
[tr][td][b]用法[/b][p=30, 2, left]Break;[/p][/td][/tr]
[/table]
[table=98%]
[tr][td][b]范例[/b][p=30, 2, left]For value1 = 0 to 10 Begin
If ( close[value1] = open[value1] ) then Break;
End;
If value1 <= 10 then print("Open = Close ", value1:0:0, " bars ago.");[/p][/td][/tr]
[/table]

页: [1]