안녕하세요?
시스템 트레이딩의 설정 기능에서 강제청산에서 시간을 넣어도 안먹혀서
외부변수로 시간을 집어넣어서 당일 종료시간을 사용하고싶습니다.
부타드립니다.
감사합니다.
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);
답변 1
예스스탁
예스스탁 답변
2023-07-12 08:46:12
안녕하세요
예스스탁입니다.
1
수식에 당일청산 지정해 드립니다.
수식에서 당일청산함수를 사용하는 것과 설정창에서 지정하는 것은 동일합니다.
수식에서 당일청산함수를 사용하면 설정창에서는 지정하지 못하게 막히게 됩니다.
2
당일청산은 분봉이하의 주기에만 발생합니다.
차트주기가 일봉이상이면 적용되지 않습니다.
3
시스템은 정규장이내에서 신호와 주문이 가능하게 작성사야 합니다.
15시 30분으로 지정해 드립니다.
4
inputs: Length(10), Pval(0.05),당일청산(153000);
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);
SetStopEndofday(당일청산);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수식추가 부탁드립니다.
> 안녕하세요?
시스템 트레이딩의 설정 기능에서 강제청산에서 시간을 넣어도 안먹혀서
외부변수로 시간을 집어넣어서 당일 종료시간을 사용하고싶습니다.
부타드립니다.
감사합니다.
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);