커뮤니티
수식문의 드립니다..
2016-10-24 10:16:00
100
글번호 103230
수식에 추가 부탁드릴께요 선언문은 제외했습니다
if (mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
-----------------------------------------------------------
나름 추가매수를
if MarketPosition == 1 and MaxEntries == 1 Then
buy("추매",atlimit,EntryPrice*0.95); #피라미딩 다른진입신호 허용 설정해야됨
이렇게 넣었는데 순서가 잘못되어서인지 추가매수가 될때도 있고 안될때도 있고 그러네요
"b1" 매수후 또 maV3*1.02 에 크로스다운이 되면 "b2"로 추가 매수 .
손실 -5%가 됬을때 추가매수
당일 "절반" "3일매도" "5일매도" "20일손절" 이 나오면 재매수 및 추가매수 금지.
수식 추가 부탁드립니다.
행복한 하루 보내시고 수고하세요
답변 3
예스스탁 예스스탁 답변
2016-10-24 15:24:22
안녕하세요
예스스탁입니다.
if MarketPosition == 0 and
(mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
if CurrentCon tracts < CurrentContracts[1] Then
Condition1 = true;
if MaxEntries < 3 and Condition1 == false L > maV3*1.02 Then
buy("b2",atlimit,maV3*1.02 );
if MaxEntries < 3 and Condition1 == false Then
buy("추매",atlimit,EntryPrice*0.95);
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
else{
Condition1 = false;
}
즐거운 하루되세요
> 하루4% 님이 쓴 글입니다.
> 제목 : 수식문의 드립니다..
> 수식에 추가 부탁드릴께요 선언문은 제외했습니다
if (mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
-----------------------------------------------------------
나름 추가매수를
if MarketPosition == 1 and MaxEntries == 1 Then
buy("추매",atlimit,EntryPrice*0.95); #피라미딩 다른진입신호 허용 설정해야됨
이렇게 넣었는데 순서가 잘못되어서인지 추가매수가 될때도 있고 안될때도 있고 그러네요
"b1" 매수후 또 maV3*1.02 에 크로스다운이 되면 "b2"로 추가 매수 .
손실 -5%가 됬을때 추가매수
당일 "절반" "3일매도" "5일매도" "20일손절" 이 나오면 재매수 및 추가매수 금지.
수식 추가 부탁드립니다.
행복한 하루 보내시고 수고하세요
하루4%
2016-10-24 17:01:31
if CurrentCon tracts 띠워주셨는데 붙이는거 맞죠?
그리고 이줄에서 if MaxEntries < 3 and Condition1 == false L > maV3*1.02 Then
첨부파일에서 L부분에 에러가 뜹니다.
수고하세요
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식문의 드립니다..
> 안녕하세요
예스스탁입니다.
if MarketPosition == 0 and
(mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
if CurrentCon tracts < CurrentContracts[1] Then
Condition1 = true;
if MaxEntries < 3 and Condition1 == false L > maV3*1.02 Then
buy("b2",atlimit,maV3*1.02 );
if MaxEntries < 3 and Condition1 == false Then
buy("추매",atlimit,EntryPrice*0.95);
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
else{
Condition1 = false;
}
즐거운 하루되세요
> 하루4% 님이 쓴 글입니다.
> 제목 : 수식문의 드립니다..
> 수식에 추가 부탁드릴께요 선언문은 제외했습니다
if (mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
-----------------------------------------------------------
나름 추가매수를
if MarketPosition == 1 and MaxEntries == 1 Then
buy("추매",atlimit,EntryPrice*0.95); #피라미딩 다른진입신호 허용 설정해야됨
이렇게 넣었는데 순서가 잘못되어서인지 추가매수가 될때도 있고 안될때도 있고 그러네요
"b1" 매수후 또 maV3*1.02 에 크로스다운이 되면 "b2"로 추가 매수 .
손실 -5%가 됬을때 추가매수
당일 "절반" "3일매도" "5일매도" "20일손절" 이 나오면 재매수 및 추가매수 금지.
수식 추가 부탁드립니다.
행복한 하루 보내시고 수고하세요
예스스탁 예스스탁 답변
2016-10-24 17:15:48
안녕하세요
예스스탁입니다.
if MarketPosition == 0 and
(mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
if CurrentContracts < CurrentContracts[1] Then
Condition1 = true;
if MaxEntries < 3 and Condition1 == false and L > maV3*1.02 Then
buy("b2",atlimit,maV3*1.02 );
if MaxEntries < 3 and Condition1 == false Then
buy("추매",atlimit,EntryPrice*0.95);
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
else{
Condition1 = false;
}
즐거운 하루되세요
> 하루4% 님이 쓴 글입니다.
> 제목 : Re : Re : 수식문의 드립니다..
> if CurrentCon tracts 띠워주셨는데 붙이는거 맞죠?
그리고 이줄에서 if MaxEntries < 3 and Condition1 == false L > maV3*1.02 Then
첨부파일에서 L부분에 에러가 뜹니다.
수고하세요
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식문의 드립니다..
> 안녕하세요
예스스탁입니다.
if MarketPosition == 0 and
(mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
if CurrentCon tracts < CurrentContracts[1] Then
Condition1 = true;
if MaxEntries < 3 and Condition1 == false L > maV3*1.02 Then
buy("b2",atlimit,maV3*1.02 );
if MaxEntries < 3 and Condition1 == false Then
buy("추매",atlimit,EntryPrice*0.95);
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
else{
Condition1 = false;
}
즐거운 하루되세요
> 하루4% 님이 쓴 글입니다.
> 제목 : 수식문의 드립니다..
> 수식에 추가 부탁드릴께요 선언문은 제외했습니다
if (mav3*1.14 <= mav2 or maV31*1.14 <= maV21)
and maV3*0.99 < L
and maV1 < mav11
and ((mav2*0.995 <= mav1 and mav2*1.075 >= mav1) or (maV21*0.995 <= maV11 and maV21*1.075 >= maV11)
or (mav11 > mav21 and maV2 >= maV1))
and !(maV21 > mav2 and maV22 > mav21) and LL[1] > mav6
and L > mav9*1.002 Then
buy("b1",atlimit,mav9*1.002);
if MarketPosition == 1 Then{
#5% 수익시 절반매도
ExitLong("절반",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.5),1);
#10% 수익시 나머지수량 전량매도
ExitLong("전량",atlimit,EntryPrice*1.10);
#-1% 아래에서 상승해 위로 터치하면 매도
if H < mav7 Then
ExitLong("3일매도",atlimit,mav7);
if H < mav1*0.995 Then
ExitLong("5일매도",atlimit,mav1*0.995);
if L > mav3*0.98 Then
ExitLong("20일손절",AtStop,mav3*0.98);
}
-----------------------------------------------------------
나름 추가매수를
if MarketPosition == 1 and MaxEntries == 1 Then
buy("추매",atlimit,EntryPrice*0.95); #피라미딩 다른진입신호 허용 설정해야됨
이렇게 넣었는데 순서가 잘못되어서인지 추가매수가 될때도 있고 안될때도 있고 그러네요
"b1" 매수후 또 maV3*1.02 에 크로스다운이 되면 "b2"로 추가 매수 .
손실 -5%가 됬을때 추가매수
당일 "절반" "3일매도" "5일매도" "20일손절" 이 나오면 재매수 및 추가매수 금지.
수식 추가 부탁드립니다.
행복한 하루 보내시고 수고하세요
다음글
이전글