커뮤니티

실행이되도록 확인부탁드립니다

프로필 이미지
뎅이요
2020-01-01 13:55:07
276
글번호 134782
답변완료
실행이 되도록 수정 부탁 드립니다 Input: len(3.2), method(1) If method=1 Then Var10 = (HighD(1) + LowD(1) + closed(1)) / 3 '피봇 Var11= Var10 * 2 - LowD(1) '1차 저항 Var12= Var10 + HighD(1) - LowD(1) '2차저항 Var9= Var10 * 2 - HighD(1) '1차 지지 Var8= Var10 - HighD(1) + LowD(1) '2차지지 Else Var10 = (HighD(1) + LowD(1) + closed(1)+opend(1)) / 4 '피봇 Var11= Var10 * 2 - LowD(1) '1차 저항 Var12= Var10 + HighD(1) - LowD(1) '2차저항 Var9= Var10 * 2 - HighD(1) '1차 지지 Var8= Var10 - HighD(1) + LowD(1) '2차지지 End If If Var9 > opend And opend> Var8 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수1", Atstop, Def, Var9) Call sell("매도1", Atstop, Def, Var8) End If End If End If If Var10 > opend And opend>=var9 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수2", Atstop, Def, Var10) Call sell("매도2", Atstop, Def, Var8) end If End If End if If Var11 > opend And opend>=var10 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수3", Atstop, Def, Var12) Call sell("매도3", Atstop, Def, Var10) End If End If End If If Var12 > opend And opend>=var11 Then 8 If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수4", Atstop, Def, Var12) Call sell("매도4", Atstop, Def, Var11) End If End If End If If opend>=var12 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수5", Atstop, Def, opend+(Var12-var11)) Call sell("매도5", Atstop, Def, Var12) End If End If End If If opend<=var8 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수6", Atstop, Def, Var8) Call sell("매도6", Atstop, Def, opend-(Var9-var8)) End If End If End If If position<>0 Then Call exitlong("매수청산", Atstop, hhv(1, high, barnumsinceentry+1)-atr(20)*len) Call exitshort("매도청산", Atstop, llv(1, low, barnumsinceentry+1)+atr(20)*len) End If
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-01-02 15:37:59

안녕하세요 예스스탁입니다. Input: len(3.2), method(1); If method==1 Then { Var10 = (dayhigh(1) + daylow(1) + dayclose(1)) / 3; #피봇 Var11= Var10 * 2 - daylow(1); #1차 저항 Var12= Var10 + dayhigh(1) - daylow(1); #2차저항 Var9= Var10 * 2 - dayhigh(1); #1차 지지 Var8= Var10 - dayhigh(1) + daylow(1); #2차지지 } Else { Var10 = (dayhigh(1) + daylow(1) + dayclose(1)+dayopen(1)) / 4; #피봇 Var11= Var10 * 2 - daylow(1); #1차 저항 Var12= Var10 + dayhigh(1) - daylow(1); #2차저항 Var9= Var10 * 2 - dayhigh(1); #1차 지지 Var8= Var10 - dayhigh(1) + daylow(1); #2차지지 } If Var9 > dayopen And dayopen> Var8 Then{ If sTime<=150000 Then { If MarketPosition==0 And sdate<>entrydate(1) Then { buy("매수1", Atstop, Var9); sell("매도1", Atstop, Var8); } } } If Var10 > dayopen And dayopen>=var9 Then { If sTime<=150000 Then { If MarketPosition==0 And sdate<>entrydate(1) Then { buy("매수2", Atstop,Var10); sell("매도2", Atstop,Var8); } } } If Var11 > dayopen And dayopen>=var10 Then { If sTIME <= 150000 Then { If MarketPosition == 0 And sdate<>entrydate(1) Then { buy("매수3", Atstop, Var12); sell("매도3", Atstop, Var10); } } } If Var12 > dayopen And dayopen>=var11 Then { If sTIME<=150000 Then { If MarketPosition==0 And sdate<>entrydate(1) Then { buy("매수4", Atstop, Var12); sell("매도4", Atstop, Var11); } } } If dayopen>=var12 Then { If sTIME<=150000 Then { If MarketPosition==0 And sdate<>entrydate(1) Then { buy("매수5", Atstop, dayopen+(Var12-var11)); sell("매도5", Atstop, Var12); } } } If dayopen<=var8 Then { If sTIME<=150000 Then { If MarketPosition==0 And sdate<>entrydate(1) Then { buy("매수6", Atstop, Var8); sell("매도6", Atstop, dayopen-(Var9-var8)); } } } If MarketPosition<>0 Then { exitlong("매수청산", Atstop, Highest(high, BarsSinceEntry+1)-atr(20)*len); exitshort("매도청산", Atstop, Lowest(low, BarsSinceEntry+1)+atr(20)*len); } 즐거운 하루 되세요 > 뎅이요 님이 쓴 글입니다. > 제목 : 실행이되도록 확인부탁드립니다 > 실행이 되도록 수정 부탁 드립니다 Input: len(3.2), method(1) If method=1 Then Var10 = (HighD(1) + LowD(1) + closed(1)) / 3 '피봇 Var11= Var10 * 2 - LowD(1) '1차 저항 Var12= Var10 + HighD(1) - LowD(1) '2차저항 Var9= Var10 * 2 - HighD(1) '1차 지지 Var8= Var10 - HighD(1) + LowD(1) '2차지지 Else Var10 = (HighD(1) + LowD(1) + closed(1)+opend(1)) / 4 '피봇 Var11= Var10 * 2 - LowD(1) '1차 저항 Var12= Var10 + HighD(1) - LowD(1) '2차저항 Var9= Var10 * 2 - HighD(1) '1차 지지 Var8= Var10 - HighD(1) + LowD(1) '2차지지 End If If Var9 > opend And opend> Var8 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수1", Atstop, Def, Var9) Call sell("매도1", Atstop, Def, Var8) End If End If End If If Var10 > opend And opend>=var9 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수2", Atstop, Def, Var10) Call sell("매도2", Atstop, Def, Var8) end If End If End if If Var11 > opend And opend>=var10 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수3", Atstop, Def, Var12) Call sell("매도3", Atstop, Def, Var10) End If End If End If If Var12 > opend And opend>=var11 Then 8 If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수4", Atstop, Def, Var12) Call sell("매도4", Atstop, Def, Var11) End If End If End If If opend>=var12 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수5", Atstop, Def, opend+(Var12-var11)) Call sell("매도5", Atstop, Def, Var12) End If End If End If If opend<=var8 Then If TTIME<=1500 Then If position=0 And tdate<>entrydate(1) Then Call buy("매수6", Atstop, Def, Var8) Call sell("매도6", Atstop, Def, opend-(Var9-var8)) End If End If End If If position<>0 Then Call exitlong("매수청산", Atstop, hhv(1, high, barnumsinceentry+1)-atr(20)*len) Call exitshort("매도청산", Atstop, llv(1, low, barnumsinceentry+1)+atr(20)*len) End If