老師, 請問在程式之中(不是肉眼看自選報價表), 有何方法/函数达方法可实時讀取某只股票(每只也有代碼的)现價C, H, L,之类的数据呢 谢谢 |
用callstock
比如callstock('000001',vtclose,1);这个就是获取上证指数的1分钟周期的收盘价
你仔细的看下该函数的函数说明,
c1:=callstock('if00',vtclose,1);
drawline(c1<refx(c1,1),c1,c1>=ref(c1,1),c1,0),colorred;
drawline(c1>refx(c1,1),c1,c1<=ref(c1,1),c1,0),colorblue;
//drawline(c1<refx(c1,1) and c1<ref(c1,1),c1,c1>ref(c1,1),c1,0),colorred;
drawline(c1<refx(c1,1) and c1>ref(c1,1),c1,c1>ref(c1,1),c1,0),colorred;
drawline(c1=refx(c1,1),c1,c1=ref(c1,1),c1,0),colorwhite;
drawline(c1>refx(c1,1) and c1<ref(c1,1),c1,c1<=ref(c1,1),c1,0),colorblue;
drawline(c1=refx(c1,1) and c1=ref(c1,1),c1,c1=ref(c1,1),c1,0),colorwhite;
红色上涨蓝色下跌白色不变