커뮤니티

글번호 57046번 재질문

프로필 이미지
흰둥이아빠
2018-03-14 00:00:14
166
글번호 117364
답변완료
안녕하세요? 글번호 57046번 재질문 드립니다. 작성주신 식 var : Tcond(false); Tcond = (stime >= 101500 and stime <= 125900) or (stime >= 140000 and stime <= 173300) or (stime >= 181500 and stime < 125800); if stime >= 15800 and stime[1] < 15800 Then{ exitlong(); ExitShort(); } if Tcond == true then{ 진입청산수식 } 에 if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale); if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale); 를 접목시킨 함수를 요청드립니다. var : Tcond(false); Tcond = (stime >= 101500 and stime <= 125900) or (stime >= 140000 and stime <= 173300) or (stime >= 181500 and stime < 125800); if stime >= 15800 and stime[1] < 15800 Then{ exitlong(); ExitShort(); } if Tcond == true then{ if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale)} if Tcond == true then{ if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale) } 로는 원하는 신호가 아닙니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-03-14 11:47:23

안녕하세요 예스스탁입니다. 1 18:15~ 익일 01:58 위 시간이 잘못 지정되어 수정해 드립니다. 2 랭귀지에서 시간은 봉완성시 조건으로만 지정됩니다. 봉 중간의 시간은 인지 하지 못하므로 사용하시는 차트 주기에서 아래 지표 적용해서 시간 확인하시고 지정하시기 바랍니다. 주기에 따라 다르므로 사용자분이 설정해 주셔야 합니다. plot1(stime); 진입이 atstop이므로 봉완성시 가격 셋팅해 다음봉에 신호가 발생하므로 다음봉까지 감안해서 시간 지정하셔야 합니다. 3 수정한 식입니다. var : Tcond(false); Tcond = (stime >= 101500 and stime < 125900) or (stime >= 140000 and stime < 173300) or (stime >= 181500 and stime < 125800); if stime >= 15800 and stime[1] < 15800 Then{ exitlong(); ExitShort(); } if Tcond == true then{ if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale); if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale); } 즐거운 하루되세요 > 흰둥이아빠 님이 쓴 글입니다. > 제목 : 글번호 57046번 재질문 > 안녕하세요? 글번호 57046번 재질문 드립니다. 작성주신 식 var : Tcond(false); Tcond = (stime >= 101500 and stime <= 125900) or (stime >= 140000 and stime <= 173300) or (stime >= 181500 and stime < 125800); if stime >= 15800 and stime[1] < 15800 Then{ exitlong(); ExitShort(); } if Tcond == true then{ 진입청산수식 } 에 if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale); if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale); 를 접목시킨 함수를 요청드립니다. var : Tcond(false); Tcond = (stime >= 101500 and stime <= 125900) or (stime >= 140000 and stime <= 173300) or (stime >= 181500 and stime < 125800); if stime >= 15800 and stime[1] < 15800 Then{ exitlong(); ExitShort(); } if Tcond == true then{ if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale)} if Tcond == true then{ if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale) } 로는 원하는 신호가 아닙니다.