커뮤니티
수식 문의 드립니다
관리자님 수고 많으십니다.
하기식을 data2 식으로 만들어 주시면감사 하겠습니다.
--------------------- 하기 ---------------------
Inputs: ShortPeriod(2),LongPeriod(5);
Variables: Fval(0),FvalFast(0),FvalSlow(0);
Fval = ((Close - Close[1]) * Volume) ;
FvalFast = Ema(Fval, ShortPeriod);
FvalSlow = Ema(Fval, LongPeriod);
Input : Period(2) ;
var : DMIv(0),DP(0),DM(0);
DMIv = DMI(Period);
DP = DIPlus(Period);
DM = DIMinus(Period);
input : P81(15),P82(20);
var18 = trix(P81);
var28 = ema(var18,p82);
if CrossUp(FvalSlow,0) Then Buy();
if CrossDown(FvalSlow,0) then ExitLong();
if var18< var18[1] && RSI(9)>70 Then ExitLong();
if MA(C,20)>MA(C,60) && var18> var18[1]&& var18[1]< var18[2] Then Buy();
if CrossUp(rsi(9),80) Then ExitLong();
if MA(C,20)>MA(C,60) && CrossDowN(CCI(9),-150) Then Buy();
SetStopProfittarget(1000,PercentStop);
SetStopProfittarget(500,PercentStop);
SetStopProfittarget(300,PercentStop);
SetStopProfittarget(400,PercentStop);
SetStopProfittarget(200,PercentStop);