|
1. inputs 的2000, 0500
建議改用Var,自已試參數時可暫時用inputs
2. 2000 ~ 0500
屬於跨日(兩個時段區塊). 2000<=time or time <=0500
眼熟!!?? 原來半年前,你問過了...
http://www.coco-in.net/thread-147127-1-1.html
3. MC未提供區段內的高低點---自行紀錄
20:00-----23:59,00:00----05:00
K線時間含20:00時,作初始化 sect_hi 跟sect_lo
區間時間內
如果sect_hi 小於 high, 設sect_hi 為 high
如果sect_lo 大於 low, 設sect_lo 為 low
// section time start and end
inputs: Sect_Time_S(2000);
inputs: Sect_Time_E(0500);
// section High and Low
Var:Sect_Hi(High);
Var:Sect_Lo(Low);
If Sect_Time_S <= time or time <= Sect_Time_E then begin
If time[1] < Sect_Time_S and Sect_Time_S <= time[0] then begin
Sect_Hi = high;
Sect_Lo = Low;
End;
if Sect_Hi < high then Sect_Hi = high;
if Sect_Lo > low then Sect_Lo = low;
End;
//plot1(Sect_Hi, "Hi");
//plot2(Sect_Lo, "Lo");
|
|