請教:如圖,假如當前持有多單,我想在5日均線彎頭向下(ma5<ref(ma5,1) and ema5<ref(ema5,1) )的時候,
close- 開倉價位<=5*mindiff 的時候平倉,且反手。用IF語句
此主題相關圖片如下:4.jpg
if holding>0 and ma5<ref(ma5,1) and ema5<ref(ema5,1) and c-enterprice>5*mindiff then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
variable:hh=0;
if 開倉條件 then begin
開倉語句;
hh:=h;
end
if h>hh then hh:=h;
這個hh就是a點