커뮤니티
피라미딩 문의
2013-04-11 11:14:27
180
글번호 61948
안녕하세요
조건별로 피라미딩 을 설정하는방법을 부탁해요
if A조건 Then ##피라미딩없음
buy("b1");
if B조건 Then ##피라미딩설정
buy("b2");
if C조건 Then ##피라미딩없음
buy("b3");
if A-1조건 Then ##피라미딩설정
sell("s1");
if B-1조건 Then ##피라미딩없음
sell("s2");
if C-1조건 Then ##피라미딩설정
sell("s3");
답변 1
예스스탁 예스스탁 답변
2013-04-11 19:06:13
안녕하세요
예스스탁입니다.
if MarketPosition == 0 and A조건 Then ##피라미딩없음
buy("b1");
if MarketPosition >= 0 and B조건 Then ##피라미딩설정
buy("b2");
if MarketPosition == 0 and C조건 Then ##피라미딩없음
buy("b3");
if MarketPosition <= 0 and A-1조건 Then ##피라미딩설정
sell("s1");
if MarketPosition == 0 and B-1조건 Then ##피라미딩없음
sell("s2");
if MarketPosition <= 0 and C-1조건 Then ##피라미딩설정
sell("s3");
즐거운 하루되세요
> 외국인 님이 쓴 글입니다.
> 제목 : 피라미딩 문의
> 안녕하세요
조건별로 피라미딩 을 설정하는방법을 부탁해요
if A조건 Then ##피라미딩없음
buy("b1");
if B조건 Then ##피라미딩설정
buy("b2");
if C조건 Then ##피라미딩없음
buy("b3");
if A-1조건 Then ##피라미딩설정
sell("s1");
if B-1조건 Then ##피라미딩없음
sell("s2");
if C-1조건 Then ##피라미딩설정
sell("s3");