예스스탁
예스스탁 답변
2024-04-11 11:00:30
안녕하세요
예스스탁입니다.
input : StartTime(70000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(70000),EndTime(55000),Xtime(55500);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 5 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 5 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
진입 청삼 1회로 수정 부탁드립니다.
input : StartTime(70000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
----------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(70000),EndTime(55000),Xtime(55500);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 5 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 5 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
진입 청삼 1회로 수정 부탁드립니다.
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 MarketPosition <= 0 and entry < 1 Then
buy("b",atlimit,dayhigh-PriceScale*400);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*1000);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*400);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*200);
if sdate != sdate[1] Then
SetStopEndofday(54000);
if bdate != bdate[1] Then
SetStopEndofday(0);
------------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 피보1회
>
input : StartTime(70000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
----------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(70000),EndTime(55000),Xtime(55500);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 5 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 5 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
진입 청삼 1회로 수정 부탁드립니다.
Input : 하락폭(400), 상승폭(1200), 손절값(0);
input : StartTime(70000),EndTime(60000);
var : Tcond(false);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
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 MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B1",AtLimit,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Buy("B2",AtLimit,DayOpen-(PriceScale*하락폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
;
if Bdate != NextBarSdate Then
Sell("s1",Atstop,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Sell("s2",Atstop,DayOpen-(PriceScale*하락폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B3",Atstop,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Buy("B4",Atstop,DayOpen+(PriceScale*상승폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Sell("s3",AtLimit,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Sell("s4",AtLimit,DayOpen+(PriceScale*상승폭));
}
SetStopProfittarget(PriceScale*상승폭,PointStop);
SetStopLoss(PriceScale*손절값,PointStop);
--------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 전체폭
> 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 MarketPosition <= 0 and entry < 1 Then
buy("b",atlimit,dayhigh-PriceScale*400);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*1000);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*400);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*200);
if sdate != sdate[1] Then
SetStopEndofday(54000);
if bdate != bdate[1] Then
SetStopEndofday(0);
------------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 피보1회
>
input : StartTime(70000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
----------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(70000),EndTime(55000),Xtime(55500);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 5 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 5 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
진입 청삼 1회로 수정 부탁드립니다.
input : starttime(70000),endtime(55000),n(10);
var : Tcond(false),hh(0),h1(0),ll(0),l1(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 >= starttime) or
(sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then
{
Tcond = true;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
Input : 상승폭(10), 상승폭1(800), 손절값(0);
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 MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B1",Atstop,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Buy("B2",Atstop,DayOpen+(PriceScale*상승폭));
}
SetStopProfittarget(PriceScale*상승폭1,PointStop);
SetStopLoss(PriceScale*손절값,PointStop);
---------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 시가폭
> Input : 하락폭(400), 상승폭(1200), 손절값(0);
input : StartTime(70000),EndTime(60000);
var : Tcond(false);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
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 MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B1",AtLimit,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Buy("B2",AtLimit,DayOpen-(PriceScale*하락폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
;
if Bdate != NextBarSdate Then
Sell("s1",Atstop,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Sell("s2",Atstop,DayOpen-(PriceScale*하락폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B3",Atstop,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Buy("B4",Atstop,DayOpen+(PriceScale*상승폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Sell("s3",AtLimit,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Sell("s4",AtLimit,DayOpen+(PriceScale*상승폭));
}
SetStopProfittarget(PriceScale*상승폭,PointStop);
SetStopLoss(PriceScale*손절값,PointStop);
--------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 전체폭
> 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 MarketPosition <= 0 and entry < 1 Then
buy("b",atlimit,dayhigh-PriceScale*400);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*1000);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*400);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*200);
if sdate != sdate[1] Then
SetStopEndofday(54000);
if bdate != bdate[1] Then
SetStopEndofday(0);
------------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 피보1회
>
input : StartTime(70000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
----------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(70000),EndTime(55000),Xtime(55500);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 5 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 5 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
진입 청삼 1회로 수정 부탁드립니다.
input : starttime(70000),endtime(55000),n(30);
var : Tcond(false),hh(0),h1(0),ll(0),l1(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 >= starttime) or
(sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then
{
Tcond = true;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
Input : 하락폭(10), 하락폭1(350), 손절값(0);
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 MarketPosition == 0 and Entry < 1 Then
{
;
if Bdate != NextBarSdate Then
Sell("s1",Atstop,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Sell("s2",Atstop,DayOpen-(PriceScale*하락폭));
}
SetStopProfittarget(PriceScale*하락폭1,PointStop);
SetStopLoss(PriceScale*손절값,PointStop);
-----------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 시가+바이
> input : starttime(70000),endtime(55000),n(10);
var : Tcond(false),hh(0),h1(0),ll(0),l1(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 >= starttime) or
(sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then
{
Tcond = true;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
Input : 상승폭(10), 상승폭1(800), 손절값(0);
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 MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B1",Atstop,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Buy("B2",Atstop,DayOpen+(PriceScale*상승폭));
}
SetStopProfittarget(PriceScale*상승폭1,PointStop);
SetStopLoss(PriceScale*손절값,PointStop);
---------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 시가폭
> Input : 하락폭(400), 상승폭(1200), 손절값(0);
input : StartTime(70000),EndTime(60000);
var : Tcond(false);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
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 MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B1",AtLimit,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Buy("B2",AtLimit,DayOpen-(PriceScale*하락폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
;
if Bdate != NextBarSdate Then
Sell("s1",Atstop,NextBarOpen-(PriceScale*하락폭));
Else if Bdate == Bdate[1] Then
Sell("s2",Atstop,DayOpen-(PriceScale*하락폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Buy("B3",Atstop,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Buy("B4",Atstop,DayOpen+(PriceScale*상승폭));
}
if MarketPosition == 0 and Entry < 1 Then
{
if Bdate != NextBarSdate Then
Sell("s3",AtLimit,NextBarOpen+(PriceScale*상승폭));
Else if Bdate == Bdate[1] Then
Sell("s4",AtLimit,DayOpen+(PriceScale*상승폭));
}
SetStopProfittarget(PriceScale*상승폭,PointStop);
SetStopLoss(PriceScale*손절값,PointStop);
--------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 전체폭
> 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 MarketPosition <= 0 and entry < 1 Then
buy("b",atlimit,dayhigh-PriceScale*400);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*1000);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*400);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*200);
if sdate != sdate[1] Then
SetStopEndofday(54000);
if bdate != bdate[1] Then
SetStopEndofday(0);
------------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 피보1회
>
input : StartTime(70000),EndTime(55000),Xtime(55500),진입횟수(1);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 진입횟수 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
----------------------------------------------------
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> input : StartTime(70000),EndTime(55000),Xtime(55500);
var : Tcond(false),entry(0);
var : B1(0),B2(0),BX1(0),BX2(0);
var : S1(0),S2(0),SX1(0),SX2(0);
if sdate != sDate[1] Then
SetStopEndofday(Xtime);
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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
entry = 0;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
B1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.200;
BX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.990;
S1 = DayHigh(1)+(DayHigh(1)-DayLow(1))*0.382;
SX1 = DayLow(1)+(DayHigh(1)-DayLow(1))*0.236;
if Tcond == true Then
{
if (MarketPosition == 0 or (MarketPosition == 1 and MaxEntries == 1)) Then
{
if entry < 5 and L > B1 Then
Buy("b1",AtLimit,B1);
}
if MarketPosition == 1 Then
{
ExitLong("bx1",AtLimit,BX1,"B1");
}
if (MarketPosition == 0 or (MarketPosition == -1 and MaxEntries == 1)) Then
{
if entry < 5 and H < S1 Then
Sell("S1",AtLimit,S1);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtLimit,SX1,"S1");
}
SetStopProfittarget(PriceScale*0,PointStop);
SetStopLoss(PriceScale*500,PointStop); }
진입 청삼 1회로 수정 부탁드립니다.
input : StartTime(213000),EndTime(55000);
input : 익절틱수(400),손절틱수(0);
var : Tcond(False);
var : 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 >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) 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",atlimit,dayhigh-PriceScale*400);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*700);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);