커뮤니티
계약수 제한
2014-01-10 08:50:01
177
글번호 71250
아레식에 잇어서 계약수를 2계약으로 제한하는 식을 넣고 싶습니다..수정 부탁드릴께요...
================
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);
#1 macd + ema
emaV = ema(C,300);
MacdV = macd(20,76);
MacdS = ema(MacdV,90);
MacdOsc = MacdV-MacdS;
#2 #1을 다시 변형
LemaV = ema(C,300*1.8);
LmacdV = macd(20*1.8,76*1.8);
LmacdS = ema(MacdV*1.8,90*1.8);
LmacdOsc = (LmacdV-LmacdS)*1.8;
# 매수진입
If (stime >= 183000 or stime < 044500) and LemaV > LemaV[1] and LmacdOsc > LmacdOsc[1] then {
if CrossUp(C, emaV) and (저항2 > 장기) then buy("구번buy");
}
if IsEntryName("구번buy") Then
ExitLong("구번atrel", AtStop, Var1-ATRstop);
if stime == 044500 and IsEntryName("구번buy") Then
exitlong();
답변 1
예스스탁 예스스탁 답변
2014-01-10 17:07:28
안녕하세용
예스스탁입니다.
input : 진입수량(2);
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);
#1 macd + ema
emaV = ema(C,300);
MacdV = macd(20,76);
MacdS = ema(MacdV,90);
MacdOsc = MacdV-MacdS;
#2 #1을 다시 변형
LemaV = ema(C,300*1.8);
LmacdV = macd(20*1.8,76*1.8);
LmacdS = ema(MacdV*1.8,90*1.8);
LmacdOsc = (LmacdV-LmacdS)*1.8;
# 매수진입
If (stime >= 183000 or stime < 044500) and LemaV > LemaV[1] and LmacdOsc > LmacdOsc[1] then {
if CrossUp(C, emaV) and (저항2 > 장기) then buy("구번buy",OnClose,def,진입수량);
}
if IsEntryName("구번buy") Then
ExitLong("구번atrel", AtStop, Var1-ATRstop);
if stime == 044500 and IsEntryName("구번buy") Then
exitlong();
즐거운 하루되세요
> 머니사이언스 님이 쓴 글입니다.
> 제목 : 계약수 제한
> 아레식에 잇어서 계약수를 2계약으로 제한하는 식을 넣고 싶습니다..수정 부탁드릴께요...
================
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);
#1 macd + ema
emaV = ema(C,300);
MacdV = macd(20,76);
MacdS = ema(MacdV,90);
MacdOsc = MacdV-MacdS;
#2 #1을 다시 변형
LemaV = ema(C,300*1.8);
LmacdV = macd(20*1.8,76*1.8);
LmacdS = ema(MacdV*1.8,90*1.8);
LmacdOsc = (LmacdV-LmacdS)*1.8;
# 매수진입
If (stime >= 183000 or stime < 044500) and LemaV > LemaV[1] and LmacdOsc > LmacdOsc[1] then {
if CrossUp(C, emaV) and (저항2 > 장기) then buy("구번buy");
}
if IsEntryName("구번buy") Then
ExitLong("구번atrel", AtStop, Var1-ATRstop);
if stime == 044500 and IsEntryName("구번buy") Then
exitlong();
다음글
이전글