커뮤니티

문의합니다.

프로필 이미지
회원
2013-12-29 16:41:09
164
글번호 70890
답변완료
야선 시간 고쳐주셔요~~ 잘 안됩니다... 새벽 04:45분에 청산되도록 부탁합니다.. if (stime >= 183000 or stime < 044500) and T == 1 Then{ if L >= var1+PriceScale*5 Then Bcond = true; if Bcond == true Then buy("b",atlimit,var1); } if (stime >= 183000 or stime < 044500) and T == -1 Then{ if H <= var1-PriceScale*5 Then Scond = true; if Scond == true Then sell("s",atlimit,var1); } if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*25 Then ExitLong("bx",AtStop,EntryPrice); } if MarketPosition == -1 Then{ if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*25 Then ExitShort("sx",AtStop,EntryPrice); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-12-30 14:55:19

안녕하세요 예스스탁입니다. 야간선물에서 시간청산은 아래와 같이 if문으로 시간 지정해 청산하셔야 합니다. 지정한 시간 봉이 완성이 될때 신호가 발생하므로 사용하시는 차트에서 해당 시간의 봉이 있는지 확인하시고 시간을 지정하셔야 합니다. 강제청산의 당일청산은 사용하지 않으셔야 합니다. if (stime >= 183000 or stime < 044500) and T == 1 Then{ if L >= var1+PriceScale*5 Then Bcond = true; if Bcond == true Then buy("b",atlimit,var1); } if (stime >= 183000 or stime < 044500) and T == -1 Then{ if H <= var1-PriceScale*5 Then Scond = true; if Scond == true Then sell("s",atlimit,var1); } if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*25 Then ExitLong("bx",AtStop,EntryPrice); } if MarketPosition == -1 Then{ if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*25 Then ExitShort("sx",AtStop,EntryPrice); } if stime == 044500 Then{ exitlong(); ExitShort(); } 새해 복 많이 받으세요 > HI_pj***** 님이 쓴 글입니다. > 제목 : 문의합니다. > 야선 시간 고쳐주셔요~~ 잘 안됩니다... 새벽 04:45분에 청산되도록 부탁합니다.. if (stime >= 183000 or stime < 044500) and T == 1 Then{ if L >= var1+PriceScale*5 Then Bcond = true; if Bcond == true Then buy("b",atlimit,var1); } if (stime >= 183000 or stime < 044500) and T == -1 Then{ if H <= var1-PriceScale*5 Then Scond = true; if Scond == true Then sell("s",atlimit,var1); } if MarketPosition == 1 Then{ if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*25 Then ExitLong("bx",AtStop,EntryPrice); } if MarketPosition == -1 Then{ if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*25 Then ExitShort("sx",AtStop,EntryPrice); }