커뮤니티
시스템신호발생위치 표시
2016-05-31 11:17:52
129
글번호 98634
항상 감사드립니다
아래 시스템식의 신호발생위치를 저장하고 싶습니다
시스템신호가 발생하는 b1,sl 의 종가를
b1 ==> var1
s1 ==> var2 에 저장하고 최근발생신호값을 다시저장할것.
if data2(c)>v60 and V20 == 1 and upAroon2 > DnAroon2 and upAroon2 >70 and dnAroon2<50 Then buy("b1");
if data2(c)<v60 and upAroon2 < DnAroon2 and dnAroon2 >70 Then
sell("s1");
감사합니다.
답변 1
예스스탁 예스스탁 답변
2016-05-31 15:58:27
안녕하세요
예스스탁입니다.
if data2(c)>v60 and V20 == 1 and upAroon2 > DnAroon2 and upAroon2 >70 and dnAroon2<50 Then{
buy("b1");
if MarketPosition <= 0 Then
var1 = C;
}
if data2(c)<v60 and upAroon2 < DnAroon2 and dnAroon2 >70 Then{
sell("s1");
if MarketPosition >= 0 Then
var2 = c;
}
즐거운 하루되세요
> 조민철 님이 쓴 글입니다.
> 제목 : 시스템신호발생위치 표시
> 항상 감사드립니다
아래 시스템식의 신호발생위치를 저장하고 싶습니다
시스템신호가 발생하는 b1,sl 의 종가를
b1 ==> var1
s1 ==> var2 에 저장하고 최근발생신호값을 다시저장할것.
if data2(c)>v60 and V20 == 1 and upAroon2 > DnAroon2 and upAroon2 >70 and dnAroon2<50 Then buy("b1");
if data2(c)<v60 and upAroon2 < DnAroon2 and dnAroon2 >70 Then
sell("s1");
감사합니다.