10시대에 3번 들어가는 경우도 있는데
같은 시간대에는 1번만 진입하는 조건 추가바랍니다.
***********************************************************
input:시간(091000);
input : 강제손절(0.46),강제추적(6.00),강제익절(1000);
var : HH(0),LL(0);
if stime < 시간 Then{
HH = dayhigh;
LL = daylow;
}
if stime >= 시간 and crossup(c,HH) then
sell();
SetStopLoss(강제손절,PointStop);
SetStopTrailing(강제추적,0,PointStop);
SetStopProfittarget(강제익절,PointStop);
답변 1
예스스탁
예스스탁 답변
2020-03-26 17:41:34
안녕하세요
예스스탁입니다.
input:시간(091000);
input : 강제손절(0.46),강제추적(6.00),강제익절(1000);
var : HH(0),LL(0),entry(0);
var1 = TimeToMinutes(stime)%60;
if bdate != bdate[1] or (bdate == bdate[1] and var1 < var1[1]) Then
entry = 0;
if MarketPosition != 0 and MarketPosition !=MarketPosition[1] Then
entry = entry+1;
if stime < 시간 Then
{
HH = dayhigh;
LL = daylow;
}
if stime >= 시간 and crossup(c,HH) and entry < 1 then
sell();
SetStopLoss(강제손절,PointStop);
SetStopTrailing(강제추적,0,PointStop);
SetStopProfittarget(강제익절,PointStop);
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
>
10시대에 3번 들어가는 경우도 있는데
같은 시간대에는 1번만 진입하는 조건 추가바랍니다.
***********************************************************
input:시간(091000);
input : 강제손절(0.46),강제추적(6.00),강제익절(1000);
var : HH(0),LL(0);
if stime < 시간 Then{
HH = dayhigh;
LL = daylow;
}
if stime >= 시간 and crossup(c,HH) then
sell();
SetStopLoss(강제손절,PointStop);
SetStopTrailing(강제추적,0,PointStop);
SetStopProfittarget(강제익절,PointStop);