커뮤니티

함수요청

프로필 이미지
흰둥이아빠
2018-04-02 15:39:33
278
글번호 117862
답변완료
안녕하세요? 아래 함수를 참조함수로 하여 주문을 생성하고 싶습니다. 감사합니다. if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale); if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-04-02 15:43:24

안녕하세요 예스스탁입니다. atstop은 기본차트 시세와 지정한 값을 비교합니다. 참조데이터를 이용하면 사용할수 없습니다 onclose(봉완성시종가)로 작성해 드립니다. if MarketPosition <= 0 and data2(C >= highest(H,5)[1]+PriceScale) Then buy("b"); if MarketPosition >= 0 and data2(C <= Lowest(L,5)[1]+PriceScale) Then sell("s"); 즐거운 하루되세요 > 흰둥이아빠 님이 쓴 글입니다. > 제목 : 함수요청 > 안녕하세요? 아래 함수를 참조함수로 하여 주문을 생성하고 싶습니다. 감사합니다. if MarketPosition <= 0 Then buy("b",AtStop,highest(H,5)+PriceScale); if MarketPosition >= 0 Then sell("s",AtStop,Lowest(L,5)-PriceScale);