커뮤니티

수정 부탁합니다

프로필 이미지
회원
2014-01-09 01:15:51
137
글번호 71199
답변완료
안녕하세요 2계약으로 진입이 들어가 있는데요 계약수는 없애주세요 제가 직접설정하게습니다 이식에서 양봉이나 음봉이나 35틱이상 이면 조건식이 성립하게 되있는데요 캔들 몸통이이 아닌 최대 진폭이 35 이상 일경우 시행되는 식으로 바꾸어주세요 줄거운 하루되세요~ var : Bcount(0),Scount(0); var1 = ma(c,20); Var2 = ma(c,60); Var3 = ma(c,120); if stime == 10000 or (stime > 1000 and stime[1] < 1000) Then{ Bcount = 0; Scount = 0; } if MarketPosition == 1 and MarketPosition[1] != 1 Then Bcount = Bcount+1; if MarketPosition == -1 and MarketPosition[1] != -1 Then Scount = Scount+1; if stime >= 10000 and stime <= 240000 Then{ if MarketPosition <= 0 and Bcount < 1 and var1 > var2 and C >= O+PriceScale*35 Then buy("b",AtMarket,def,1); if MarketPosition >= 0 and Bcount < 1 and var1 < var2 and C <= O-PriceScale*35 Then sell("s",AtMarket,def,1); } if MarketPosition == 1 Then{ ExitLong("매수손절",AtStop,EntryPrice-PriceScale*30); if CurrentContracts == MaxContracts Then ExitLong("매수수익",atlimit,EntryPrice+PriceScale*40); } if MarketPosition == -1 Then{ ExitShort("매도손절",AtStop,EntryPrice+PriceScale*30); if CurrentContracts == MaxContracts Then ExitShort("매도수익",atlimit,EntryPrice-PriceScale*40);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-01-09 14:07:35

안녕하세요 예스스탁입니다. var : Bcount(0),Scount(0); var1 = ma(c,20); Var2 = ma(c,60); Var3 = ma(c,120); if stime == 10000 or (stime > 1000 and stime[1] < 1000) Then{ Bcount = 0; Scount = 0; } if MarketPosition == 1 and MarketPosition[1] != 1 Then Bcount = Bcount+1; if MarketPosition == -1 and MarketPosition[1] != -1 Then Scount = Scount+1; if stime >= 10000 and stime <= 240000 Then{ if MarketPosition <= 0 and Bcount < 1 and var1 > var2 and C > O and H >= L+PriceScale*35 Then buy("b",AtMarket); if MarketPosition >= 0 and Bcount < 1 and var1 < var2 and C < O and H >= L-PriceScale*35 Then sell("s",AtMarket); } if MarketPosition == 1 Then{ ExitLong("매수손절",AtStop,EntryPrice-PriceScale*30); if CurrentContracts == MaxContracts Then ExitLong("매수수익",atlimit,EntryPrice+PriceScale*40); } if MarketPosition == -1 Then{ ExitShort("매도손절",AtStop,EntryPrice+PriceScale*30); if CurrentContracts == MaxContracts Then ExitShort("매도수익",atlimit,EntryPrice-PriceScale*40); } 즐거운 하루되세요 > HI_jh***** 님이 쓴 글입니다. > 제목 : 수정 부탁합니다 > 안녕하세요 2계약으로 진입이 들어가 있는데요 계약수는 없애주세요 제가 직접설정하게습니다 이식에서 양봉이나 음봉이나 35틱이상 이면 조건식이 성립하게 되있는데요 캔들 몸통이이 아닌 최대 진폭이 35 이상 일경우 시행되는 식으로 바꾸어주세요 줄거운 하루되세요~ var : Bcount(0),Scount(0); var1 = ma(c,20); Var2 = ma(c,60); Var3 = ma(c,120); if stime == 10000 or (stime > 1000 and stime[1] < 1000) Then{ Bcount = 0; Scount = 0; } if MarketPosition == 1 and MarketPosition[1] != 1 Then Bcount = Bcount+1; if MarketPosition == -1 and MarketPosition[1] != -1 Then Scount = Scount+1; if stime >= 10000 and stime <= 240000 Then{ if MarketPosition <= 0 and Bcount < 1 and var1 > var2 and C >= O+PriceScale*35 Then buy("b",AtMarket,def,1); if MarketPosition >= 0 and Bcount < 1 and var1 < var2 and C <= O-PriceScale*35 Then sell("s",AtMarket,def,1); } if MarketPosition == 1 Then{ ExitLong("매수손절",AtStop,EntryPrice-PriceScale*30); if CurrentContracts == MaxContracts Then ExitLong("매수수익",atlimit,EntryPrice+PriceScale*40); } if MarketPosition == -1 Then{ ExitShort("매도손절",AtStop,EntryPrice+PriceScale*30); if CurrentContracts == MaxContracts Then ExitShort("매도수익",atlimit,EntryPrice-PriceScale*40);