커뮤니티
문의드립니다.
2018-03-26 10:17:57
259
글번호 117681
매번 감사합니다.
1. 코딩 변환부탁드립니다.
inputs:
Line1(.9),
Line2(.2),
StochLength(8),
Period(25);
variables:
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0),
Length(0),
NormStoch(0),
SmoothStoch(0),
Premier(0);
Value1 = Stochastic( h, l, c, StochLength, 1, 3, 1, oFastK,
oFastD, oSlowK, oSlowD);
Length = iff(Period < 0, 1, squareroot(Period));
NormStoch = .1 * (oslowK - 50);
SmoothStoch = xaverage(xaverage(NormStoch, Length),
Length);
Premier = (expValue(1 * SmoothStoch) - 1) / (expValue(1 *
SmoothStoch) + 1);
plot1(Premier, “Premier”);
plot2(Line1, “1”);
plot3(Line2, “2”);
plot4(Line1 * -1, “3”);
plot5(Line2 * -1, “4”);
inputs:
StopLoss(800),
ProfitTarget(1600),
Line1(-.9),
Line2(-.2),
StochLength(8),
Period(25);
variables:
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0),
Length(0),
NormStoch(0),
SmoothStoch(0),
Premiere0);
value1 = Stochastic( h, l, c, StochLength, 1, 3, 1,
oFastK, oFastD, oSlowK, oSlowD);
Length = iff(Period < 0, 1, squareroot(Period));
NormStoch = .1 * (oslowK - 50);
SmoothStoch = xaverage(xaverage(NormStoch,
Length), Length);
Premier = (expValue(1 * SmoothStoch) - 1) /
(expValue(1 * SmoothStoch) + 1);
if Premier crosses over Line1 or Premier crosses
over Line2 then sellshort (“S1 Sell”) next bar at
market ;
if Premier crosses under Line1 * -1 or Premier
crosses under Line2 * -1 then buy (“L1 Buy”) next
bar at market ;
setstopcontract;
setstoploss(StopLoss);
setprofittarget(ProfitTarget);
답변 1
예스스탁 예스스탁 답변
2018-03-27 09:52:16
안녕하세요
예스스탁입니다.
1
inputs:
Line1(.9),
Line2(.2),
sto1(10),sto2(5),sto3(5),
Period(25);
variables:
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0),
Length(0),
NormStoch(0),
SmoothStoch(0),
Premier(0);
oFastK = FastK(sto1);
oSlowK = StochasticsK(sto1,sto2);
oSlowD = StochasticsD(sto1,sto2,sto3);
Length = iff(Period < 0, 1, squareroot(Period));
NormStoch = .1 * (oslowK - 50);
SmoothStoch = ema(ema(NormStoch, Length),Length);
Premier = (expValue(1 * SmoothStoch) - 1) / (expValue(1 *SmoothStoch) + 1);
plot1(Premier, "Premier");
plot2(Line1, "1");
plot3(Line2, "2");
plot4(Line1 * -1, "3");
plot5(Line2 * -1, "4");
2.
inputs:
StopLoss(2),
ProfitTarget(2),
Line1(-.9),
Line2(-.2),
sto1(10),sto2(5),sto3(5),
Period(25);
variables:
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0),
Length(0),
NormStoch(0),
SmoothStoch(0),
Premier(0);
oFastK = FastK(sto1);
oSlowK = StochasticsK(sto1,sto2);
oSlowD = StochasticsD(sto1,sto2,sto3);
Length = iff(Period < 0, 1, squareroot(Period));
NormStoch = .1 * (oslowK - 50);
SmoothStoch = ema(ema(NormStoch,Length), Length);
Premier = (expValue(1 * SmoothStoch) - 1) /(expValue(1 * SmoothStoch) + 1);
if crossup(Premier,Line1) or crossup(Premier,Line2) then
sell("S1",AtMarket);
if crossdown(Premier,Line1 * -1) or crossdown(Premier,Line2 * -1) then
buy ("L1",AtMarket);
setstopcontract;
setstoploss(StopLoss,PointStop);
SetStopProfittarget(ProfitTarget,PointStop);
즐거운 하루되세요
> 잡다백수 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 매번 감사합니다.
1. 코딩 변환부탁드립니다.
inputs:
Line1(.9),
Line2(.2),
StochLength(8),
Period(25);
variables:
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0),
Length(0),
NormStoch(0),
SmoothStoch(0),
Premier(0);
Value1 = Stochastic( h, l, c, StochLength, 1, 3, 1, oFastK,
oFastD, oSlowK, oSlowD);
Length = iff(Period < 0, 1, squareroot(Period));
NormStoch = .1 * (oslowK - 50);
SmoothStoch = xaverage(xaverage(NormStoch, Length),
Length);
Premier = (expValue(1 * SmoothStoch) - 1) / (expValue(1 *
SmoothStoch) + 1);
plot1(Premier, “Premier”);
plot2(Line1, “1”);
plot3(Line2, “2”);
plot4(Line1 * -1, “3”);
plot5(Line2 * -1, “4”);
inputs:
StopLoss(800),
ProfitTarget(1600),
Line1(-.9),
Line2(-.2),
StochLength(8),
Period(25);
variables:
oFastK(0),
oFastD(0),
oSlowK(0),
oSlowD(0),
Length(0),
NormStoch(0),
SmoothStoch(0),
Premiere0);
value1 = Stochastic( h, l, c, StochLength, 1, 3, 1,
oFastK, oFastD, oSlowK, oSlowD);
Length = iff(Period < 0, 1, squareroot(Period));
NormStoch = .1 * (oslowK - 50);
SmoothStoch = xaverage(xaverage(NormStoch,
Length), Length);
Premier = (expValue(1 * SmoothStoch) - 1) /
(expValue(1 * SmoothStoch) + 1);
if Premier crosses over Line1 or Premier crosses
over Line2 then sellshort (“S1 Sell”) next bar at
market ;
if Premier crosses under Line1 * -1 or Premier
crosses under Line2 * -1 then buy (“L1 Buy”) next
bar at market ;
setstopcontract;
setstoploss(StopLoss);
setprofittarget(ProfitTarget);
다음글
이전글