前幾天XQ臉書有示範選股語法-- N日內漲幅低於15%
程式碼如下
//----- 區間漲幅 -----
input:days(60,"天數");
input:percent(15,"漲幅上限");
if close[ days - 1 ] <> 0 and close > close[ days - 1 ]
then value10 = ( close - close[ days - 1] ) / close[ days - 1 ] * 100;
if value10 < percent
then ret = 1;
SetOutputName1("區間漲幅");
OutputField1(value10);
邏輯上不錯用
就拿來修改
//----- 區間漲幅 -----
input:days(10,"天數");
input:percent(10,"漲幅下限");
if close[ days - 1 ] <> 0 and close > close[ days - 1 ]
then value10 = ( close - close[ days - 1] ) / close[ days - 1 ] * 100;
if value10 > percent
then ret = 1;
SetOutputName1("區間漲幅");
OutputField1(value10);
---10天內漲幅〝下限〞10%
但選股結果是沒半檔
請問應該要怎麼修改才能找出爛股票但短線噴出的空股?



7 評論