커뮤니티

다시한번부탁드립니다.

프로필 이미지
가인
2012-07-02 17:31:19
296
글번호 52533
답변완료
수고하십니다. 시스템식과 관련하여 다시한번 질문드립니다.. 아까 보낸질문에 대한 답변을 아래와 같이 받았으나...적용해보니 맞지않아서 다시한번질문드리니 귀찮더라도 가르쳐주시면 감사하겠습니다.. 받은답변 input : N(1.00); var : HH(0),LL(0),EH(0),EL(0); if date!=date[1]then{ var1=0; var2=0; var3=0; Condition1 = false; Condition2= false; } var1=var1+c; var2=var2+1; var3=var1/var2; if dayindex < 60 Then value1 = var3; Else value1 = accumn(c,60)/60; value2 = value1+N; value3 = value1-N; if crossup(c,value2) Then{ HH = H; Condition1 = true; } if Condition1 == true Then{ if H > HH Then HH = H; } if C < value2 or MarketPosition == -1 Then Condition1 = false; if CrossDown(c,value3) Then{ LL = L; Condition2 = true; } if Condition2 == true Then{ if L < LL Then LL = L; } if C > value3 or MarketPosition == 1 Then Condition2 = false; if Condition1 == true and MarketPosition != -1 Then sell("s",AtStop,HH-PriceScale*3); if Condition2 == true and MarketPosition != 1 Then buy("b",AtStop,LL+PriceScale*3); SetStopLoss(PriceScale*16,PointStop); if MarketPosition == 1 Then{ EH = highest(H,BarsSinceEntry); if EH > EntryPrice+PriceScale*16 and EH < EntryPrice*24 Then exitlong("bx1",AtStop,EntryPrice+PriceScale*16); if EH >= EntryPrice+PriceScale*24 Then exitlong("bx2",AtStop,EH-PriceScale*6); } if MarketPosition == -1 Then{ EL = Lowest(L,BarsSinceEntry); if EL < EntryPrice-PriceScale*16 and EH > EntryPrice+PriceScale*24 Then ExitShort("sx1",AtStop,EntryPrice+PriceScale*16); if EL <= EntryPrice-PriceScale*24 Then ExitShort("sx2",AtStop,EL+PriceScale*6); } 의 답변을 받았는데요..적용하여 보니 이상하게 나옵니다. 제가 보내드린 위의 베이스 지표는 중심선과 상하밴드가 나오지않습니까? 제가 원하는 것은 위의 윗밴드에 부&#46383;히거나 돌파하고 3틱의 되돌림이 나오는시점에 매도신호가 발생하고... 아랫밴드에 부&#46383;히거나 돌파되고 3틱되돌림이 일어나는시점에 매수신호가 나오게 하는것이구요...... 상하밴드의 값은 상밴드는 예를들면 2.0 하밴드는 3.0이런식으로 다른값을 매일수정할수 있도록해주시라는 부탁입니다.... 물론 손절과 익절을 부탁드린위의 양식이구요... 귀찮더라도 한번만더 수정해주시면 감하하겠습니다. 신호는 위에서는 매도라는 표시로 아랫밴드는 매수로 뜨면 좋겠습니다... 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-07-03 09:00:39

안녕하세요 예스스탁입니다. 문의하신 내용과 수식이 어느부분이 다른지 모르겠습니다. 전화주시기 바랍니다. 02-3453-1060 즐거운 하루되세요 > 가인 님이 쓴 글입니다. > 제목 : 다시한번부탁드립니다. > 수고하십니다. 시스템식과 관련하여 다시한번 질문드립니다.. 아까 보낸질문에 대한 답변을 아래와 같이 받았으나...적용해보니 맞지않아서 다시한번질문드리니 귀찮더라도 가르쳐주시면 감사하겠습니다.. 받은답변 input : N(1.00); var : HH(0),LL(0),EH(0),EL(0); if date!=date[1]then{ var1=0; var2=0; var3=0; Condition1 = false; Condition2= false; } var1=var1+c; var2=var2+1; var3=var1/var2; if dayindex < 60 Then value1 = var3; Else value1 = accumn(c,60)/60; value2 = value1+N; value3 = value1-N; if crossup(c,value2) Then{ HH = H; Condition1 = true; } if Condition1 == true Then{ if H > HH Then HH = H; } if C < value2 or MarketPosition == -1 Then Condition1 = false; if CrossDown(c,value3) Then{ LL = L; Condition2 = true; } if Condition2 == true Then{ if L < LL Then LL = L; } if C > value3 or MarketPosition == 1 Then Condition2 = false; if Condition1 == true and MarketPosition != -1 Then sell("s",AtStop,HH-PriceScale*3); if Condition2 == true and MarketPosition != 1 Then buy("b",AtStop,LL+PriceScale*3); SetStopLoss(PriceScale*16,PointStop); if MarketPosition == 1 Then{ EH = highest(H,BarsSinceEntry); if EH > EntryPrice+PriceScale*16 and EH < EntryPrice*24 Then exitlong("bx1",AtStop,EntryPrice+PriceScale*16); if EH >= EntryPrice+PriceScale*24 Then exitlong("bx2",AtStop,EH-PriceScale*6); } if MarketPosition == -1 Then{ EL = Lowest(L,BarsSinceEntry); if EL < EntryPrice-PriceScale*16 and EH > EntryPrice+PriceScale*24 Then ExitShort("sx1",AtStop,EntryPrice+PriceScale*16); if EL <= EntryPrice-PriceScale*24 Then ExitShort("sx2",AtStop,EL+PriceScale*6); } 의 답변을 받았는데요..적용하여 보니 이상하게 나옵니다. 제가 보내드린 위의 베이스 지표는 중심선과 상하밴드가 나오지않습니까? 제가 원하는 것은 위의 윗밴드에 부