커뮤니티

수식어 부탁드립니다.

프로필 이미지
푸른
2020-06-30 12:24:44
1700
글번호 140288
답변완료

첨부 이미지

var : entry(0); if bdate != bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if MarketPosition <= 0 and entry < 1 Then buy("b",atlimit,dayhigh-PriceScale*120); if MarketPosition == 1 Then exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*120); if MarketPosition >= 0 and entry < 1 Then sell("s",atlimit,daylow+PriceScale*130); if MarketPosition == -1 Then ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*130); if sdate != sdate[1] Then SetStopEndofday(60000); if bdate != bdate[1] Then SetStopEndofday(0); ------------------------------------------- 상기 수식어에서 추가하고자 합니다. 매수 진입신호후 1분20분 골든크로스에서 매수 청산신호후 1분20분 데드크로스에서 청산 매도 진입신호후 1분20분 데드크로스에서 매도 청산신호후 1분20분 골든크로스에서 청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-06-30 14:39:25

안녕하세요 예스스탁입니다. var : entry(0),B(false),S(false); var1 = ma(C,1); var2 = ma(C,20); if bdate != bdate[1] Then { entry = 0; B = false; S = false; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if MarketPosition <= 0 then { if B == false and bdate == bdate[1] and L <= dayhigh(0)[1]-PriceScale*120 Then B = true; if B == true and entry < 1 and crossup(var1,var2) Then buy("b"); } if MarketPosition == 1 Then { B = false; if countif(H >= lowest(L,BarsSinceEntry)+PriceScale*120,BarsSinceEntry) >= 1 and CrossDown(var1,var2) Then exitlong("bx"); } if MarketPosition >= 0 then { if S == false and bdate == bdate[1] and H >= daylow(0)[1]+PriceScale*130 Then S = true; if S == true and entry < 1 and CrossDown(var1,var2) Then sell("s"); } if MarketPosition == -1 Then { S = false; if countif(L <= Highest(H,BarsSinceEntry)-PriceScale*130,BarsSinceEntry) >= 1 and CrossUp(var1,var2) Then ExitShort("sx"); } if sdate != sdate[1] Then SetStopEndofday(60000); if bdate != bdate[1] Then SetStopEndofday(0); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 수식어 부탁드립니다. > var : entry(0); if bdate != bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if MarketPosition <= 0 and entry < 1 Then buy("b",atlimit,dayhigh-PriceScale*120); if MarketPosition == 1 Then exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*120); if MarketPosition >= 0 and entry < 1 Then sell("s",atlimit,daylow+PriceScale*130); if MarketPosition == -1 Then ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*130); if sdate != sdate[1] Then SetStopEndofday(60000); if bdate != bdate[1] Then SetStopEndofday(0); ------------------------------------------- 상기 수식어에서 추가하고자 합니다. 매수 진입신호후 1분20분 골든크로스에서 매수 청산신호후 1분20분 데드크로스에서 청산 매도 진입신호후 1분20분 데드크로스에서 매도 청산신호후 1분20분 골든크로스에서 청산