커뮤니티
수식 추가 부탁합니다
2014-02-16 02:47:30
150
글번호 72590
안녕하세요
17시~19시 에 한번만 매수 들어가게해주세요
9시~12시에 매도 한번만 들어가게 해주세요
즐거운 하루되세요~
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 and stime <= 190000 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 >= 90000 and stime <= 120000 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-17 14:17:04
안녕하세요
예스스탁입니다.
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 >= 90000 and stime <= 120000 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);
}
즐거운 하루되세요
> HI_jh***** 님이 쓴 글입니다.
> 제목 : 수식 추가 부탁합니다
> 안녕하세요
17시~19시 에 한번만 매수 들어가게해주세요
9시~12시에 매도 한번만 들어가게 해주세요
즐거운 하루되세요~
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 and stime <= 190000 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 >= 90000 and stime <= 120000 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);
}
이전글