커뮤니티
문의
2009-06-09 12:39:21
627
글번호 22680
안녕하세요?
다음식과 같이 분할진입하는경우
If CurrentEntries == 0 and ExitDate(1) != date
and MarketPosition==0 and c==highest(c,dayindex) then
Buy("b1",OnClose,def,VAR2*0.05);
If CurrentEntries == 1 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh then
Buy("b2",OnClose,def,VAR2*0.05);
If CurrentEntries == 2 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh then
Buy("b3",OnClose,def,VAR2*0.05);
If CurrentEntries == 3 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh then
Buy("b4",OnClose,def,VAR2*0.05);
두번째 진입은 첫진입후 최소 봉 5개 경과한후 진입하고
세번째진입은 두번째 진입후 최소 봉 5개가 경과한후 진입하고
네번째 진입은 세번째 진입후 최소 봉 5개가 경과한후 진입하고자 합니다.
식 수정 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2009-06-09 14:21:59
안녕하세요
에스스탁입니다.
If CurrentEntries == 0 and ExitDate(1) != date
and MarketPosition==0 and c==highest(c,dayindex) then
Buy("b1",OnClose,def,VAR2*0.05);
if CurrentEntries > CurrentEntries[1] Then
var1 = index;
If CurrentEntries == 1 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh and index > var1+5 then
Buy("b2",OnClose,def,VAR2*0.05);
If CurrentEntries == 2 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh and index > var1+5 then
Buy("b3",OnClose,def,VAR2*0.05);
If CurrentEntries == 3 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh and index > var1+5 then
Buy("b4",OnClose,def,VAR2*0.05);
즐거운 하루되세요
> 송아지 님이 쓴 글입니다.
> 제목 : 문의
> 안녕하세요?
다음식과 같이 분할진입하는경우
If CurrentEntries == 0 and ExitDate(1) != date
and MarketPosition==0 and c==highest(c,dayindex) then
Buy("b1",OnClose,def,VAR2*0.05);
If CurrentEntries == 1 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh then
Buy("b2",OnClose,def,VAR2*0.05);
If CurrentEntries == 2 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh then
Buy("b3",OnClose,def,VAR2*0.05);
If CurrentEntries == 3 and ExitDate(1) != date
and MarketPosition==1 and c==dayhigh then
Buy("b4",OnClose,def,VAR2*0.05);
두번째 진입은 첫진입후 최소 봉 5개 경과한후 진입하고
세번째진입은 두번째 진입후 최소 봉 5개가 경과한후 진입하고
네번째 진입은 세번째 진입후 최소 봉 5개가 경과한후 진입하고자 합니다.
식 수정 부탁드립니다.
다음글
이전글