커뮤니티
시스템식 추가부탁합니다
2014-02-22 00:54:37
141
글번호 72825
안녕하세요
1번 이식에 식추가 해주세요(그리고 식을 하나더 만들어주세요 일목균형표만 따로 2번식을 만들어주세여-일복균형표는 분리)
매수 매도시간은 22시~23시 사이 이구요
일목균형표(9.26.52)에서 상승일목균형표에서 봉이10틱이상 상승시매수
일목균형표(9.26.52)에서 하락일목균형표에서 봉이10틱이하 하락시매도
청산은 일목균형표가 상승에서 하락으로 바꿘경우
청산은 일목균형표가 하락에서 상승으로 바꿘경우
손절은 10틱으로 해주세요
수고하세요
var : Bcount(0),Scount(0);
var : mav1(0),mav2(0),mav3(0),mav4(0),mav5(0),mav6(0),mav7(0),mav8(0),mav9(0),mav10(0);
mav1 = ma(c,5);
mav2 = ma(c,10);
mav3 = ma(c,15);
mav4 = ma(c,25);
mav5 = ma(c,70);
mav6 = ma(c,2);
mav7 = ma(c,7);
mav8 = ma(c,30);
mav9 = ma(c,50);
mav10 = ma(c,120);
if stime == 170000 or (stime > 170000 and stime[1] < 170000) Then
Bcount = 0;
if stime >= 170000 and stime <= 190000 Then{
if MarketPosition == 1 and MarketPosition != MarketPosition[1] then
Bcount = Bcount+1;
}
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then
Scount = 0;
if stime >= 90000 and stime <= 120000 Then{
if MarketPosition == -1 and MarketPosition != MarketPosition[1] then
Scount = Scount+1;
}
if stime >= 170000 and stime <= 190000 and Bcount < 1 Then{
if MarketPosition == 0 and mav3 > mav4 and mav4 > mav5 and crossup(mav1,mav2) and C > O and H >= L+PriceScale*1 Then
buy("매수진입",AtMarket);}
if stime >= 240000 and stime <= 240000 and Scount < 1 Then{
if MarketPosition == 0 and mav8 < mav9 and mav9 < mav10 and CrossDown(mav6,mav7) and C > O and H >=O-PriceScale*1 Then
sell("매도진입",AtMarket,def,1);
}
if MarketPosition == 1 Then{
ExitLong("매수손절",AtStop,EntryPrice-PriceScale*10);
if CurrentContracts == MaxContracts Then
ExitLong("매수수익",atlimit,EntryPrice+PriceScale*10);
}
if MarketPosition == -1 Then{
ExitShort("매도손절",AtStop,EntryPrice+PriceScale*8);
if CurrentContracts == MaxContracts Then
ExitShort("매도수익",atlimit,EntryPrice-PriceScale*13);
}
답변 1
예스스탁 예스스탁 답변
2014-02-24 14:10:34
안녕하세요
예스스탁입니다.
일목균형표는 5개의 선으로 구성이 됩니다.
단지 일목균형표라고 하시면 어떤 선을 대상으로 하시는지 알수가 없습니다.
아래식은 모두 일목균형표의 기준선을 이용해 작성했습니다.
1.
var : Bcount(0),Scount(0);
var : mav1(0),mav2(0),mav3(0),mav4(0),mav5(0),mav6(0),mav7(0),mav8(0),mav9(0),mav10(0);
Var : 기준선(0), 전환선(0), 후행스팬(0), 선행스팬1(0), 선행스팬2(0),T(0);
전환선 = (Highest(High, 9) + Lowest(Low, 9)) / 2;
기준선 = (Highest(High, 26) + Lowest(Low, 26)) / 2;
후행스팬 = Close ;
선행스팬1 = (전환선 + 기준선) / 2 ;
선행스팬2 = (Highest(High, 52) + Lowest(Low, 52)) / 2;
mav1 = ma(c,5);
mav2 = ma(c,10);
mav3 = ma(c,15);
mav4 = ma(c,25);
mav5 = ma(c,70);
mav6 = ma(c,2);
mav7 = ma(c,7);
mav8 = ma(c,30);
mav9 = ma(c,50);
mav10 = ma(c,120);
if 기준선 > 기준선[1] Then
T = 1;
if 기준선 < 기준선[1] Then
T = -1;
if T == 1 and T != 1 Then
var1 = C;
if T == -1 and T != -1 Then
var1 = C;
if stime == 220000 or (stime > 220000 and stime[1] < 220000) Then
Bcount = 0;
if stime >= 220000 and stime <= 230000 Then{
if MarketPosition == 1 and MarketPosition != MarketPosition[1] then
Bcount = Bcount+1;
}
if stime == 220000 or (stime > 220000 and stime[1] < 220000) Then
Scount = 0;
if stime >= 220000 and stime <= 230000 Then{
if MarketPosition == -1 and MarketPosition != MarketPosition[1] then
Scount = Scount+1;
}
if stime >= 220000 and stime <= 230000 and Bcount < 1 Then{
if MarketPosition == 0 and mav3 > mav4 and mav4 > mav5 and crossup(mav1,mav2) and C > O and H >= L+PriceScale*1 Then
buy("매수진입1",AtMarket);
if MarketPosition == 0 and T == 1 and crossup(c,var1+PriceScale*10) Then
buy("매수진입2",AtMarket);
}
if stime >= 220000 and stime <= 230000 and Scount < 1 Then{
if MarketPosition == 0 and mav8 < mav9 and mav9 < mav10 and CrossDown(mav6,mav7) and C > O and H >=O-PriceScale*1 Then
sell("매도진입1",AtMarket,def,1);
if MarketPosition == 0 and T == -1 and CrossDown(c,var1-PriceScale*10) Then
Sell("매도진입2",AtMarket);
}
if MarketPosition == 1 Then{
if T == -1 and T[1] ==1 Then
ExitLong();
ExitLong("매수손절",AtStop,EntryPrice-PriceScale*10);
if CurrentContracts == MaxContracts Then
ExitLong("매수수익",atlimit,EntryPrice+PriceScale*10);
}
if MarketPosition == -1 Then{
if T == 1 and T[1] == 1 Then
ExitShort();
ExitShort("매도손절",AtStop,EntryPrice+PriceScale*10);
if CurrentContracts == MaxContracts Then
ExitShort("매도수익",atlimit,EntryPrice-PriceScale*13);
}
2.
var : Bcount(0),Scount(0);
Var : 기준선(0), 전환선(0), 후행스팬(0), 선행스팬1(0), 선행스팬2(0),T(0);
전환선 = (Highest(High, 9) + Lowest(Low, 9)) / 2;
기준선 = (Highest(High, 26) + Lowest(Low, 26)) / 2;
후행스팬 = Close ;
선행스팬1 = (전환선 + 기준선) / 2 ;
선행스팬2 = (Highest(High, 52) + Lowest(Low, 52)) / 2;
if 기준선 > 기준선[1] Then
T = 1;
if 기준선 < 기준선[1] Then
T = -1;
if T == 1 and T != 1 Then
var1 = C;
if T == -1 and T != -1 Then
var1 = C;
if stime == 220000 or (stime > 220000 and stime[1] < 220000) Then
Bcount = 0;
if stime >= 220000 and stime <= 230000 Then{
if MarketPosition == 1 and MarketPosition != MarketPosition[1] then
Bcount = Bcount+1;
}
if stime == 220000 or (stime > 220000 and stime[1] < 220000) Then
Scount = 0;
if stime >= 220000 and stime <= 230000 Then{
if MarketPosition == -1 and MarketPosition != MarketPosition[1] then
Scount = Scount+1;
}
if stime >= 220000 and stime <= 230000 and Bcount < 1 Then{
if MarketPosition == 0 and T == 1 and crossup(c,var1+PriceScale*10) Then
buy("매수진입2",AtMarket);
}
if stime >= 220000 and stime <= 230000 and Scount < 1 Then{
if MarketPosition == 0 and T == -1 and CrossDown(c,var1-PriceScale*10) Then
Sell("매도진입2",AtMarket);
}
if MarketPosition == 1 Then{
if T == -1 and T[1] ==1 Then
ExitLong();
ExitLong("매수손절",AtStop,EntryPrice-PriceScale*10);
if CurrentContracts == MaxContracts Then
ExitLong("매수수익",atlimit,EntryPrice+PriceScale*10);
}
if MarketPosition == -1 Then{
if T == 1 and T[1] == 1 Then
ExitShort();
ExitShort("매도손절",AtStop,EntryPrice+PriceScale*10);
if CurrentContracts == MaxContracts Then
ExitShort("매도수익",atlimit,EntryPrice-PriceScale*13);
}
즐거운 하루되세요
> HI_jh***** 님이 쓴 글입니다.
> 제목 : 시스템식 추가부탁합니다
> 안녕하세요
1번 이식에 식추가 해주세요(그리고 식을 하나더 만들어주세요 일목균형표만 따로 2번식을 만들어주세여-일복균형표는 분리)
매수 매도시간은 22시~23시 사이 이구요
일목균형표(9.26.52)에서 상승일목균형표에서 봉이10틱이상 상승시매수
일목균형표(9.26.52)에서 하락일목균형표에서 봉이10틱이하 하락시매도
청산은 일목균형표가 상승에서 하락으로 바꿘경우
청산은 일목균형표가 하락에서 상승으로 바꿘경우
손절은 10틱으로 해주세요
수고하세요
var : Bcount(0),Scount(0);
var : mav1(0),mav2(0),mav3(0),mav4(0),mav5(0),mav6(0),mav7(0),mav8(0),mav9(0),mav10(0);
mav1 = ma(c,5);
mav2 = ma(c,10);
mav3 = ma(c,15);
mav4 = ma(c,25);
mav5 = ma(c,70);
mav6 = ma(c,2);
mav7 = ma(c,7);
mav8 = ma(c,30);
mav9 = ma(c,50);
mav10 = ma(c,120);
if stime == 170000 or (stime > 170000 and stime[1] < 170000) Then
Bcount = 0;
if stime >= 170000 and stime <= 190000 Then{
if MarketPosition == 1 and MarketPosition != MarketPosition[1] then
Bcount = Bcount+1;
}
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then
Scount = 0;
if stime >= 90000 and stime <= 120000 Then{
if MarketPosition == -1 and MarketPosition != MarketPosition[1] then
Scount = Scount+1;
}
if stime >= 170000 and stime <= 190000 and Bcount < 1 Then{
if MarketPosition == 0 and mav3 > mav4 and mav4 > mav5 and crossup(mav1,mav2) and C > O and H >= L+PriceScale*1 Then
buy("매수진입",AtMarket);}
if stime >= 240000 and stime <= 240000 and Scount < 1 Then{
if MarketPosition == 0 and mav8 < mav9 and mav9 < mav10 and CrossDown(mav6,mav7) and C > O and H >=O-PriceScale*1 Then
sell("매도진입",AtMarket,def,1);
}
if MarketPosition == 1 Then{
ExitLong("매수손절",AtStop,EntryPrice-PriceScale*10);
if CurrentContracts == MaxContracts Then
ExitLong("매수수익",atlimit,EntryPrice+PriceScale*10);
}
if MarketPosition == -1 Then{
ExitShort("매도손절",AtStop,EntryPrice+PriceScale*8);
if CurrentContracts == MaxContracts Then
ExitShort("매도수익",atlimit,EntryPrice-PriceScale*13);
}
다음글
이전글