커뮤니티

시스템식 부탁드려요....

프로필 이미지
왈라스
2023-09-21 11:16:22
738
글번호 172628
답변완료
나스닥 선물 매매합니다. <조건> 1.200선/ 30선 이평크로스 신호발생 2.매수진입가 : 업크로스후 30이평선 +5틱에 진입 매도진입가 : 다운크로스후 30이평선 -5틱에 진입 단가 올때 까지 신호유지, 진입가유지 하다가 반대신호 나오면 신호 없앤다... 3.익절은 40틱 , 물타기 는 40틱에 2개,손절은 60틱 , 4.매매시간이후 80틱 익절이면 진입금지 하고 시스템 종료한다. 신호유지,진입가 유지가 중요한데 잘 작동 되지 않아서 문의 드립니다. 진입가는 신호 발생 햇을때의 30이평선이며 이후 반대신호 나올때까지 변하면 안됩니다. 미리 감사드립니다.
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2023-09-21 15:47:31

안녕하세요 예스스탁입니다. 4번은 정확한 내용이 파악되지 않습니다. 해당 내용은 제외하고 작성해 드립니다. var : T(0); var1 = ma(C,30); Var2 = ma(C,200); if CrossUp(var1,Var2) Then { value1 = 1; value2 = var1+PriceScale*5; } if CrossDown(var1,Var2) Then { value1 = -1; value2 = var1-PriceScale*5; } if MarketPosition <= 0 and value1 == 1 Then Buy("b1",AtStop,value1,1); if MarketPosition >= 0 and value1 == -1 Then Sell("s1",AtStop,value1,1); if MarketPosition == 1 Then { if MaxEntries == 1 Then Buy("b2",AtLimit,EntryPrice-PriceScale*40,2); ExitLong("bp",AtLimit,avgEntryPrice+PriceScale*40); ExitLong("bl",AtStop,avgEntryPrice-PriceScale*60); } if MarketPosition == -1 Then { if MaxEntries == 1 Then Sell("s2",AtLimit,EntryPrice+PriceScale*40,2); ExitShort("sp",AtLimit,avgEntryPrice-PriceScale*40); ExitShort("sl",AtStop,avgEntryPrice+PriceScale*60); } 즐거운 하루되세요 > 왈라스 님이 쓴 글입니다. > 제목 : 시스템식 부탁드려요.... > 나스닥 선물 매매합니다. <조건> 1.200선/ 30선 이평크로스 신호발생 2.매수진입가 : 업크로스후 30이평선 +5틱에 진입 매도진입가 : 다운크로스후 30이평선 -5틱에 진입 단가 올때 까지 신호유지, 진입가유지 하다가 반대신호 나오면 신호 없앤다... 3.익절은 40틱 , 물타기 는 40틱에 2개,손절은 60틱 , 4.매매시간이후 80틱 익절이면 진입금지 하고 시스템 종료한다. 신호유지,진입가 유지가 중요한데 잘 작동 되지 않아서 문의 드립니다. 진입가는 신호 발생 햇을때의 30이평선이며 이후 반대신호 나올때까지 변하면 안됩니다. 미리 감사드립니다.
프로필 이미지

왈라스

2023-09-21 15:50:56

4. 그날 수익이 총 80틱이면 청산하고 청산하고 진입금지 하라는 말입니다.
프로필 이미지

예스스탁 예스스탁 답변

2023-09-21 16:28:45

안녕하세요 예스스탁입니다. Input : 당일수익틱수(80); input : EndTime(230000); Var : N1(0),dayPl(0),당일수익(0); var : Tcond(false),Xcond(false),ST(0); var : T(0); IF Endtime > ST Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if bdate!= bdate[1] Then { ST = sTime; IF endtime <= ST Then { SetStopEndofday(0); } Tcond = true; Xcond = False; } 당일수익 = PriceScale*당일수익틱수; if Bdate != Bdate[1] Then { Xcond = false; N1 = NetProfit; } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if (IsExitName("dbp",1) == true or IsExitName("dbl",1) == true or IsExitName("dsp",1) == true or IsExitName("dsl",1) == true) then Xcond = true; } var1 = ma(C,30); Var2 = ma(C,200); if CrossUp(var1,Var2) Then { value1 = 1; value2 = var1+PriceScale*5; } if CrossDown(var1,Var2) Then { value1 = -1; value2 = var1-PriceScale*5; } if Xcond == false and Tcond == true then { if MarketPosition <= 0 and value1 == 1 Then Buy("b1",AtStop,value1,1); if MarketPosition >= 0 and value1 == -1 Then Sell("s1",AtStop,value1,1); if MarketPosition == 1 Then { if MaxEntries == 1 Then Buy("b2",AtLimit,EntryPrice-PriceScale*40,2); ExitLong("bp",AtLimit,avgEntryPrice+PriceScale*40); ExitLong("bl",AtStop,avgEntryPrice-PriceScale*60); } if MarketPosition == -1 Then { if MaxEntries == 1 Then Sell("s2",AtLimit,EntryPrice+PriceScale*40,2); ExitShort("sp",AtLimit,avgEntryPrice-PriceScale*40); ExitShort("sl",AtStop,avgEntryPrice+PriceScale*60); } if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } } 즐거운 하루되세요 > 왈라스 님이 쓴 글입니다. > 제목 : Re : Re : 시스템식 부탁드려요.... > 4. 그날 수익이 총 80틱이면 청산하고 청산하고 진입금지 하라는 말입니다.