커뮤니티
문의드립니다..
2012-03-14 22:52:50
432
글번호 48954
항상 수고하십니다...
풀이해주신 수식을 잘 받아보았습니다//
여기서 한가지만 더 문의드립니다...
아래의 식은 진입가가 각각의 위아래선 사이에 있을때 상승이면 윗선에 청산..
하락이면 아랫선에 청산인데요...
조건을 부과하면..(예를 들면 ...
아래식 : if EntryPrice >= upLine5 and EntryPrice < upline4 Then
ExitLong("bx4",atlimit,upline4);
변경식 : if EntryPrice >= upLine5 and EntryPrice < upline4 and A>B Then
ExitLong("bx4",atlimit,upline3);
으로 하면 되는건가요?..
즉, 조건을 더 넣어 충족한다면 위로 한마디 더 가서 청산되는 식을 원합니다..
미리 감사드립니다...^^
------------------------------------------------------
안녕하세요
예스스탁입니다.
upline1
upline2
upline3
upline4
upline5
dnline5
dnline4
dnline3
dnline2
dnline1
각 라인의 값이 위와 같이 배치된것으로
간주하고 작성한 식입낟.
참고하시기 바랍니다.
var : upline1(0),upline2(0),upline3(0),upline4(0),upline5(0);
var : dnline1(0),dnline2(0),dnline3(0),dnline4(0),dnline5(0);
if MarketPosition == 1 Then{
if EntryPrice < upLine5 Then
ExitLong("bx5",atlimit,upline5);
if EntryPrice >= upLine5 and EntryPrice < upline4 Then
ExitLong("bx4",atlimit,upline4);
if EntryPrice >= upLine4 and EntryPrice < upline3 Then
ExitLong("bx3",atlimit,upline3);
if EntryPrice >= upLine3 and EntryPrice < upline2 Then
ExitLong("bx2",atlimit,upline2);
if EntryPrice >= upLine2 and EntryPrice < upline1 Then
ExitLong("bx1",atlimit,upline1);
}
if MarketPosition == -1 Then{
if EntryPrice > dnLine5 Then
ExitShort("sx5",atlimit,dnLine5);
if EntryPrice <= dnLine5 and EntryPrice > dnLine4 Then
ExitShort("sx4",atlimit,dnLine4);
if EntryPrice <= dnLine4 and EntryPrice > dnLine3 Then
ExitShort("sx3",atlimit,dnLine3);
if EntryPrice <= dnLine3 and EntryPrice > dnLine2 Then
ExitShort("sx2",atlimit,dnLine2);
if EntryPrice <= dnLine2 and EntryPrice > dnLine1 Then
ExitShort("sx1",atlimit,dnLine1);
}
즐거운 하루되세요
> 금여록 님이 쓴 글입니다.
> 제목 : 지지,저항선에 따른 청산신호
> 항상 감사드립니다...
문의할 내용은....
선물 현재가 기준으로 차트상에 그려놓은 위쪽선 5개 아랫선 5개가
있을때..선물을 매수하고 난후 선물이 상승하여 각각의 저항선을 만났을때 청산식,
(윗쪽선 5개중 선물현재가가 중간에 있을때 윗쪽으로 상승한다고 가정하여 근접한
윗쪽 저항선을 청산가격으로 봅니다)
반대로 선물을 매도하고 난후 선물이 하락하여 각각의 지지선을 만났을때의 청산식
을 부탁드립니다...예스트레이드를 공부하면서 막히는 것을 만나니 자주 문의하게
되네요..감사합니다..
답변 1
예스스탁 예스스탁 답변
2012-03-15 14:29:59
안녕하세요
예스스탁입니다.
예 말씀하신 내용처럼 작성하시면 추가로 조건이 더 만족해야
윗선 터치시 신호가 발생합니다.
if EntryPrice >= upLine5 and EntryPrice < upline4 and A>B Then
ExitLong("bx4",atlimit,upline3);
즐거운 하루되세요
> 금여록 님이 쓴 글입니다.
> 제목 : 문의드립니다..
>
항상 수고하십니다...
풀이해주신 수식을 잘 받아보았습니다//
여기서 한가지만 더 문의드립니다...
아래의 식은 진입가가 각각의 위아래선 사이에 있을때 상승이면 윗선에 청산..
하락이면 아랫선에 청산인데요...
조건을 부과하면..(예를 들면 ...
아래식 : if EntryPrice >= upLine5 and EntryPrice < upline4 Then
ExitLong("bx4",atlimit,upline4);
변경식 : if EntryPrice >= upLine5 and EntryPrice < upline4 and A>B Then
ExitLong("bx4",atlimit,upline3);
으로 하면 되는건가요?..
즉, 조건을 더 넣어 충족한다면 위로 한마디 더 가서 청산되는 식을 원합니다..
미리 감사드립니다...^^
------------------------------------------------------
안녕하세요
예스스탁입니다.
upline1
upline2
upline3
upline4
upline5
dnline5
dnline4
dnline3
dnline2
dnline1
각 라인의 값이 위와 같이 배치된것으로
간주하고 작성한 식입낟.
참고하시기 바랍니다.
var : upline1(0),upline2(0),upline3(0),upline4(0),upline5(0);
var : dnline1(0),dnline2(0),dnline3(0),dnline4(0),dnline5(0);
if MarketPosition == 1 Then{
if EntryPrice < upLine5 Then
ExitLong("bx5",atlimit,upline5);
if EntryPrice >= upLine5 and EntryPrice < upline4 Then
ExitLong("bx4",atlimit,upline4);
if EntryPrice >= upLine4 and EntryPrice < upline3 Then
ExitLong("bx3",atlimit,upline3);
if EntryPrice >= upLine3 and EntryPrice < upline2 Then
ExitLong("bx2",atlimit,upline2);
if EntryPrice >= upLine2 and EntryPrice < upline1 Then
ExitLong("bx1",atlimit,upline1);
}
if MarketPosition == -1 Then{
if EntryPrice > dnLine5 Then
ExitShort("sx5",atlimit,dnLine5);
if EntryPrice <= dnLine5 and EntryPrice > dnLine4 Then
ExitShort("sx4",atlimit,dnLine4);
if EntryPrice <= dnLine4 and EntryPrice > dnLine3 Then
ExitShort("sx3",atlimit,dnLine3);
if EntryPrice <= dnLine3 and EntryPrice > dnLine2 Then
ExitShort("sx2",atlimit,dnLine2);
if EntryPrice <= dnLine2 and EntryPrice > dnLine1 Then
ExitShort("sx1",atlimit,dnLine1);
}
즐거운 하루되세요
> 금여록 님이 쓴 글입니다.
> 제목 : 지지,저항선에 따른 청산신호
> 항상 감사드립니다...
문의할 내용은....
선물 현재가 기준으로 차트상에 그려놓은 위쪽선 5개 아랫선 5개가
있을때..선물을 매수하고 난후 선물이 상승하여 각각의 저항선을 만났을때 청산식,
(윗쪽선 5개중 선물현재가가 중간에 있을때 윗쪽으로 상승한다고 가정하여 근접한
윗쪽 저항선을 청산가격으로 봅니다)
반대로 선물을 매도하고 난후 선물이 하락하여 각각의 지지선을 만났을때의 청산식
을 부탁드립니다...예스트레이드를 공부하면서 막히는 것을 만나니 자주 문의하게
되네요..감사합니다..
이전글