커뮤니티
문의드립니다.
2026-05-13 20:08:36
85
글번호 232030
안녕하세요.
if crossDown(mav4800,mav7200) Then
{
ii81=Index;
}
if crossDown(mav2400,mav4800) Then
{
ii82=Index;
}
if ii81 > 0 and Index >= ii81+bb81 and ii82 > 0 and Index >= ii82+bb82 and
mav7400 < mav7300 and mav7200 > mav4800 and mav4800 > mav2400 and mav7400 < mav2400 and
mav780[6] < mav780 Then
{
if CurrentContracts < 1 Then
buy("b8",OnClose,def,1);
}
위 수식에서 mav7200 > mav4800 구간에서 이평선 780이 상승할 때 진입 하고자 합니다.
여기서 한번만 할 수 있도록 수식을 변경하여 주세요.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2026-05-14 12:39:46
안녕하세요
예스스탁입니다.
var : BuyEntry(False);
if crossDown(mav4800,mav7200) Then
{
ii81=Index;
BuyEntry = true;
}
if crossDown(mav2400,mav4800) Then
{
ii82=Index;
}
if ii81 > 0 and Index >= ii81+bb81 and ii82 > 0 and Index >= ii82+bb82 and
mav7400 < mav7300 and mav7200 > mav4800 and mav4800 > mav2400 and mav7400 < mav2400 and
mav780[6] < mav780 and
BuyEntry == true Then
{
BuyEntry = False;
if CurrentContracts < 1 Then
buy("b8",OnClose,def,1);
}
즐거운 하루되세요
다음글
이전글