커뮤니티
setstopprofittarget, setstoploss 함수 질문
안녕하세요?
setstopprofittarget, setstoploss 함수와 같은 경우 1계약 단위로 profit target 과 setstoploss가 걸리는게 맞을까요?
예를들어
input: pt1(1000), sl1(500);
SetStopProfittarget((PT1/BigPointValue),PointStop);
setstoploss((SL1/BigPointValue),PointStop);
위와 같을 때, 2계약이 들어갔을 경우 1계약 당 1000 달러 에 stopprofittarget이 걸린거죠?
stoploss도 1계약당 500이 걸린거고요.
tradestation의 easylanguage에서
buy("b") 2 contracts next bar at market;
setprofittarget(1000);
이라고 하면 전체 포지션(2계약)에 대해서 1000달러 익절이라길래 yeslanguage는 어떨지 혹시 몰라 질문합니다.
답변 1
예스스탁 예스스탁 답변
2026-01-12 14:16:46