커뮤니티
식 질문입니다
2012-04-20 11:47:50
407
글번호 50283
피라미딩 진입에서
조건만족후 첫 진입가격 대비
20% 상승시 추가 1계약 추가진입
15% 상승시 추가 1계약 추가진입
10% 상승시 추가 1계약 추가진입
5% 상승시 추가 1계약 추가진입
이후는 계속
3% 상승시 추가진입
입니다
답변 1
예스스탁 예스스탁 답변
2012-04-20 13:35:33
안녕하세요
예스스탁입니다.
if MarketPosition == 0 and dayindex == 0 Then
buy("b1",OnClose,def,1);
if MarketPosition == 1 Then{
if CurrentEntries == 1 and C >= EntryPrice*1.20 Then{
buy("b2",OnClose,def,1);
}
if CurrentEntries == 2 and C >= EntryPrice*1.15 Then{
buy("b3",OnClose,def,1);
}
if CurrentEntries == 3 and C >= EntryPrice*1.10 Then{
buy("b4",OnClose,def,1);
}
if CurrentEntries == 4 and C >= EntryPrice*1.5 Then{
buy("b5",OnClose,def,1);
}
if CurrentEntries >= 5 and C >= EntryPrice*1.03 Then{
buy("b6",OnClose,def,1);
}
}
각%가 직전추가진입가격이면 아래와 같습니다.
var : 추가진입가격(0);
if MarketPosition == 0 and 조건 Then
buy("b1",OnClose,def,1);
if MarketPosition == 1 Then{
if CurrentEntries == 1 and C >= EntryPrice*1.2 Then{
buy("b2",OnClose,def,1);
추가진입가격 = C;
}
if CurrentEntries == 2 and C >= 추가진입가격*1.15 Then{
buy("b3",OnClose,def,1);
추가진입가격 = C;
}
if CurrentEntries == 3 and C >= 추가진입가격*1.10 Then{
buy("b4",OnClose,def,1);
추가진입가격 = C;
}
if CurrentEntries == 4 and C >= 추가진입가격*1.05 Then{
buy("b5",OnClose,def,1);
추가진입가격 = C;
}
if CurrentEntries >= 5 and C >= 추가진입가격*1.03 Then{
buy("b6",OnClose,def,1);
추가진입가격 = C;
}
}
피라미딩은 모두 모든진입신호 허용으로 하시면 됩니다.
즐거운 하루되세요
> 파인애플 님이 쓴 글입니다.
> 제목 : 식 질문입니다
> 피라미딩 진입에서
조건만족후 첫 진입가격 대비
20% 상승시 추가 1계약 추가진입
15% 상승시 추가 1계약 추가진입
10% 상승시 추가 1계약 추가진입
5% 상승시 추가 1계약 추가진입
이후는 계속
3% 상승시 추가진입
입니다
다음글
이전글