예스스탁
예스스탁 답변
2024-03-15 10:38:58
안녕하세요
예스스탁입니다.
input : StartTime(200000),EndTime(050000);
input : 익절틱수(100),손절틱수(100);
Input : Period(9);
var : Tcond(False);
Var : value(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;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
value = CCI(Period);
value1 = (highest(H,9)+lowest(L,9))/2; //전환
value2 = (highest(H,26)+lowest(L,26))/2; //기준
var1 = ma(C,5);
Var2 = ma(C,10);
if Tcond == true Then
{
If MarketPosition <= 0
and CountIf(CrossUp(value1,Value2),60) >= 1
and value1 > Value2
and CrossUp(value,-100) Then
{
Buy();
}
if MarketPosition == 1 and CrossDown(var1,Var2) Then
ExitLong();
If MarketPosition >= 0
and CountIf(CrossDown(value1,Value2),60) >= 1
and value1 < Value2
and CrossDown(value,-100) Then
{
Sell();
}
if MarketPosition == -1 and CrossUp(var1,Var2) Then
ExitShort();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 일목균형
value1 = (highest(H,9)+lowest(L,9))/2; //전환
value2 = (highest(H,26)+lowest(L,26))/2; //기준
If crossup(value1,value2) Then
{
Buy ("LE") ;
}
If crossdown(value1,value2) Then
{
Sell ("SE");
}
CCI 과매도 과매수
Input : Period(9);
Var : value(0);
value = CCI(Period);
# 매수/매도청산
If CrossUp(value,-100) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value,100) Then
{
Sell();
}
---------
위 수식어 2개는 시스템의 일목균형, CCI 과매도 과매수 입니다.
이 둘의 혼합된 수식어를 부탁 드리고자 합니다.
일목균형 수식어 진입신호 이후 캔들 60개 기준으로 CCI 과매도 과매수 수식어의
동일한 방향의 진입신호가 있을때 주문후 청산은 5,10 골든이나 데드이고
해와선물 매매시간은 20시~05시 익절 100 손절100 입니다.
늘 감사드립니다.
input : starttime(210000),endtime(50000),n(10);
var : Tcond(false),hh(0),h1(0),ll(0),l1(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1]and Tcond == true 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 : 익절틱수(800),손절틱수(0);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx",AtMarket);
if NextBarOpen != C Then
{
Buy("b1",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx1",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx",AtMarket);
if NextBarOpen != C Then
{
Sell("s1",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx1",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b2",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx2",AtMarket);
if NextBarOpen == C Then
{
Buy("b3",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx3",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s2",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx2",AtMarket);
if NextBarOpen == C Then
{
Sell("s3",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx3",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b4",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx4",AtMarket);
if NextBarOpen != C Then
{
Buy("b5",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx5",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s4",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx4",AtMarket);
if NextBarOpen != C Then
{
Sell("s5",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx5",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b6",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx6",AtMarket);
if NextBarOpen == C Then
{
Buy("b7",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx7",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s6",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx6",AtMarket);
if NextBarOpen == C Then
{
Sell("s7",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx7",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b8",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx8",AtMarket);
if NextBarOpen != C Then
{
Buy("b9",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx9",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s8",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx8",AtMarket);
if NextBarOpen != C Then
{
Sell("s9",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx9",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b10",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx10",AtMarket);
if NextBarOpen == C Then
{
Buy("b11",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx11",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s10",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx10",AtMarket);
if NextBarOpen == C Then
{
Sell("s11",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx11",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b12",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx12",AtMarket);
if NextBarOpen != C Then
{
Buy("b13",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx13",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s12",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx12",AtMarket);
if NextBarOpen != C Then
{
Sell("s13",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx13",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b14",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx14",AtMarket);
if NextBarOpen == C Then
{
Buy("b15",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx15",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s14",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx14",AtMarket);
if NextBarOpen == C Then
{
Sell("s15",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx15",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
-----------------------------------------------
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 문의 드립니다
>
안녕하세요
예스스탁입니다.
input : StartTime(200000),EndTime(050000);
input : 익절틱수(100),손절틱수(100);
Input : Period(9);
var : Tcond(False);
Var : value(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;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
value = CCI(Period);
value1 = (highest(H,9)+lowest(L,9))/2; //전환
value2 = (highest(H,26)+lowest(L,26))/2; //기준
var1 = ma(C,5);
Var2 = ma(C,10);
if Tcond == true Then
{
If MarketPosition <= 0
and CountIf(CrossUp(value1,Value2),60) >= 1
and value1 > Value2
and CrossUp(value,-100) Then
{
Buy();
}
if MarketPosition == 1 and CrossDown(var1,Var2) Then
ExitLong();
If MarketPosition >= 0
and CountIf(CrossDown(value1,Value2),60) >= 1
and value1 < Value2
and CrossDown(value,-100) Then
{
Sell();
}
if MarketPosition == -1 and CrossUp(var1,Var2) Then
ExitShort();
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 일목균형
value1 = (highest(H,9)+lowest(L,9))/2; //전환
value2 = (highest(H,26)+lowest(L,26))/2; //기준
If crossup(value1,value2) Then
{
Buy ("LE") ;
}
If crossdown(value1,value2) Then
{
Sell ("SE");
}
CCI 과매도 과매수
Input : Period(9);
Var : value(0);
value = CCI(Period);
# 매수/매도청산
If CrossUp(value,-100) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value,100) Then
{
Sell();
}
---------
위 수식어 2개는 시스템의 일목균형, CCI 과매도 과매수 입니다.
이 둘의 혼합된 수식어를 부탁 드리고자 합니다.
일목균형 수식어 진입신호 이후 캔들 60개 기준으로 CCI 과매도 과매수 수식어의
동일한 방향의 진입신호가 있을때 주문후 청산은 5,10 골든이나 데드이고
해와선물 매매시간은 20시~05시 익절 100 손절100 입니다.
늘 감사드립니다.