커뮤니티

수식 부탁드립니다

프로필 이미지
회원
2015-10-27 15:28:21
212
글번호 91755
답변완료
(1) 전일 중심과 금일 중심을 그려서 선 옆에 '전일 중심' '금일 중심' 글자를 쓰고자 합니다 좋은 지표식 부탁드립니다 감사합니다 --------------------------------------------- 아래는 어제 주신 답변을 참고로 제가 만든것인데 오류신호가 발생합니다 수정 부탁드립니다 var:전일 중심(0),금일 중심(0); var:tx1(0),tx2(0); 전일 중심=(dayhigh(1)+daylow(1))/2; 금일 중간=(dayhigh+daylow)/2; plot1(전일 중심,"전일 중심"); plot2(금일 중심,"금일 중심"); Text_Delete(tx1); Text_Delete(tx2); tx1 = Text_New(sdate,stime,전일 중심,"전일 중심"); tx2 = Text_New(sdate,stime,금일 중심,"금일 중심"); Text_SetStyle(tx1,0,1); Text_SetStyle(tx2,0,1); (2) 당일 천정에서 100틱 하락시 매수,100틱 하락한 바닥에서 50틱 상승 매도 당일 천정에서 150틱 하락시 매수,150틱 하락한 바닥에서 100틱 상승 매도 당일 바닥에서 100틱 상승시 매도,100틱 상승한 천정에서 50틱 하락 매수 당일 바닥에서 150틱 상승시 매도,150틱 상승한 천정에서 100틱 하락 매수 감사합니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-10-27 16:01:44

안녕하세요 예스스탁입니다. 1 변수는 중간에 공백을 주시면 안됩니다. 붙여서 작성하셔야 합니다. var:전일중심(0),금일중심(0); var:tx1(0),tx2(0); 전일중심=(dayhigh(1)+daylow(1))/2; 금일중심=(dayhigh+daylow)/2; plot1(전일중심,"전일 중심"); plot2(금일중심,"금일 중심"); Text_Delete(tx1); Text_Delete(tx2); tx1 = Text_New(sdate,stime,전일중심,"전일 중심"); tx2 = Text_New(sdate,stime,금일중심,"금일 중심"); Text_SetStyle(tx1,0,1); Text_SetStyle(tx2,0,1); 2. if MarketPosition <= 0 and CrossDown(c,dayhigh-PriceScale*100) Then buy("b1"); if MarketPosition == 1 and IsEntryName("b1") == true and crossup(C,lowest(L,BarsSinceEntry)+PriceScale*50) Then sell("bs1"); if MarketPosition <= 0 and CrossDown(c,dayhigh-PriceScale*150) Then buy("b2"); if MarketPosition == 1 and IsEntryName("b2") == true and crossup(C,lowest(L,BarsSinceEntry)+PriceScale*100) Then sell("bs2"); if MarketPosition >= 0 and crossup(c,daylow+PriceScale*100) Then sell("s1"); if MarketPosition == -1 and IsEntryName("s1") == true and CrossDown(c,highest(H,BarsSinceEntry)-PriceScale*50) Then buy("sb1"); if MarketPosition >= 0 and crossup(c,daylow+PriceScale*150) Then sell("s2"); if MarketPosition == -1 and IsEntryName("s2") == true and CrossDown(c,highest(H,BarsSinceEntry)-PriceScale*100) Then buy("sb2"); 즐거운 하루되세요 > 타이쿤 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다 > (1) 전일 중심과 금일 중심을 그려서 선 옆에 '전일 중심' '금일 중심' 글자를 쓰고자 합니다 좋은 지표식 부탁드립니다 감사합니다 --------------------------------------------- 아래는 어제 주신 답변을 참고로 제가 만든것인데 오류신호가 발생합니다 수정 부탁드립니다 var:전일 중심(0),금일 중심(0); var:tx1(0),tx2(0); 전일 중심=(dayhigh(1)+daylow(1))/2; 금일 중간=(dayhigh+daylow)/2; plot1(전일 중심,"전일 중심"); plot2(금일 중심,"금일 중심"); Text_Delete(tx1); Text_Delete(tx2); tx1 = Text_New(sdate,stime,전일 중심,"전일 중심"); tx2 = Text_New(sdate,stime,금일 중심,"금일 중심"); Text_SetStyle(tx1,0,1); Text_SetStyle(tx2,0,1); (2) 당일 천정에서 100틱 하락시 매수,100틱 하락한 바닥에서 50틱 상승 매도 당일 천정에서 150틱 하락시 매수,150틱 하락한 바닥에서 100틱 상승 매도 당일 바닥에서 100틱 상승시 매도,100틱 상승한 천정에서 50틱 하락 매수 당일 바닥에서 150틱 상승시 매도,150틱 상승한 천정에서 100틱 하락 매수 감사합니다