커뮤니티

문의드립니다

프로필 이미지
회원
2014-05-28 13:53:35
164
글번호 75412
답변완료
[1] 초봉데이타를 틱봉에 표시하는 수식을 알고싶습니다. [2] Condition1 = data2(C < 0) and data3(C > 0); Condition2 = data2(C > 0) and data3(C < 0); If Condition1 == true and Condition1[1] == false Then Buy(); If Condition2 == true and Condition2[1] == false Then Sell(); 이런 시스템식에서 매수들어가있는상태에서만 data2(c>0) or data3(c<0)이면 매수청산하고 매도들어가있는상태에서만 data2(c<0) or data3(c>0)이면 매도청산할수있는 식 부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-05-28 15:23:40

안녕하세요 예스스탁입니다. 1. 참조데이터를 이용하셔야 합니다. 참조데이터로 주종목과 같은 종목을 추가하신 후에 해당 데이터의 속성에서 초봉으로 지정하시면 됩니다. 2. Condition1 = data2(C < 0) and data3(C > 0); Condition2 = data2(C > 0) and data3(C < 0); If Condition1 == true and Condition1[1] == false Then Buy(); If Condition2 == true and Condition2[1] == false Then Sell(); if MarketPosition == 1 and (data2(C>0) or data3(C<0)) Then ExitLong(); if MarketPosition == -1 and (data2(C<0) or data3(C>0)) Then ExitShort(); 즐거운 하루되세요 > HI_me****** 님이 쓴 글입니다. > 제목 : 문의드립니다 > [1] 초봉데이타를 틱봉에 표시하는 수식을 알고싶습니다. [2] Condition1 = data2(C < 0) and data3(C > 0); Condition2 = data2(C > 0) and data3(C < 0); If Condition1 == true and Condition1[1] == false Then Buy(); If Condition2 == true and Condition2[1] == false Then Sell(); 이런 시스템식에서 매수들어가있는상태에서만 data2(c>0) or data3(c<0)이면 매수청산하고 매도들어가있는상태에서만 data2(c<0) or data3(c>0)이면 매도청산할수있는 식 부탁드립니다