커뮤니티

문의드립니다.

프로필 이미지
남산
2026-07-30 15:09:07
29
글번호 233036
답변완료

안녕하세요

이평선기준 진입수식

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

안녕하세요 예스스탁입니다. 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 then { exitlong("b2-1",OnClose,def,"b2"); } if crossDown(mav300,mav1200) Then cc61 = c; if crossuP(mav300,mav1200) Then cc62 = c; if cc61 > 0 amd cc62 > 0 and cc61 < cc62 and crossDown(mav150,mav300) Then { exitlong("b2-2",OnClose,def,"b2"); } 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"); 즐거운 하루되세요