커뮤니티

문의

프로필 이미지
육각수
2022-10-25 10:00:01
1213
글번호 163260
답변완료
안녕하세요~~ 늘 수고 많으십니다. 아래의 4가지 신호를 하나로 통합 가능할까요? 신호가 중복으로 설정이 안되어서 하나의 신호로 통합하고 싶습니다. 꼭 부탁드립니다.감사합니다. 신호① (월고월저기준가) input : 입력일(20220913); var : 기준가(0),월고(0),월저(0); if data2(sdate == 입력일) Then 기준가 = data2(lowD(0)); if data2(sdate >= 입력일) Then { if Data2(월고 == 0 or (월고 > 0 and H > 월고)) Then 월고 = data2(h); if data2(월저 == 0 or (월저 > 0 and L < 월저)) Then 월저 = data2(l); } if data1(CrossUp(c,기준가)) Then Buy(); if data1(CrossDown(c,기준가)) Then Sell(); if data1(CrossUp(c,월고)) Then Buy(); if data1(CrossDown(c,월고)) Then Sell(); if data1(CrossUp(c,월저)) Then Buy(); if data1(CrossDown(c,월저)) Then Sell(); 신호② (특정일저가) input : 입력일(20221020); var : 특정일저가(0); if data2(sdate == 입력일) Then 특정일저가 = data2(HighD(0)); if data1(CrossUp(c,특정일 저가)) Then Buy(); if data1(CrossDown(c,특정일저가)) Then Sell(); 신호③ (특정일고가) input : 입력일(20221015); var : 특정일고가(0); if data2(sdate == 입력일) Then 특정일고가 = data2(HighD(0)); if data1(CrossUp(c,특정일고가)) Then Buy(); if data1(CrossDown(c,특정일고가)) Then Sell(); 신호④ (특정가격) input:Price1(2.50),Price2(3.50),Price3(1.20),Price4(4.80); if CrossDown(c,Price1) or CrossDown(c,Price2) or CrossDown(c,Price3) or CrossDown(c,Price4) Then sell(); if CrossUp(c,Price1) or CrossUp(c,Price2) or CrossUp(c,Price3) or CrossUp(c,Price4) Then buy();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-10-25 15:46:04

안녕하세요 예스스탁입니다. 시스템은 기본적으로 진입후 동일방향 진입신호가 발생하지 않습니다. 각 조건 만족시마다 매수나 매도진입신호를 보고자 하시면 적용시 피라미딩을 다른진입신호만 허용으로 설저하고 적용하시면 됩니다. input : 입력일1(20220913); input : 입력일2(20221020); input : 입력일3(20221015); var : 기준가(0),월고(0),월저(0); var : 특정일저가(0); var : 특정일고가(0); input:Price1(2.50),Price2(3.50),Price3(1.20),Price4(4.80); if data2(sdate == 입력일1) Then 기준가 = data2(lowD(0)); if data2(sdate >= 입력일1) Then { if Data2(월고 == 0 or (월고 > 0 and H > 월고)) Then 월고 = data2(h); if data2(월저 == 0 or (월저 > 0 and L < 월저)) Then 월저 = data2(l); } if data2(sdate == 입력일2) Then 특정일저가 = data2(HighD(0)); if data2(sdate == 입력일3) Then 특정일고가 = data2(HighD(0)); if data1(CrossUp(c,기준가)) Then Buy("B11"); if data1(CrossDown(c,기준가)) Then Sell("S11"); if data1(CrossUp(c,월고)) Then Buy("B12"); if data1(CrossDown(c,월고)) Then Sell("S12"); if data1(CrossUp(c,월저)) Then Buy("B13"); if data1(CrossDown(c,월저)) Then Sell("S13"); if data1(CrossUp(c,특정일저가)) Then Buy("B2"); if data1(CrossDown(c,특정일저가)) Then Sell("S2"); if data1(CrossUp(c,특정일고가)) Then Buy("B3"); if data1(CrossDown(c,특정일고가)) Then Sell("S3"); if CrossDown(c,Price1) or CrossDown(c,Price2) or CrossDown(c,Price3) or CrossDown(c,Price4) Then sell("S4"); if CrossUp(c,Price1) or CrossUp(c,Price2) or CrossUp(c,Price3) or CrossUp(c,Price4) Then buy("B4"); 즐거운 하루되세요 > 육각수 님이 쓴 글입니다. > 제목 : 문의 > 안녕하세요~~ 늘 수고 많으십니다. 아래의 4가지 신호를 하나로 통합 가능할까요? 신호가 중복으로 설정이 안되어서 하나의 신호로 통합하고 싶습니다. 꼭 부탁드립니다.감사합니다. 신호① (월고월저기준가) input : 입력일(20220913); var : 기준가(0),월고(0),월저(0); if data2(sdate == 입력일) Then 기준가 = data2(lowD(0)); if data2(sdate >= 입력일) Then { if Data2(월고 == 0 or (월고 > 0 and H > 월고)) Then 월고 = data2(h); if data2(월저 == 0 or (월저 > 0 and L < 월저)) Then 월저 = data2(l); } if data1(CrossUp(c,기준가)) Then Buy(); if data1(CrossDown(c,기준가)) Then Sell(); if data1(CrossUp(c,월고)) Then Buy(); if data1(CrossDown(c,월고)) Then Sell(); if data1(CrossUp(c,월저)) Then Buy(); if data1(CrossDown(c,월저)) Then Sell(); 신호② (특정일저가) input : 입력일(20221020); var : 특정일저가(0); if data2(sdate == 입력일) Then 특정일저가 = data2(HighD(0)); if data1(CrossUp(c,특정일 저가)) Then Buy(); if data1(CrossDown(c,특정일저가)) Then Sell(); 신호③ (특정일고가) input : 입력일(20221015); var : 특정일고가(0); if data2(sdate == 입력일) Then 특정일고가 = data2(HighD(0)); if data1(CrossUp(c,특정일고가)) Then Buy(); if data1(CrossDown(c,특정일고가)) Then Sell(); 신호④ (특정가격) input:Price1(2.50),Price2(3.50),Price3(1.20),Price4(4.80); if CrossDown(c,Price1) or CrossDown(c,Price2) or CrossDown(c,Price3) or CrossDown(c,Price4) Then sell(); if CrossUp(c,Price1) or CrossUp(c,Price2) or CrossUp(c,Price3) or CrossUp(c,Price4) Then buy();