没有搜到相关内容,请选择我要提问。 我要提问 产品建议
第 1-20 条, 共 247 条.

day != day[1] 和 Date!=Date[1] 区别 ?

RT day != day[1] 和 Date!=Date[1] 区别 ?
shshtiger 发表时间: 2012-02-12 12:40 浏览 (2746) 回复 (2)

Date存入全局变量后不等于Date的问题

NthCon(Date==20120418,1)的值 和NthCon(Date==GetGlobalVar(1),1)的值不一样,应该是一样的。 GetGlobalVar(1)当初是被SetGlobalVar(1,Date[LD1])的,Date[LD1]就是20120418 代码如下: If(CurrentBar==28) SetGlobalVar(1,Date); numL1=NthCon(Date==GetGlobalVar(1),1); Commentary(...
TBOKTB 发表时间: 2015-12-31 11:28 浏览 (2637) 回复 (6)

Date[-1],这里的-1是什么意思?

If((Date[-1]!=InvalidInteger && Date!=Date[-1])||(Date[-1]==InvalidInteger && Date < CurrentDate))Date[-1]是什么意思呢? 不是说"[nOffset]"应该是大于等于0的吗?为何出现负值了?
yaq2012 发表时间: 2014-11-01 17:44 浏览 (2234) 回复 (3)

收盘平仓公式中的Date[-1]是什么意思,怎么还有Date[-1]呢?

收盘平仓公式中的Date[-1]是什么意思,怎么还有Date[-1]呢?
luckybirdtom 发表时间: 2013-08-06 09:11 浏览 (2008) 回复 (4)

对If(CurrentBar == 0 || Date != Date[1])的请教

...------------- Vars NumericSeries ReBars; Begin If(CurrentBar == 0 || Date != Date[1]) { ReBars = 0; }Else { ReBars = ReBars + 1; } Return ReBars; End’ 请问:上面 (CurrentBar == 0 || Date != Date[1]) 是什么意思啊??请教大家
xiaoshansanzhi 发表时间: 2011-11-01 14:39 浏览 (6036) 回复 (6)

Date[-1]无法获取下一个bar的日期?

...R公式开发指南》,关于收盘平仓(P112)的示例代码, If((Date[-1] != InvalidInteger && Date != Date[-1]) || (Date[-1] == InvalidInteger && Date < CurrentDate))其中Date[-1]用于获取下一个Bar的日期,但当我通过 PlotString("Date", DateToString(Date[-1]))语句将...
chefei 发表时间: 2017-07-12 22:49 浏览 (2169) 回复 (2)

((Date[-1] 是什么意思

...实时交易时我们选择14:59分平仓。Begin ... If((Date[-1]!=InvalidInteger && Date!=Date[-1])||(Date[-1]==InvalidInteger && Date < CurrentDate)) { Sell(0,Close); BuyToCover(0,Close); }Else If(Date==CurrentDate && Time==0.1455 && CurrentTime>=0.1459...
jzhfj 发表时间: 2013-07-19 00:42 浏览 (4301) 回复 (3)

关于if( date!=date[1] )的缺陷!

if( date!=date[1] ) { SetGlobalVar(0,0); } 这个初始化是在集合竞价时候发生,还是在开盘时候发生?因为我曾经遇到过开盘平仓以后被{ SetGlobalVar(0,0); } 初始化的情况。
jsz123 发表时间: 2010-08-04 07:13 浏览 (5439) 回复 (6)

tb代码中的Date[-1]指什么?

联机手册中交易策略进阶中的以下代码是什么意思? If((Date[-1]!=InvalidInteger && Date!=Date[-1])||(Date[-1]==InvalidInteger && Date < CurrentDate))
tuwicn 发表时间: 2016-05-19 22:09 浏览 (1852) 回复 (3)

Date &lt; CurrentDate))

If((Date[-1]!=InvalidInteger && Date!=Date[-1])||(Date[-1]==InvalidInteger && Date < CurrentDate)) 能不能给我解释一下为什么Date < CurrentDate,不是应该相等吗?Date[-1]是指明天吗?
就是现在 发表时间: 2013-04-23 14:58 浏览 (2029) 回复 (0)

CurrentBar &gt; TodayBars and date[TodayBars] == date[TodayBars+1]

...TodayBars; Begin TodayBars = 0; While ( CurrentBar > TodayBars and date[TodayBars] == date[TodayBars+1] ) { TodayBars = TodayBars + 1; } Commentary("TodayBars = " + text(TodayBars)); End这段代码中CurrentBar > TodayBars and date[TodayBars] == date[TodayBars+1] 代表什么...
yangmingzi 发表时间: 2016-02-02 15:23 浏览 (2426) 回复 (1)

If(Date!=Date[1])其什么作用?

这句为了避免什么而写的?
speed_fj 发表时间: 2010-07-16 12:51 浏览 (3132) 回复 (4)

Date[-1]==InvalidInteger &amp;&amp; Date &lt; CurrentDate 是什么意思?

Date[-1]==InvalidInteger && Date < CurrentDate 是什么意思? 特别Date < CurrentDate 是什么意思?
kingwayzxm 发表时间: 2017-02-27 12:16 浏览 (1952) 回复 (2)

if( date!=date[1] )和If(BarStatus==0) 有什么区别

请问斑竹:if( date!=date[1] )和If(BarStatus==0) 有什么区别,使用环境有什么不同?谢谢!
lfxuezz 发表时间: 2010-12-06 21:00 浏览 (3712) 回复 (2)

TB32位Beta版 与 TB32位稳定版,Date[-1] 运行结果不一致

...在实时交易时我们选择14:59分平仓。 Begin ... If((Date[-1]!=InvalidInteger && Date!=Date[-1])||(Date[-1]==InvalidInteger && Date < CurrentDate)) { Sell(0,Close); BuyToCover(0,Close); }Else If(Date==CurrentDate && Time==0.1455 && CurrentTime>=0.145...
qml123 发表时间: 2015-04-16 19:38 浏览 (1652) 回复 (1)

看到If(CurrentBar==0 || Date!=Date[1])这个句子有点疑惑

看到一个条件句是If(CurrentBar==0 || Date!=Date[1]) 我理解是:如果是第一个BAR 或者 当前BAR不是第一BAR 很疑惑啊
kili21 发表时间: 2011-08-31 13:15 浏览 (2141) 回复 (2)

请问有没有更通俗的说法来理解后面这句话 :Date != Date[1]

请问有没有更通俗的说法来理解后面这句话 : Date != Date[1]有没有可以代替它们的其它方法?感谢
netlife 发表时间: 2019-11-04 23:51 浏览 (523) 回复 (1)

date[1]是指哪一天

假若date为20120409那date[1]是指哪一天
sniper007 发表时间: 2012-04-09 20:55 浏览 (2770) 回复 (7)

请问DATE&lt;&gt;REF(DATE,1)等这三行文化怎样改成开拓者的

请问DATEREF(DATE,1)等这三行文化怎样改成开拓者的 VALUEWHEN(DATEREF(DATE,1),REF(MA(C,20)); TRADE_AGAIN(1); TRADE_OTHER('AUTO');
tangyicheng 发表时间: 2018-03-11 15:14 浏览 (3) 回复 (0)

If(Date !=Date[1]) 这一句的意思是什么呢

意思是否是 当日期不等于昨天的日期吗(也就是日期等于当前日期吗)
tomridder716 发表时间: 2017-03-21 11:30 浏览 (1918) 回复 (1)