下面是從 警示 中拷貝出來的程式:
condition1=false;
condition2=false;
condition3=false;
if close>100 and
close<average(close,10) and
volume>average(volume, 5)*3 and
average(volume, 5)>500
then condition1=true;
Value5 = GetQuote("當日漲幅%");
if value5<0
then condition2=true;
Value6 = GetField("融券餘額張數");
if value6>0
then condition3=true;
if condition1 and condition2 and condition3
then ret=1;
請問在策略雷達中,若是將指定頻率設定為15分鐘,則程式每15分鐘跑一次,程式中的close Volume 漲幅 是否就是15分鐘K棒的收盤,成交量與漲幅呢?若指定頻率設定為30或60分鐘是否以此類推?
若我在設定頻率15分鐘,要累計當天成交量超過3000張以上之股票通知我,上面程式應該如何寫?累計當天漲幅超過5%以上之股票通知我上面程式應該如何寫?
5 評論