커뮤니티

수정해주세요---------

프로필 이미지
leekss1
2012-05-01 08:59:04
454
글번호 50669
답변완료
Condition1 = False; Condition3 = False; if dayindex > 10 and stime > 090000 and stime < 144500 and( c[3] < c[1] and c[1] > c ) Then{ if h > (goldjisu+var1)+1 then { plot8(h+0.0,"색매도"); } if ( countif (h >= h[40]+0.15 and goldt <goldt[40] - 0.05,20) >=20 and dayindex > 40) then { Condition1 = True; //if Condition1 == true and goldt11tem < goldt11tem[1] Then { if( Condition1 == true and cvcha > -900 ) or h > (goldjisu+var1)+1 Then { Condition3 = True; if Condition3 = True and goldjisutem < goldjisutem[1] then { plot9(h+0.0,"골드매도"); PlaySound("C:₩예스트레이더31₩Data₩alert.wav"); } } } } 위와같이해서 Condition3 = True;면 기다렸다가 goldjisutem < goldjisutem[1] 될때 plot9(h+0.0,"골드매도"); 하려고하는데 안되네요 중괄호가 틀렸나요?
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-05-02 11:25:29

안녕하세요 예스스탁입니다. if Condition3 == True and goldjisutem < goldjisutem[1] then { plot9(h+0.0,"골드매도"); PlaySound("C:₩예스트레이더31₩Data₩alert.wav"); } 말씀하신 내용으로는 위와 같이 작성하시면 됩니다. 예스랭귀지에서 condition3은 true이다라는 내용은 Condition3 == True 입니다. 중괄호는 사용과 같은 부분은 직잡 판단해서 하셔야 합니다. 올리신 내용에서는 판단되지 않습니다. 즐거운 하루되세요 > leekss1 님이 쓴 글입니다. > 제목 : 수정해주세요--------- > Condition1 = False; Condition3 = False; if dayindex > 10 and stime > 090000 and stime < 144500 and( c[3] < c[1] and c[1] > c ) Then{ if h > (goldjisu+var1)+1 then { plot8(h+0.0,"색매도"); } if ( countif (h >= h[40]+0.15 and goldt <goldt[40] - 0.05,20) >=20 and dayindex > 40) then { Condition1 = True; //if Condition1 == true and goldt11tem < goldt11tem[1] Then { if( Condition1 == true and cvcha > -900 ) or h > (goldjisu+var1)+1 Then { Condition3 = True; if Condition3 = True and goldjisutem < goldjisutem[1] then { plot9(h+0.0,"골드매도"); PlaySound("C:₩예스트레이더31₩Data₩alert.wav"); } } } } 위와같이해서 Condition3 = True;면 기다렸다가 goldjisutem < goldjisutem[1] 될때 plot9(h+0.0,"골드매도"); 하려고하는데 안되네요 중괄호가 틀렸나요?