답변완료
macd 그물망
input : 기간1(12),기간2(26),기간3(9);
var1 = MACD(기간1,기간2);
var2 = wma(var1,기간3);
var3 = wma(wma(var1,기간3),기간3);
var4 = wma(wma(wma(var1,기간3),기간3),기간3);
var5 = wma(wma(wma(wma(var1,기간3),기간3),기간3),기간3);
plot1(var1);
plot2(var2);
plot3(var3);
plot4(var4);
plot5(var5);
var2가(var1 아님) var5 를 상승 돌파하면 매수,반대면 매도 시스템 부탁합니다.
2022-05-29
1390
글번호 159394
시스템
답변완료
볼밴macd 다이버전스 알람
input : FastLen(30),SlowLen(90),Length(20),Stdv(1.1);
var : bbmacd(0),avgv(0),sdev(0),r(0),b(0),UpperBand(0),LowerBand(0);
var : tx(0);
bbMacd = ma(c,FastLen)-ma(c,SlowLen);
avgv = ma(bbmacd,Length);
sDev = std(bbMacd,Length);
UpperBand = avgv+(StDv*sDev);
LowerBand = avgv-(StDv*sDev);
if bbMacd > bbMacd[1] then
{
r=255;
b=0;
}
else
{
r=0;
b=255;
}
plot1(UpperBand,"UpperBand",RGB(0,0,255));
plot2(LowerBand,"LowerBand",RGB(255,0,0));
tx = Text_New_Self(sdate,stime,bbMacd,"●");
Text_SetColor(tx,rgb(r,0,b));
bbmacd가 상승 전환 될 때마다 두번째 빨간점에 알람,
하락 전환 할 때에도 두번째 파란점에 알람 울리게 해주시고,
upperband와 lowerband 선은 안보여도 되는데 설정에서 둘중 하나만 해제하면 괜찮은데 둘다 체크 해제하면 bbmacd 점그래프가 고저가 없어지고 수평선으로 바뀌어 상승 하락의 구별이 잘 안됩니다.plot 선을 체크 해제해도 bbmacd 고저가 보이도록 부탁합니다.
2022-05-29
1606
글번호 159391
지표
답변완료
부탁드립니다.
다음의 수식을 종목검색식으로 부탁드립니다.
C_Bp= (C-BBandsDown(Period,D1)) / (BBandsUp(Period, D1) - BBandsDown(Period,D1))*100;
M_Bp= ((C+O)/2-BBandsDown(Period,D1)) / (BBandsUp(Period, D1) - BBandsDown(Period,D1))*100;
BW=(BBandsUp(Period,d1)-BBandsDown(Period,d1)) / BBandsC(Period,d1)*100;
M조건= M_Bp>-50 && M_Bp <= 100;
S조건=sum(M조건, 연속횟수) == 연속횟수;
W조건=BW<=20;
BW조건=sum(W조건, 연속횟수) == 연속횟수;
BW조건(1) && S조건(1) && CrossUp(C_Bp, 100)
2022-05-29
1118
글번호 159390
종목검색
답변완료
수정 부탁드립니다
input : P(200),N(3);
var : mav(0),T(0),S(0);
var1 = ma(C,15);
Var2 = ma(C,55);
Var3 = ma(c,5);
mav = ma(C,P); // mav=240
if T <= 0 and C > mav
Then
{
T = 1;
S = 0;
}
if T >= 0 and C < mav
Then
{
T = -1;
S = 0;
}
if T == -1 Then
{
if ((C < O) or (c>o)) and O <= mav
and var1>mav and Var2>mav # 원본수식 20, 60 > 240
and ((var1>mav) or(Var2>mav))
and c<var1 and c<Var2
and Var3 <= mav
Then
{
S = S+1;
if S <= N Then
PlotPaintBar(O,C,"강조",black,DEf,7);
>>>> 수식 첨부
}
}
위 수식 중 강조 아래 부분에 별표"☆"가 표시되도록 수식을 첨부되도록 하고 싶습니다
tx = Text_New(sDate,sTime,L,"☆");
Text_SetStyle(tx,2,4);
Text_SetColor(tx,deeppink);
2022-05-29
1086
글번호 159389
강조
답변완료
수식 부탁드립니다
수고하십니다.
아래 지표식에서 [HTM1]의 사용자 함수식 부탁합니다.
이때 [trend1]이나 다른 변수의 사용자 함수도 필요한지 모르겠네요....?
감사합니다. 수고하세요
################
Input : ATRperiod1(1000),amplitude1(58);
var : trend1(0),nexttrend1(0),maxlowPrice1(0),minhighPrice1(0);
var : up1(0),down1(0),atrHigh1(0),atrLow1(0),arrowup1(0),arrowdown1(0);
var : atr21(0),dev1(0),highPrice1(0),lowPrice1(0),highma1(0),lowma1(0),midma1(0),HTM1(0);
atr21 = atr(ATRperiod1) / 2 ;
dev1 = atr21 * 5.5 ;
highPrice1 = Highest(H,amplitude1*1.5);
lowPrice1 = Lowest(L,amplitude1*1.5);
highma1 = ma(high, amplitude1*1.25);
lowma1 = ma(low, amplitude1*0.75);
midma1 = (highma1+lowma1)/2 ;
if nexttrend1 == 1 Then
{
maxlowPrice1 = max(lowPrice1, maxlowPrice1);
if midma1 < maxlowPrice1 and close < iff(isnan(low[1])==true,low,Low[1]) Then
{
trend1 = 1;
nexttrend1 = 0;
minhighPrice1 = highPrice1;
}
}
else
{
minhighPrice1 = min(highPrice1, minhighPrice1);
if midma1 > minhighPrice1 and close > iff(isnan(high[1])==true,high,high[1]) Then
{
trend1 = 0;
nexttrend1 = 1;
maxlowPrice1 = lowPrice1;
}
}
if trend1 == 0 Then
{
if IsNaN(trend1[1]) == False and trend1[1] != 0 Then
{
up1 = iff(IsNaN(down1[1]) == true,down1,down1[1]);
arrowup1 = up1 - atr21;
}
else
{
up1 = iff(IsNan(up1[1]) == true, maxlowPrice1 , max(maxlowPrice1, up1[1]));
}
atrHigh1 = up1 + dev1;
atrLow1 = up1 - dev1;
}
else
{
if isnan(trend1[1]) == False and trend1[1] != 1 Then
{
down1 = iff(IsNan(up1[1]) == true, up1 , up1[1]);
arrowdown1 = down1 + atr21;
}
else
{
down1 = iff(IsNan(down1[1]) == true, minhighPrice1 ,min(minhighPrice1, down1[1]));
}
atrHigh1 = down1 + dev1;
atrLow1 = down1 - dev1;
}
HTM1 = iff(trend1 == 0 , up1 , down1);
plot11(HTM1, "HTM1",iff(trend1 == 0 ,RED, BluE));
if trend1 != trend1[1] Then
{ if trend1 == 0 Then plot12(HTM1-0.1, "HTM1점",red);
Else plot12(HTM1+0.1, "HTM1점",Blue);
}
2022-05-29
1166
글번호 159386
사용자 함수