커뮤니티
문의드립니다(피라미딩)
2015-01-09 04:14:25
172
글번호 82075
39827번과 관련해서 식을 넣으려고 했는데 잘 안되네요^^;;
아래식을 피라미딩 진입 들어갈때 전에 진입한 것이 1포인트 이상 이익났을때만
추가 진입이 될수 있도록 수정 부탁드립니다..
=============================================================
var:피봇(0),저항1(0),저항2(0),지지1(0),지지2(0),
ilmok1(0), ilmok2(0), ilmok3(0), sunhang1(0), sunhang2(0),
emaV(0),중기(0),중장기(0),장기(0), MacdV(0), MacdS(0), MacdOsc(0),
LemaV(0), LmacdV(0), LmacdS(0), LmacdOsc(0),adxv(0),atrv(0),atrstop(0),cnt(0),posHigh(0), posLow(0);
피봇 = (DayHigh(1)+daylow(1)+dayclose(1))/3 ;
저항1 = 2 * 피봇 - daylow(1);
저항2 = 피봇 + DayHigh(1)-DayLow(1);
지지1 = 2 * 피봇 - DayHigh(1);
지지2 = 피봇 - DayHigh(1) + DayLow(1);
중기=ema(c,15);
중장기=ema(c,30);
장기=ema(c,400);
adxv=adx(20);
atrv=atr(10);
atrstop=iff(adxv>25 and adxv>adxv[1],atrv*2,atrv*10);
var1 = Highest(h,BarsSinceEntry+1);
var2 = Lowest(L,BarsSinceEntry+1);
#1 macd + ema
emaV = ema(C,300);
MacdV = macd(20,76);
MacdS = ema(MacdV,190);
MacdOsc = MacdV-MacdS;
#2 #1을 다시 변형
LemaV = ema(C,300*1.8);
LmacdV = macd(20*1.8,76*1.8);
LmacdS = ema(MacdV*1.8,190*1.8);
LmacdOsc = (LmacdV-LmacdS)*1.8;
If sTime>=090500 and CrossUp(c, 저항2) then Buy("일번buy");
If sTime>=091500 and CrossDown(C,지지2) then Sell("사번sell");
if stime>=092000 and CrossUp (c, 지지1) then Buy("삼번buy");
if stime>=092000 and CrossDown(c, 저항1) then Sell("이번sell");
if IsEntryName("일번buy") Then
{ExitLong("일번atrEL", AtStop, Var1-ATRstop);
If c<ema(c,20) and ema(c,20)[1]>Ema(c,20) then ExitLong("일번2EL");
}
if IsEntryName("사번sell") Then
{ ExitShort("사번atrES",AtStop, Var2+ATRstop);
if CrossUp(c,중기) then ExitShort("사번2ES");
}
if IsEntryName("삼번buy") then {
ExitLong("삼번atrEL", AtStop, Var1-ATRstop);
If CrossDown(c,저항1) then ExitLong("삼번2EL");
}
if IsEntryName("이번sell") then {
ExitShort("이번atrES", AtStop, Var2+ATRstop);
If CrossUp(c,피봇)and c<EntryPrice then ExitShort("이번2es");
}
ilmok1 = (highest(H,15)+lowest(L,15))/2;
ilmok2 = (highest(H,15*3)+lowest(L,15*3))/2;
ilmok3 = (highest(H,15*3*2)+lowest(L,15*3*2))/2;
sunhang1 = (ilmok1+ilmok2)/2 ;// "선행스팬1"
sunhang2 = ilmok3; // "선행스팬2"
if dayindex() == 23+1 then {
if accumN(iff( C > max(sunhang1, sunhang2),1,0),24) == 24 then buy("오번Buy");
if accumN(iff( C < min(sunhang1, sunhang2),1,0), 14) == 14 then sell("육번Sell");
}
if isEntryname("오번Buy") Then {
if CrossDown(C, max(sunhang1, sunhang2)) then ExitLong("오번el1");
if MarketPosition == 1 then ExitLong("5익절", atlimit, EntryPrice+4);
}
if isEntryname("육번Sell") then {
if CrossUp(C, min(sunhang1, sunhang2)) Then exitshort("육번es1");
if MarketPosition == -1 then ExitShort("6익절", atlimit, EntryPrice-4);
}
if CrossUp(중기, 장기) then buy("칠번Buy");
if CrossDown(ema(c,30), ema(c,580)) then sell("팔번Sell");
if IsEntryName("칠번Buy") then {
ExitLong("칠번atrel", AtStop, Var1-ATRstop);}
if IsEntryName("팔번Sell") Then {
ExitShort("팔번atres",AtStop, Var2+ATRstop);}
# 매수진입
If stime >=090500 and LemaV > LemaV[1] then {
if CrossUp(C, emaV) Then
buy("구번buy");
}
# 매도진입
If stime >=090500 and LemaV < LemaV[1] then {
if Crossdown(C, emaV) Then
sell("십번sell");
}
if IsEntryName("구번buy") Then
{ExitLong("구번atrel", AtStop, Var1-ATRstop);
}
if IsEntryName("십번sell") Then
{ExitShort("십번atres",AtStop, Var2+ATRstop);
}
SetStopLoss(0.6,PointStop);
SetStopEndofday(144200);
답변 1
예스스탁 예스스탁 답변
2015-01-09 13:52:48
안녕하세요
예스스탁입니다.
var:피봇(0),저항1(0),저항2(0),지지1(0),지지2(0),
ilmok1(0), ilmok2(0), ilmok3(0), sunhang1(0), sunhang2(0),
emaV(0),중기(0),중장기(0),장기(0), MacdV(0), MacdS(0), MacdOsc(0),
LemaV(0), LmacdV(0), LmacdS(0), LmacdOsc(0),adxv(0),atrv(0),atrstop(0),cnt(0),posHigh(0), posLow(0);
피봇 = (DayHigh(1)+daylow(1)+dayclose(1))/3 ;
저항1 = 2 * 피봇 - daylow(1);
저항2 = 피봇 + DayHigh(1)-DayLow(1);
지지1 = 2 * 피봇 - DayHigh(1);
지지2 = 피봇 - DayHigh(1) + DayLow(1);
중기=ema(c,15);
중장기=ema(c,30);
장기=ema(c,400);
adxv=adx(20);
atrv=atr(10);
atrstop=iff(adxv>25 and adxv>adxv[1],atrv*2,atrv*10);
var1 = Highest(h,BarsSinceEntry+1);
var2 = Lowest(L,BarsSinceEntry+1);
#1 macd + ema
emaV = ema(C,300);
MacdV = macd(20,76);
MacdS = ema(MacdV,190);
MacdOsc = MacdV-MacdS;
#2 #1을 다시 변형
LemaV = ema(C,300*1.8);
LmacdV = macd(20*1.8,76*1.8);
LmacdS = ema(MacdV*1.8,190*1.8);
LmacdOsc = (LmacdV-LmacdS)*1.8;
If sTime>=090500 and CrossUp(c, 저항2) then {
if MarketPosition == 0 or (MarketPosition == 1 and C >= LatestEntryPrice(0)+1) Then
Buy("일번buy");
}
If sTime>=091500 and CrossDown(C,지지2) then {
if MarketPosition == 0 or (MarketPosition == -1 and C <= LatestEntryPrice(0)-1) Then
Sell("사번sell");
}
if stime>=092000 and CrossUp (c, 지지1) then {
if MarketPosition == 0 or (MarketPosition == 1 and C >= LatestEntryPrice(0)+1) Then
Buy("삼번buy");
}
if stime>=092000 and CrossDown(c, 저항1) then {
if MarketPosition == 0 or (MarketPosition == -1 and C <= LatestEntryPrice(0)-1) Then
Sell("이번sell");
}
if IsEntryName("일번buy") Then
{ExitLong("일번atrEL", AtStop, Var1-ATRstop);
If c<ema(c,20) and ema(c,20)[1]>Ema(c,20) then ExitLong("일번2EL");
}
if IsEntryName("사번sell") Then
{ ExitShort("사번atrES",AtStop, Var2+ATRstop);
if CrossUp(c,중기) then ExitShort("사번2ES");
}
if IsEntryName("삼번buy") then {
ExitLong("삼번atrEL", AtStop, Var1-ATRstop);
If CrossDown(c,저항1) then ExitLong("삼번2EL");
}
if IsEntryName("이번sell") then {
ExitShort("이번atrES", AtStop, Var2+ATRstop);
If CrossUp(c,피봇)and c<EntryPrice then ExitShort("이번2es");
}
ilmok1 = (highest(H,15)+lowest(L,15))/2;
ilmok2 = (highest(H,15*3)+lowest(L,15*3))/2;
ilmok3 = (highest(H,15*3*2)+lowest(L,15*3*2))/2;
sunhang1 = (ilmok1+ilmok2)/2 ;// "선행스팬1"
sunhang2 = ilmok3; // "선행스팬2"
if dayindex() == 23+1 then {
if accumN(iff( C > max(sunhang1, sunhang2),1,0),24) == 24 then {
if MarketPosition == 0 or (MarketPosition == 1 and C >= LatestEntryPrice(0)+1) Then
buy("오번Buy");
}
if accumN(iff( C < min(sunhang1, sunhang2),1,0), 14) == 14 then {
if MarketPosition == 0 or (MarketPosition == -1 and C <= LatestEntryPrice(0)-1) Then
sell("육번Sell");
}
}
if isEntryname("오번Buy") Then {
if CrossDown(C, max(sunhang1, sunhang2)) then ExitLong("오번el1");
if MarketPosition == 1 then ExitLong("5익절", atlimit, EntryPrice+4);
}
if isEntryname("육번Sell") then {
if CrossUp(C, min(sunhang1, sunhang2)) Then exitshort("육번es1");
if MarketPosition == -1 then ExitShort("6익절", atlimit, EntryPrice-4);
}
if CrossUp(중기, 장기) then {
if MarketPosition == 0 or (MarketPosition == 1 and C >= LatestEntryPrice(0)+1) Then
buy("칠번Buy");
}
if CrossDown(ema(c,30), ema(c,580)) then {
if MarketPosition == 0 or (MarketPosition == -1 and C <= LatestEntryPrice(0)-1) Then
sell("팔번Sell");
}
if IsEntryName("칠번Buy") then {
ExitLong("칠번atrel", AtStop, Var1-ATRstop);}
if IsEntryName("팔번Sell") Then {
ExitShort("팔번atres",AtStop, Var2+ATRstop);}
# 매수진입
If stime >=090500 and LemaV > LemaV[1] then {
if CrossUp(C, emaV) Then{
if MarketPosition == 0 or (MarketPosition == 1 and C >= LatestEntryPrice(0)+1) Then
buy("구번buy");
}
}
# 매도진입
If stime >=090500 and LemaV < LemaV[1] then {
if Crossdown(C, emaV) Then{
if MarketPosition == 0 or (MarketPosition == -1 and C <= LatestEntryPrice(0)-1) Then
sell("십번sell");
}
}
if IsEntryName("구번buy") Then
{ExitLong("구번atrel", AtStop, Var1-ATRstop);
}
if IsEntryName("십번sell") Then
{ExitShort("십번atres",AtStop, Var2+ATRstop);
}
SetStopLoss(0.6,PointStop);
SetStopEndofday(144200);
즐거운 하루되세요
> 머니사이언스 님이 쓴 글입니다.
> 제목 : 문의드립니다(피라미딩)
> 39827번과 관련해서 식을 넣으려고 했는데 잘 안되네요^^;;
아래식을 피라미딩 진입 들어갈때 전에 진입한 것이 1포인트 이상 이익났을때만
추가 진입이 될수 있도록 수정 부탁드립니다..
=============================================================
var:피봇(0),저항1(0),저항2(0),지지1(0),지지2(0),
ilmok1(0), ilmok2(0), ilmok3(0), sunhang1(0), sunhang2(0),
emaV(0),중기(0),중장기(0),장기(0), MacdV(0), MacdS(0), MacdOsc(0),
LemaV(0), LmacdV(0), LmacdS(0), LmacdOsc(0),adxv(0),atrv(0),atrstop(0),cnt(0),posHigh(0), posLow(0);
피봇 = (DayHigh(1)+daylow(1)+dayclose(1))/3 ;
저항1 = 2 * 피봇 - daylow(1);
저항2 = 피봇 + DayHigh(1)-DayLow(1);
지지1 = 2 * 피봇 - DayHigh(1);
지지2 = 피봇 - DayHigh(1) + DayLow(1);
중기=ema(c,15);
중장기=ema(c,30);
장기=ema(c,400);
adxv=adx(20);
atrv=atr(10);
atrstop=iff(adxv>25 and adxv>adxv[1],atrv*2,atrv*10);
var1 = Highest(h,BarsSinceEntry+1);
var2 = Lowest(L,BarsSinceEntry+1);
#1 macd + ema
emaV = ema(C,300);
MacdV = macd(20,76);
MacdS = ema(MacdV,190);
MacdOsc = MacdV-MacdS;
#2 #1을 다시 변형
LemaV = ema(C,300*1.8);
LmacdV = macd(20*1.8,76*1.8);
LmacdS = ema(MacdV*1.8,190*1.8);
LmacdOsc = (LmacdV-LmacdS)*1.8;
If sTime>=090500 and CrossUp(c, 저항2) then Buy("일번buy");
If sTime>=091500 and CrossDown(C,지지2) then Sell("사번sell");
if stime>=092000 and CrossUp (c, 지지1) then Buy("삼번buy");
if stime>=092000 and CrossDown(c, 저항1) then Sell("이번sell");
if IsEntryName("일번buy") Then
{ExitLong("일번atrEL", AtStop, Var1-ATRstop);
If c<ema(c,20) and ema(c,20)[1]>Ema(c,20) then ExitLong("일번2EL");
}
if IsEntryName("사번sell") Then
{ ExitShort("사번atrES",AtStop, Var2+ATRstop);
if CrossUp(c,중기) then ExitShort("사번2ES");
}
if IsEntryName("삼번buy") then {
ExitLong("삼번atrEL", AtStop, Var1-ATRstop);
If CrossDown(c,저항1) then ExitLong("삼번2EL");
}
if IsEntryName("이번sell") then {
ExitShort("이번atrES", AtStop, Var2+ATRstop);
If CrossUp(c,피봇)and c<EntryPrice then ExitShort("이번2es");
}
ilmok1 = (highest(H,15)+lowest(L,15))/2;
ilmok2 = (highest(H,15*3)+lowest(L,15*3))/2;
ilmok3 = (highest(H,15*3*2)+lowest(L,15*3*2))/2;
sunhang1 = (ilmok1+ilmok2)/2 ;// "선행스팬1"
sunhang2 = ilmok3; // "선행스팬2"
if dayindex() == 23+1 then {
if accumN(iff( C > max(sunhang1, sunhang2),1,0),24) == 24 then buy("오번Buy");
if accumN(iff( C < min(sunhang1, sunhang2),1,0), 14) == 14 then sell("육번Sell");
}
if isEntryname("오번Buy") Then {
if CrossDown(C, max(sunhang1, sunhang2)) then ExitLong("오번el1");
if MarketPosition == 1 then ExitLong("5익절", atlimit, EntryPrice+4);
}
if isEntryname("육번Sell") then {
if CrossUp(C, min(sunhang1, sunhang2)) Then exitshort("육번es1");
if MarketPosition == -1 then ExitShort("6익절", atlimit, EntryPrice-4);
}
if CrossUp(중기, 장기) then buy("칠번Buy");
if CrossDown(ema(c,30), ema(c,580)) then sell("팔번Sell");
if IsEntryName("칠번Buy") then {
ExitLong("칠번atrel", AtStop, Var1-ATRstop);}
if IsEntryName("팔번Sell") Then {
ExitShort("팔번atres",AtStop, Var2+ATRstop);}
# 매수진입
If stime >=090500 and LemaV > LemaV[1] then {
if CrossUp(C, emaV) Then
buy("구번buy");
}
# 매도진입
If stime >=090500 and LemaV < LemaV[1] then {
if Crossdown(C, emaV) Then
sell("십번sell");
}
if IsEntryName("구번buy") Then
{ExitLong("구번atrel", AtStop, Var1-ATRstop);
}
if IsEntryName("십번sell") Then
{ExitShort("십번atres",AtStop, Var2+ATRstop);
}
SetStopLoss(0.6,PointStop);
SetStopEndofday(144200);
다음글