커뮤니티
문의드립니다.
안녕하세요
이평선기준 진입수식
mav7200 > mav4800 and mav4800 > mav2400 and mav2400 < mav1200 진입이후
청산 수식( b2-2)을 필요합니다.
var : cc61(0),cc62(0);
if MarketPosition == 1 Then
if mav4800 < mav2400 and mav2400[1] > mav2400 and mav1200[1] > mav1200 and mav600[1] > mav600 and mav300[1] > mav300 and mav300[1] > mav300 and mav150[1] > mav150 and
mav2400 > mav150 and mav2400 > mav300 and mav1200 > mav600 and mav600 > mav300 and mav300 > mav150 hen
{
exitlong("b2-1",OnClose,def,"b2");
}
Else if Index == crossDown(mav300,mav1200) Then
cc61 = c;
if Index == crossuP(mav300,mav1200) Then
cc62 = c;
if cc61 < cc62 and crossDown(mav150,mav300) Then
{
exitlong("b2-2",OnClose,def,"b2");
}
Else
{
if mav7200 > mav4800 and mav4800 > mav2400 and mav2400 > mav1200 and mav7200[1] > mav7200 and mav4800[1] > mav4800 and mav2400[1] < mav2400 and mav1200[1] > mav1200 and mav600[1] > mav600 and mav300[1] > mav300 and mav150[1] > mav150 Then
exitlong("b2-5",OnClose,def,"b2");
}
위 수식에서 매수진입후 b2-2에 의거 진입 청산을 하려고 합니다.
매수진입후 crossDown(mav300,mav1200) < crossuP(mav300,mav1200) and crossDown(mav150,mav300)에 진입청산하고자 합니다
혹시 진입후 범위가 필요하면 범위는
mav7200 > mav4800 and mav4800 > mav2400 and mav2400 < mav1200 로 하겠습니다.
현재 수식이 맞아요.
수식이 문제가 있으면 수정 부탁합니다.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2026-07-30 16:25:01