커뮤니티

안녕하세요

프로필 이미지
탐라
2019-06-10 00:30:13
305
글번호 129279
답변완료
안녕하세요. 수고 많으십니다. 아래수식 다시 검증 해 주세요. var : cnt(0),HH(0),LL(0); var1 = ma(C,1); if (sdate != sdate[1] and stime >= 101500) or (sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then { HH = H; LL = L; } if crossup(var1,(HH+LL)/2) Then buy(); if CrossDown(var1,(HH+LL)/2) Then sell(); var : pp(0),ll(0),tx(0); if MarketPosition == 1 Then { pp = Floor((highest(H,BarsSinceEntry)-EntryPrice)/(PriceScale*10)); if pp > pp[1] Then { tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*10,0)+"틱"); Text_SetStyle(tx,2,1); } } if MarketPosition == -1 Then { pp = Floor((EntryPrice-lowest(L,BarsSinceEntry))/(PriceScale*210)); if pp > pp[1] Then { tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*10,0)+"틱"); Text_SetStyle(tx,2,0); } } var : pp(0),ll(0),tx(0); 이 수식 줄수에서 ......... 이미 선언된 이름을 다시 선언하고 있 습니다. 라는 문구가 뜨네요. 감사합니다. 수고하세요.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-06-10 13:40:18

안녕하세요 예스스탁입니다. var : cnt(0),HH(0),LL(0); var1 = ma(C,1); if (sdate != sdate[1] and stime >= 101500) or (sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then { HH = H; LL = L; } if crossup(var1,(HH+LL)/2) Then buy(); if CrossDown(var1,(HH+LL)/2) Then sell(); var : pp(0),tx(0); if MarketPosition == 1 Then { pp = Floor((highest(H,BarsSinceEntry)-EntryPrice)/(PriceScale*10)); if pp > pp[1] Then { tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*10,0)+"틱"); Text_SetStyle(tx,2,1); } } if MarketPosition == -1 Then { pp = Floor((EntryPrice-lowest(L,BarsSinceEntry))/(PriceScale*210)); if pp > pp[1] Then { tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*10,0)+"틱"); Text_SetStyle(tx,2,0); } } 즐거운 하루되세요 > 탐라 님이 쓴 글입니다. > 제목 : 안녕하세요 > 안녕하세요. 수고 많으십니다. 아래수식 다시 검증 해 주세요. var : cnt(0),HH(0),LL(0); var1 = ma(C,1); if (sdate != sdate[1] and stime >= 101500) or (sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then { HH = H; LL = L; } if crossup(var1,(HH+LL)/2) Then buy(); if CrossDown(var1,(HH+LL)/2) Then sell(); var : pp(0),ll(0),tx(0); if MarketPosition == 1 Then { pp = Floor((highest(H,BarsSinceEntry)-EntryPrice)/(PriceScale*10)); if pp > pp[1] Then { tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*10,0)+"틱"); Text_SetStyle(tx,2,1); } } if MarketPosition == -1 Then { pp = Floor((EntryPrice-lowest(L,BarsSinceEntry))/(PriceScale*210)); if pp > pp[1] Then { tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*10,0)+"틱"); Text_SetStyle(tx,2,0); } } var : pp(0),ll(0),tx(0); 이 수식 줄수에서 ......... 이미 선언된 이름을 다시 선언하고 있 습니다. 라는 문구가 뜨네요. 감사합니다. 수고하세요.