日盤和夜盤的最低價(jià)和最高價(jià)如何得到?
作者:開(kāi)拓者 TB 來(lái)源:cxh99.com 發(fā)布時(shí)間:2019年01月07日
-
咨詢內(nèi)容:
想劃線,分別畫出日盤和夜盤的最低價(jià)和最高價(jià)。如何取得畫出來(lái)?
?
?來(lái)源:CXH99.COM
-
TB技術(shù)人員:
- Vars
- ? ? ? ? NumericSeries dayhigh;
- ? ? ? ? NumericSeries daylow;
- ? ? ? ? NumericSeries Nhigh;
- ? ? ? ? NumericSeries Nlow;
- Begin
- ? ? ? ? if(barstatus==0 || time==0.09??)
- ? ? ? ? {
- ? ? ? ? ? ? ? ? dayhigh = high;
- ? ? ? ? ? ? ? ? daylow = low;
- ? ? ? ? }else if(time >0.09 && time<=0.15)
- ? ? ? ? {
- ? ? ? ? ? ? ? ? dayhigh = Max(dayhigh,high);
- ? ? ? ? ? ? ? ? daylow = min(daylow,low);
- ? ? ? ? }
- ? ? ? ? if(barstatus ==0 || time==0.21)
- ? ? ? ? {
- ? ? ? ? ? ? ? ? Nhigh = high;
- ? ? ? ? ? ? ? ? Nlow = low;
- ? ? ? ? }else if(time>0.21 || time<0.08)
- ? ? ? ? {
- ? ? ? ? ? ? ? ? Nhigh = Max(Nhigh,high);
- ? ? ? ? ? ? ? ? Nlow = Min(Nlow,low);
- ? ? ? ? }
- ? ? ? ? if(time>=0.09 && time<=0.15)
- ? ? ? ? {
- ? ? ? ? ? ? ? ? PlotNumeric("dayhigh",dayhigh);
- ? ? ? ? ? ? ? ? PlotNumeric("daylow",daylow);
- ? ? ? ? }
- ? ? ? ? if(time>=0.21 || time<0.08)
- ? ? ? ? {
- ? ? ? ? ? ? ? ? PlotNumeric("Nhigh",Nhigh);
- ? ? ? ? ? ? ? ? PlotNumeric("Nlow",Nlow);
- ? ? ? ? }
- end
復(fù)制代碼