커뮤니티

수식

프로필 이미지
좌오비우오비
2019-03-29 14:45:16
331
글번호 127483
답변완료
buy와 sell 리버스 연속 거래에 사용하는 청산수식인데 exitlong/exitshort을 이용하는 수식으로 변경바랍니다. ***************************************************************************** input : up최소가격변화포인트(0.80), up봉갯수(80); input : dn최소가격변화포인트(0.50), dn봉갯수(50); if MarketPosition == 1 then { SetStopInactivity(up최소가격변화포인트,up봉갯수,PointStop); } if MarketPosition == -1 then { SetStopInactivity(dn최소가격변화포인트,dn봉갯수,PointStop); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-03-29 16:40:17

안녕하세요 예스스탁입니다. input : up최소가격변화포인트(0.80), up봉갯수(80); input : dn최소가격변화포인트(0.50), dn봉갯수(50); if MarketPosition == 1 then { if BarsSinceEntry == up봉갯수 and highest(H,BarsSinceEntry) < EntryPrice+up최소가격변화포인트 then exitlong("bx"); } if MarketPosition == -1 then { if BarsSinceEntry == dn봉갯수 and Lowest(L,BarsSinceEntry) > EntryPrice-dn최소가격변화포인트 Then ExitShort("sx"); } 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 수식 > buy와 sell 리버스 연속 거래에 사용하는 청산수식인데 exitlong/exitshort을 이용하는 수식으로 변경바랍니다. ***************************************************************************** input : up최소가격변화포인트(0.80), up봉갯수(80); input : dn최소가격변화포인트(0.50), dn봉갯수(50); if MarketPosition == 1 then { SetStopInactivity(up최소가격변화포인트,up봉갯수,PointStop); } if MarketPosition == -1 then { SetStopInactivity(dn최소가격변화포인트,dn봉갯수,PointStop); }