  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
语句
一个语句代表一个完全的指示或描述,语句中包含有保留字、操作符、符号。并且语句总是以";"作为语句结束的标志。
以下为语句的一些例子:
- This is one statement;
- This is another statement;
- This is
- one statement;
- This is
- another
- statement
- ;
- This is yet another;
- This is one statement;This is another;
复制代码
赋值语句
赋值语句用于给公式变量指定一个具体的值的语句,赋值语句使用赋值操作符(=)进行处理。
以下为赋值语句的一些例子:
- Vars
- Bool b;
- Begin
- B = true;
- ...
- End
- Vars
- Numeric Value1;
- Begin
- Value1 = (Close + Open)/2;
- ...
- End
- Vars
- String str;
- Begin
- str ="It Is A Test!";
- ...
- End
复制代码
变量在赋值的时候忽略其扩展数据类型,只考虑其基本数据类型,即NumericSeries,NumericRef,Numeric之间可以相互赋值。此时序列数据类型只是对当前Bar的值进行操作。 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|