답변완료
수식추가 부탁드립니다.
안녕하세요?
시스템 트레이딩의 설정 기능에서 강제청산에서 시간을 넣어도 안먹혀서
외부변수로 시간을 집어넣어서 당일 종료시간을 사용하고싶습니다.
부타드립니다.
감사합니다.
inputs: Length(10), Pval(0.05);
input : 익절틱수(10), 손절틱수(10), 진입횟수(3);
var : entry(0);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1 ;
if entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2023-07-11
1175
글번호 170523
시스템