커뮤니티
다음 수식좀 부탁드립니다.
2010-03-26 21:05:13
682
글번호 28945
안녕하세요
다음 수식좀 부탁드립니다.
==========================================================
포지션진입후에 먼저 0.5포인트 이상 손실발생하다가
다시 0.5포인트 이상 이익으로 돌아선 상태에서
또다시 0.3포인트 손실이 발생하면 그 위치에서 즉시 청산.
==========================================================
항상감사합니다.^^
답변 1
예스스탁 예스스탁 답변
2010-03-29 08:54:48
안녕하세요
예스스탁입니다.
if MarketPosition == 1 Then{
if C <= EntryPrice-0.5 and Condition1 ==False Then
Condition1 = true;
if condition1 == true and C >= EntryPrice+0.5 and Condition2 == false Then
Condition2 = True;
if Condition2 == true Then
exitlong("bx",AtStop,EntryPrice-0.3);
}
Else{
Condition1 = false;
Condition2 = false;
}
if MarketPosition == -1 Then{
if C >= EntryPrice+0.5 and Condition3 ==False Then
Condition3 = true;
if condition3 == true and C <= EntryPrice-0.5 and Condition4 == false Then
Condition4 = True;
if Condition4 == true Then
ExitShort("sx",AtStop,EntryPrice+0.3);
}
Else{
Condition3 = false;
Condition4 = false;
}
즐거운 하루되세요
> 수민아빠 님이 쓴 글입니다.
> 제목 : 다음 수식좀 부탁드립니다.
> 안녕하세요
다음 수식좀 부탁드립니다.
==========================================================
포지션진입후에 먼저 0.5포인트 이상 손실발생하다가
다시 0.5포인트 이상 이익으로 돌아선 상태에서
또다시 0.3포인트 손실이 발생하면 그 위치에서 즉시 청산.
==========================================================
항상감사합니다.^^