|
我想寫在XAverage(close,144),XAverage(close,169),XAverage(close,288),XAverage(close,388)的均線以上用XAverage(close,5)cross over XAverage(close,20)作多,XAverage(close,5) cross below XAverage(close,20)平倉不作多都失敗,求幫忙
if XAverage(close,144)>XAverage(close,144)
and XAverage(close,169)>XAverage(close,169)and XAverage(close,288)>XAverage(close,288)
and XAverage(close,388)>XAverage(close,388)
//and XAverage(close,5)cross over XAverage(close,20)
and close>XAverage(close,20)
then begin buy("B+") next bar at market;
if XAverage(close,144)>XAverage(close,144)
and XAverage(close,169)>XAverage(close,169)and XAverage(close,288)>XAverage(close,288)
and XAverage(close,388)>XAverage(close,388)
//and XAverage(close,5) cross below XAverage(close,20)
and close<XAverage(close,20)
then sell("B-") next bar at market;
END;
|
|