移動式停利 : 紅K站上20ma買進後,創新高後回檔20% 停利
指標腳本
input:ratio(20);
condition1=false;
if close > open and close cross over average(c,20)
then condition1=true;
value1=barslast(condition1);
value2=highest(high,value1);
if close*(1+ratio/100)<value2
then condition2=true
else condition2=false;
value3=barslast(condition2);
if value3 cross under value1 then plot1(close,"移動式停利");
我把XQ範本改寫成指標腳本,跑不出來,請問要如何修改 ?
6 評論