예스스탁
예스스탁 답변
2024-05-17 16:14:11
안녕하세요
예스스탁입니다.
1
+500틱, -500틱으로 지정하셔서 시가 대비로 작성해 드립니다.
하나의 봉에서 시가대비 +500틱 상승이면 매수
하나의 봉에서 시가대비 -500틱 하락이면 매도
2
익절100 손절100
손절이 100틱이신데 250틱 청산은 어떤 의미이신지 모르겠습니다.
마찬가지로 시가대비로 작성해 드립니다.
3
input : StartTime(70000),EndTime(055000);
input : 익절틱수(100),손절틱수(250);
var : Tcond(False),entry(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = true;
entry = 0;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Tcond == true Then
{
if MarketPosition <= 0 and entry < 1 Then
Buy("b",AtStop,NextBarOpen+PriceScale*500);
if MarketPosition >= 0 and entry < 1 Then
Sell("s",AtStop,NextBarOpen-PriceScale*500);
if MarketPosition == 1 Then
ExitLong("bx",AtStop,NextBarOpen-PriceScale*250);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,NextBarOpen+PriceScale*250);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 수식어 부탁드립니다.
해외선물 매매시간 0700 익일0600
익절100 손절100 , 진입청산 1회
캔들1개 변동성이 +500틱 일때 매도후 -250틱 청산
캔들1개 변동성이 -500틱 일때 매수후 +250틱 청산
input : StartTime(70000),EndTime(53000);
var : Tcond(False);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if Bdate != Bdate[1] Then
{
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = true;
if Tcond == true Then
{
var1 = DayHigh(1)-DayLow(1);
if MarketPosition <= 0 and CrossDown(c,DayOpen-var1*0.99) Then
Buy();
if MarketPosition >= 0 and CrossUp(c,DayOpen+var1*0.50) Then
Sell();
if MarketPosition == 1 Then
{
ExitLong("bx",AtLimit,DayLow[BarsSinceEntry]+(DayHigh[BarsSinceEntry]-DayLow[BarsSinceEntry])*0.99);
}
if MarketPosition == -1 Then
{
ExitShort("sx",AtLimit,DayHigh[BarsSinceEntry]-(DayHigh[BarsSinceEntry]-DayLow[BarsSinceEntry])*0.50);
}
}
-------------
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 문의 드립니다
>
안녕하세요
예스스탁입니다.
1
+500틱, -500틱으로 지정하셔서 시가 대비로 작성해 드립니다.
하나의 봉에서 시가대비 +500틱 상승이면 매수
하나의 봉에서 시가대비 -500틱 하락이면 매도
2
익절100 손절100
손절이 100틱이신데 250틱 청산은 어떤 의미이신지 모르겠습니다.
마찬가지로 시가대비로 작성해 드립니다.
3
input : StartTime(70000),EndTime(055000);
input : 익절틱수(100),손절틱수(250);
var : Tcond(False),entry(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = true;
entry = 0;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Tcond == true Then
{
if MarketPosition <= 0 and entry < 1 Then
Buy("b",AtStop,NextBarOpen+PriceScale*500);
if MarketPosition >= 0 and entry < 1 Then
Sell("s",AtStop,NextBarOpen-PriceScale*500);
if MarketPosition == 1 Then
ExitLong("bx",AtStop,NextBarOpen-PriceScale*250);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,NextBarOpen+PriceScale*250);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 수식어 부탁드립니다.
해외선물 매매시간 0700 익일0600
익절100 손절100 , 진입청산 1회
캔들1개 변동성이 +500틱 일때 매도후 -250틱 청산
캔들1개 변동성이 -500틱 일때 매수후 +250틱 청산