커뮤니티
문의 드립니다
2018-03-13 15:20:45
154
글번호 117348
5선이 10선과 20선을 돌파 했을때 4개 매수진입
1차청산=100틱
2차청산=200틱
3차청산=300틱
마지막 강제 청산은 Setstoptrailing (0.01,3.00,pointstop);
5선이 10선과 20선을 이탈 했을때 4개 매도진입
1차청산=100틱
2차청산=200틱
3차청산=300틱
마지막 강제 청산은 Setstoptrailing (0.01,3.00,pointstop);
이렇게 부탁좀 드리겠습니다
답변 1
예스스탁 예스스탁 답변
2018-03-14 09:12:05
안녕하세요
예스스탁입니다.
var1 = ma(C,10);
var2 = ma(C,20);
if MarketPosition <= 0 and crossup(var1,var2) Then
buy("b",OnClose,def,4);
if MarketPosition >= 0 and CrossDown(var1,var2) Then
sell("s",OnClose,def,4);
if MarketPosition == 1 then{
ExitLong("bp1",atlimit,EntryPrice+PriceScale*100,"",1,1);
ExitLong("bp2",atlimit,EntryPrice+PriceScale*200,"",1,1);
ExitLong("bp3",atlimit,EntryPrice+PriceScale*300,"",1,1);
if highest(H,BarsSinceEntry) >= EntryPrice+3 Then
ExitLong("bx",AtStop,highest(H,BarsSinceEntry)-0.01);
}
if MarketPosition == -1 then{
ExitShort("sp1",atlimit,EntryPrice-PriceScale*100,"",1,1);
ExitShort("sp2",atlimit,EntryPrice-PriceScale*200,"",1,1);
ExitShort("sp3",atlimit,EntryPrice-PriceScale*300,"",1,1);
if Lowest(L,BarsSinceEntry) <= EntryPrice-3 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)-0.01);
}
즐거운 하루되세요
> 영구없다 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 5선이 10선과 20선을 돌파 했을때 4개 매수진입
1차청산=100틱
2차청산=200틱
3차청산=300틱
마지막 강제 청산은 Setstoptrailing (0.01,3.00,pointstop);
5선이 10선과 20선을 이탈 했을때 4개 매도진입
1차청산=100틱
2차청산=200틱
3차청산=300틱
마지막 강제 청산은 Setstoptrailing (0.01,3.00,pointstop);
이렇게 부탁좀 드리겠습니다