커뮤니티
종가매매수정
2019-08-23 11:32:24
173
글번호 131401
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice*(1+2/100) AND h == HIGHEST(h,BarsSinceEntry) Then
ExitLong("bx,2",AtStop,highest(H,BarsSinceEntry)*(1-1/100),"",20,1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice*(1-2/100) and l == lowest(L,BarsSinceEntry) Then
ExitShort("sx,2",AtStop,Lowest(L,BarsSinceEntry)*(1+1/100),"",20,1);
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice*(1+5/100) AND h == HIGHEST(h,BarsSinceEntry) Then
ExitLong("bx,5",AtStop,highest(H,BarsSinceEntry)*(1-1/100),"",Floor(CurrentContracts*1),1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice*(1-5/100) and l == lowest(L,BarsSinceEntry)Then
ExitShort("sx,5",AtStop,Lowest(L,BarsSinceEntry)*(1+1/100),"",Floor(CurrentContracts*1),1);
위두식을 (분)봉종가 매매수식으로 부탁합니다.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2019-08-23 13:36:49
안녕하세요
예스스탁입니다.
if MarketPosition == 1 and
BarsSinceEntry > 1 and
highest(H,BarsSinceEntry)[1] >= EntryPrice*(1+2/100) AND
h[1] == HIGHEST(h,BarsSinceEntry)[1] and
C <= highest(H,BarsSinceEntry)*(1-1/100) Then
ExitLong("bx,2",OnClose,def,"",20,1);
if MarketPosition == -1 and
BarsSinceEntry > 1 and
Lowest(L,BarsSinceEntry)[1] <= EntryPrice*(1-2/100) and
l[1]== lowest(L,BarsSinceEntry)[1] and
C >= Lowest(L,BarsSinceEntry)*(1+1/100) Then
ExitShort("sx,2",OnClose,def,"",20,1);
if MarketPosition == 1 and
BarsSinceEntry > 1 and
highest(H,BarsSinceEntry)[1] >= EntryPrice*(1+5/100) AND
h[1] == HIGHEST(h,BarsSinceEntry)[1] and
C <= highest(H,BarsSinceEntry)*(1-1/100) Then
ExitLong("bx,5",OnClose,def,"",Floor(CurrentContracts*1),1);
if MarketPosition == -1 and
BarsSinceEntry > 1 and
Lowest(L,BarsSinceEntry)[1] <= EntryPrice*(1-5/100) and
l[1] == lowest(L,BarsSinceEntry)[1] and
C >= Lowest(L,BarsSinceEntry)*(1+1/100) Then
ExitShort("sx,5",OnClose,def,"",Floor(CurrentContracts*1),1);
즐거운 하루되세요
> 큰바위얼굴 님이 쓴 글입니다.
> 제목 : 종가매매수정
> if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice*(1+2/100) AND h == HIGHEST(h,BarsSinceEntry) Then
ExitLong("bx,2",AtStop,highest(H,BarsSinceEntry)*(1-1/100),"",20,1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice*(1-2/100) and l == lowest(L,BarsSinceEntry) Then
ExitShort("sx,2",AtStop,Lowest(L,BarsSinceEntry)*(1+1/100),"",20,1);
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice*(1+5/100) AND h == HIGHEST(h,BarsSinceEntry) Then
ExitLong("bx,5",AtStop,highest(H,BarsSinceEntry)*(1-1/100),"",Floor(CurrentContracts*1),1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice*(1-5/100) and l == lowest(L,BarsSinceEntry)Then
ExitShort("sx,5",AtStop,Lowest(L,BarsSinceEntry)*(1+1/100),"",Floor(CurrentContracts*1),1);
위두식을 (분)봉종가 매매수식으로 부탁합니다.
감사합니다.
다음글