XS 第1堂課筆記 —量價選股
1 min readJan 19, 2019
--
連三紅 /量增
value1=c>o;
condition1=trueall(value1,3);
value2=v>v[1];
condition2=trueall(value2,3)
if condition1 and condition2 then ret=1;
長紅/長黑
用均量的x倍比較客觀,而不是用x%
value1=absvalue(c-o);
value2=average(value1,60);
condition1=value1>value2*2;
爆量
用x倍60日均量或成交金額的x倍
value1=average(v,60);
condition1=v>value1*2;
成交金額=(((H+L)+2C) /4 )*V ;
右上角
value1=highest(h,100);
value2=lowest(l,100);
value3=value1*0.9+value2*0.1;
if c>value3 then ret=1;
右下角
value1=highest(h,100);
value2=lowest(l,100);
value3=value1*0.1+value2*0.9;
if c<value3 then ret=1;
讀取筆數
需大於最大使用資料
例:程式內有使用到100均量,則讀取筆數至少要100
或是用setTotalBar (待續)