커뮤니티

검토 부탁드립니다.

프로필 이미지
쌀사비팔
2015-01-05 19:19:10
132
글번호 81909
답변완료
맨 아래줄 청산에서요.... "매수 다음날 14:48시에 청산"인데, 청산이 안됩니다. 거래량이 적어서 그런거면, 14:48시 이후 첫봉에 청산으로 해주시고... 다른 이유가 있는지요? =========================================== Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); var : vol1(0),vol2(0),vol3(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; R1 = 2*Pivot-DayLow(1); R2 = Pivot+DayHigh(1)-DayLow(1); S1 = 2*Pivot-DayHigh(1); S2 = Pivot-DayHigh(1)+DayLow(1); if stime >= 090000 and stime < 093000 and MarketPosition == 0 and ExitDate(1) != sdate and CrossDown(c,Pivot+PriceScale*2) and C < DayClose(1)*1.08 And dayopen > Pivot*1.01 Then buy(); if stime >= 093000 and stime < 103000 and MarketPosition == 0 and ExitDate(1) != sdate and CrossDown(c,Pivot+PriceScale*2) and C < DayClose(1)*1.04 And dayopen > Pivot*1.01 Then buy(); if MarketPosition == 1 then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then{ vol1 = int(int(CurrentContracts*0.20)/10)*10; vol2 = int(int(CurrentContracts*0.25)/10)*10; vol3 = int(int(CurrentContracts*0.50)/10)*10; } Else{ vol1 = int(CurrentContracts*0.20); vol2 = int(CurrentContracts*0.25); vol3 = int(CurrentContracts*0.50); } ExitLong("bx1",atlimit,EntryPrice*1.065,"",vol1,1); ExitLong("bx2",atlimit,EntryPrice*1.070,"",vol2,1); ExitLong("bx3",atlimit,EntryPrice*1.075,"",vol3,1); ExitLong("bx4",atlimit,EntryPrice*1.080); if highest(H,BarsSinceEntry) >= EntryPrice*1.050 Then exitlong("bx",AtStop,EntryPrice*1.025); } SetStopLoss(4.6,PercentStop); if MarketPosition == 1 and sdate > EntryDate and stime == 144800 Then ExitLong();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-01-06 11:41:43

안녕하세요 예스스탁입니다. 해당식 지정한 시간의 봉이 완성이 될때 청산합니다. 차트상에 14시48분봉이 있는지 확인하시기 바랍니다. 차트주기가 1분, 2분과 같이 14시 48분봉이 있어야 합니다. 사용하시는 주기에 해당시간의 분봉이 없으면 차트주기 만제 봉의 시간을 지정해 주셔야 합니다. 즐거운 하루되시고 새해 좋은일만 가득하시기 바랍니다. > 쌀사비팔 님이 쓴 글입니다. > 제목 : 검토 부탁드립니다. > 맨 아래줄 청산에서요.... "매수 다음날 14:48시에 청산"인데, 청산이 안됩니다. 거래량이 적어서 그런거면, 14:48시 이후 첫봉에 청산으로 해주시고... 다른 이유가 있는지요? =========================================== Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); var : vol1(0),vol2(0),vol3(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; R1 = 2*Pivot-DayLow(1); R2 = Pivot+DayHigh(1)-DayLow(1); S1 = 2*Pivot-DayHigh(1); S2 = Pivot-DayHigh(1)+DayLow(1); if stime >= 090000 and stime < 093000 and MarketPosition == 0 and ExitDate(1) != sdate and CrossDown(c,Pivot+PriceScale*2) and C < DayClose(1)*1.08 And dayopen > Pivot*1.01 Then buy(); if stime >= 093000 and stime < 103000 and MarketPosition == 0 and ExitDate(1) != sdate and CrossDown(c,Pivot+PriceScale*2) and C < DayClose(1)*1.04 And dayopen > Pivot*1.01 Then buy(); if MarketPosition == 1 then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then{ vol1 = int(int(CurrentContracts*0.20)/10)*10; vol2 = int(int(CurrentContracts*0.25)/10)*10; vol3 = int(int(CurrentContracts*0.50)/10)*10; } Else{ vol1 = int(CurrentContracts*0.20); vol2 = int(CurrentContracts*0.25); vol3 = int(CurrentContracts*0.50); } ExitLong("bx1",atlimit,EntryPrice*1.065,"",vol1,1); ExitLong("bx2",atlimit,EntryPrice*1.070,"",vol2,1); ExitLong("bx3",atlimit,EntryPrice*1.075,"",vol3,1); ExitLong("bx4",atlimit,EntryPrice*1.080); if highest(H,BarsSinceEntry) >= EntryPrice*1.050 Then exitlong("bx",AtStop,EntryPrice*1.025); } SetStopLoss(4.6,PercentStop); if MarketPosition == 1 and sdate > EntryDate and stime == 144800 Then ExitLong();