커뮤니티
전일종가가 음봉이고... 당일 양봉일때 매수...
2015-08-11 03:04:05
171
글번호 89384
시스템식 1로 했을때 ..정확히 맞는데요...
시스템식1)
Inputs: Len1(12), Line1(30), Line2(26),Line3(9),StopTick(0.5), Period1(3), Period2(3);//StopTick(0.15) : 최대 500,000원 손실제한
vars: SPDM(0), SMDM(0), STR(0), DIP(0), DIM(0), DX(0), mADX(0),v1(0),v2(0),v3(0),v4(0);
SPDM = ema(iff(H-H[1]>0 && H-H[1]>L[1]-L,H-H[1],0),Len1);
SMDM= ema(iff(L[1]-L>0 && H-H[1]<L[1]-L,L[1]-L,0),Len1);
STR = ema(TrueRange,Len1);
DIP = SPDM/STR*100;
DIM = SMDM/STR*100;
DX = abs(DIP-DIM)/abs(DIP+DIM)*100;
mADX = ema(DX,Len1);
v1 = StochasticsK(Len1,Period1);
v2 = StochasticsD(Len1,Period1,Period2);
v3 = MACD(Len1, Line2);
v4 = ema(v3, Line3);
// = [공격형][매수진입]단타]
if C[1]<O[1] and c>o and MarketPosition == 0 Then
{
Buy("매수3");
}
SetStopLoss(StopTick, PointStop);
SetStopProfittarget(StopTick, PointStop);
============================================================================
-시스템식2로 했을때...이상하게 나옵니다. 첨부파일1번 참조..
Inputs: Len1(12), Line1(30), Line2(26),Line3(9),StopTick(0.5), Period1(3), Period2(3);//StopTick(0.15) : 최대 500,000원 손실제한
vars: SPDM(0), SMDM(0), STR(0), DIP(0), DIM(0), DX(0), mADX(0),v1(0),v2(0),v3(0),v4(0);
SPDM = ema(iff(H-H[1]>0 && H-H[1]>L[1]-L,H-H[1],0),Len1);
SMDM= ema(iff(L[1]-L>0 && H-H[1]<L[1]-L,L[1]-L,0),Len1);
STR = ema(TrueRange,Len1);
DIP = SPDM/STR*100;
DIM = SMDM/STR*100;
DX = abs(DIP-DIM)/abs(DIP+DIM)*100;
mADX = ema(DX,Len1);
v1 = StochasticsK(Len1,Period1);
v2 = StochasticsD(Len1,Period1,Period2);
v3 = MACD(Len1, Line2);
v4 = ema(v3, Line3);
// = [공격형][매수진입]단타]
if C[1]<O[1] and C>O and v1[1]<v2[1] and v1>v2 and v[1] < v and v1[1] < v1 and (DIM > DIP and mADX<mADX[1]) or (DIP>DIM and mADX>mADX[1])and mADX>=LINE1 and MarketPosition == 0 Then
{
Buy("매수3");
}
SetStopLoss(StopTick, PointStop);
SetStopProfittarget(StopTick, PointStop);
====================================================
미칠지경입니다..어디가 잘못되었는지 부탁드립니다.. 수고하세요..
- 1. 89890_88888.jpg (0.21 MB)
답변 2
예스스탁 예스스탁 답변
2015-08-11 13:55:59
안녕하세요
예스스탁입니다.
수식에 or문 때문입니다.
if A and (B) or (C) and B then
A조건과 B조건이 동시만족하거나 또는 C와 B가동시만족하면 신호
작성하신 식은 위와 같은 구조로 작성되어 있습니다.
아래와 같이 구조로 작성하시면 됩니다
if A and (B or C) and B then
수정한 식입니다.
if C[1]<O[1] and
C>O and
v1[1]<v2[1] and
v1>v2 and
v[1] < v and
v1[1] < v1 and
((DIM > DIP and mADX<mADX[1]) or
(DIP>DIM and mADX>mADX[1])) and
mADX>=LINE1 and MarketPosition == 0 Then
{
Buy("매수3");
}
즐거운 하루되세요
> 수급저격수 님이 쓴 글입니다.
> 제목 : 전일종가가 음봉이고... 당일 양봉일때 매수...
> 시스템식 1로 했을때 ..정확히 맞는데요...
시스템식1)
Inputs: Len1(12), Line1(30), Line2(26),Line3(9),StopTick(0.5), Period1(3), Period2(3);//StopTick(0.15) : 최대 500,000원 손실제한
vars: SPDM(0), SMDM(0), STR(0), DIP(0), DIM(0), DX(0), mADX(0),v1(0),v2(0),v3(0),v4(0);
SPDM = ema(iff(H-H[1]>0 && H-H[1]>L[1]-L,H-H[1],0),Len1);
SMDM= ema(iff(L[1]-L>0 && H-H[1]<L[1]-L,L[1]-L,0),Len1);
STR = ema(TrueRange,Len1);
DIP = SPDM/STR*100;
DIM = SMDM/STR*100;
DX = abs(DIP-DIM)/abs(DIP+DIM)*100;
mADX = ema(DX,Len1);
v1 = StochasticsK(Len1,Period1);
v2 = StochasticsD(Len1,Period1,Period2);
v3 = MACD(Len1, Line2);
v4 = ema(v3, Line3);
// = [공격형][매수진입]단타]
if C[1]<O[1] and c>o and MarketPosition == 0 Then
{
Buy("매수3");
}
SetStopLoss(StopTick, PointStop);
SetStopProfittarget(StopTick, PointStop);
============================================================================
-시스템식2로 했을때...이상하게 나옵니다. 첨부파일1번 참조..
Inputs: Len1(12), Line1(30), Line2(26),Line3(9),StopTick(0.5), Period1(3), Period2(3);//StopTick(0.15) : 최대 500,000원 손실제한
vars: SPDM(0), SMDM(0), STR(0), DIP(0), DIM(0), DX(0), mADX(0),v1(0),v2(0),v3(0),v4(0);
SPDM = ema(iff(H-H[1]>0 && H-H[1]>L[1]-L,H-H[1],0),Len1);
SMDM= ema(iff(L[1]-L>0 && H-H[1]<L[1]-L,L[1]-L,0),Len1);
STR = ema(TrueRange,Len1);
DIP = SPDM/STR*100;
DIM = SMDM/STR*100;
DX = abs(DIP-DIM)/abs(DIP+DIM)*100;
mADX = ema(DX,Len1);
v1 = StochasticsK(Len1,Period1);
v2 = StochasticsD(Len1,Period1,Period2);
v3 = MACD(Len1, Line2);
v4 = ema(v3, Line3);
// = [공격형][매수진입]단타]
if C[1]<O[1] and C>O and v1[1]<v2[1] and v1>v2 and v[1] < v and v1[1] < v1 and (DIM > DIP and mADX<mADX[1]) or (DIP>DIM and mADX>mADX[1])and mADX>=LINE1 and MarketPosition == 0 Then
{
Buy("매수3");
}
SetStopLoss(StopTick, PointStop);
SetStopProfittarget(StopTick, PointStop);
====================================================
미칠지경입니다..어디가 잘못되었는지 부탁드립니다.. 수고하세요..
수급저격수
2015-08-11 14:37:51
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 전일종가가 음봉이고... 당일 양봉일때 매수...
> 안녕하세요
예스스탁입니다.
수식에 or문 때문입니다.
if A and (B) or (C) and B then
A조건과 B조건이 동시만족하거나 또는 C와 B가동시만족하면 신호
작성하신 식은 위와 같은 구조로 작성되어 있습니다.
아래와 같이 구조로 작성하시면 됩니다
if A and (B or C) and B then
수정한 식입니다.
if C[1]<O[1] and
C>O and
v1[1]<v2[1] and
v1>v2 and
v[1] < v and
v1[1] < v1 and
((DIM > DIP and mADX<mADX[1]) or
(DIP>DIM and mADX>mADX[1])) and
mADX>=LINE1 and MarketPosition == 0 Then
{
Buy("매수3");
}
즐거운 하루되세요
> 수급저격수 님이 쓴 글입니다.
> 제목 : 전일종가가 음봉이고... 당일 양봉일때 매수...
> 시스템식 1로 했을때 ..정확히 맞는데요...
시스템식1)
Inputs: Len1(12), Line1(30), Line2(26),Line3(9),StopTick(0.5), Period1(3), Period2(3);//StopTick(0.15) : 최대 500,000원 손실제한
vars: SPDM(0), SMDM(0), STR(0), DIP(0), DIM(0), DX(0), mADX(0),v1(0),v2(0),v3(0),v4(0);
SPDM = ema(iff(H-H[1]>0 && H-H[1]>L[1]-L,H-H[1],0),Len1);
SMDM= ema(iff(L[1]-L>0 && H-H[1]<L[1]-L,L[1]-L,0),Len1);
STR = ema(TrueRange,Len1);
DIP = SPDM/STR*100;
DIM = SMDM/STR*100;
DX = abs(DIP-DIM)/abs(DIP+DIM)*100;
mADX = ema(DX,Len1);
v1 = StochasticsK(Len1,Period1);
v2 = StochasticsD(Len1,Period1,Period2);
v3 = MACD(Len1, Line2);
v4 = ema(v3, Line3);
// = [공격형][매수진입]단타]
if C[1]<O[1] and c>o and MarketPosition == 0 Then
{
Buy("매수3");
}
SetStopLoss(StopTick, PointStop);
SetStopProfittarget(StopTick, PointStop);
============================================================================
-시스템식2로 했을때...이상하게 나옵니다. 첨부파일1번 참조..
Inputs: Len1(12), Line1(30), Line2(26),Line3(9),StopTick(0.5), Period1(3), Period2(3);//StopTick(0.15) : 최대 500,000원 손실제한
vars: SPDM(0), SMDM(0), STR(0), DIP(0), DIM(0), DX(0), mADX(0),v1(0),v2(0),v3(0),v4(0);
SPDM = ema(iff(H-H[1]>0 && H-H[1]>L[1]-L,H-H[1],0),Len1);
SMDM= ema(iff(L[1]-L>0 && H-H[1]<L[1]-L,L[1]-L,0),Len1);
STR = ema(TrueRange,Len1);
DIP = SPDM/STR*100;
DIM = SMDM/STR*100;
DX = abs(DIP-DIM)/abs(DIP+DIM)*100;
mADX = ema(DX,Len1);
v1 = StochasticsK(Len1,Period1);
v2 = StochasticsD(Len1,Period1,Period2);
v3 = MACD(Len1, Line2);
v4 = ema(v3, Line3);
// = [공격형][매수진입]단타]
if C[1]<O[1] and C>O and v1[1]<v2[1] and v1>v2 and v[1] < v and v1[1] < v1 and (DIM > DIP and mADX<mADX[1]) or (DIP>DIM and mADX>mADX[1])and mADX>=LINE1 and MarketPosition == 0 Then
{
Buy("매수3");
}
SetStopLoss(StopTick, PointStop);
SetStopProfittarget(StopTick, PointStop);
====================================================
미칠지경입니다..어디가 잘못되었는지 부탁드립니다.. 수고하세요..