hi, 想請教, 如果我想於實時操作中, 想根據當天open的位置決定進出信號, 那請問用, 應如何寫? 我於backtest中, 為了不受time interval影嚮, 我用了TimeFrameSet(inDaily)去抓當天的open, 之後再用TimeFrameExpand把數據放於一變量中, 那再使用, 沒有問題, 但這方法於實時中, 好像不太可行....因為於實時中, "當天"還沒走完, 是沒有"當天"的day open.......
hi, i would like to know, if my signals are based on the day's open, then how could i define it? I could do it in backtest, with using TimeFrameSet(inDaily) to capture the day's open, then using TimeFrameExpand to store the data, and make used of it without any problem, even in different time interval(say, 1min to 60min....etc). However, I don't think it could work in real time trading, as I believe in RT, the "day" is not yet finished thus it is not able to define it in this way....any idea?
謝謝!!
|