예스스탁
예스스탁 답변
2025-02-18 10:51:04
안녕하세요
예스스탁입니다.
Input : short1(12), long1(26), signal1(9);
Input : short2(24), long2(52), signal2(18);
Var : MACDv1(0), MACDs1(0),macdo1(0),tx1(0);
Var : MACDv2(0), MACDs2(0),macdo2(0),tx2(0);
MACDv1 = MACD(short1, long1);
MACDs1 = ema(MACDv1,signal1);
macdo1 = MACDv1-MACDs1;
if macdo1 > 0 then
{
plot1(macdo1, "osc1+");
Plot2(0, "osc1-");
}
else
{
Plot1(0, "osc1+");
Plot2(macdo1, "osc1-");
}
Plot3(MACDv1, "MACD",IFf(MACDV1>MACDV1[1],RED,BLUE));
Plot4(MACDs1, "MACDSignal");
MACDv2 = MACD(short2, long2);
MACDs2 = ema(MACDv2,signal2);
macdo2 = MACDv2-MACDs2;
if macdo2 > 0 then
{
plot5(macdo2, "osc2+");
Plot6(0, "osc2-");
}
else
{
Plot5(0, "osc2+");
Plot6(macdo2, "osc2-");
}
Plot7(MACDv2, "MACD2",IFf(MACDV2>MACDV2[1],RED,BLUE));
Plot8(MACDs2, "Signal2");
PlotBaseLine1(0, "기준선1");
if crossup(MACDV1,0) Then
{
tx1 = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,Black);
}
if CrossDown(MACDV1,0) Then
{
tx1 = Text_New(sDate,sTime,H,"▼");
Text_SetStyle(tx1,2,1);
Text_SetColor(tx1,Black);
}
if crossup(MACDV2,0) Then
{
tx2 = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,Black);
}
if CrossDown(MACDV2,0) Then
{
tx1 = Text_New(sDate,sTime,H,"▼");
Text_SetStyle(tx2,2,1);
Text_SetColor(tx2,Black);
}
즐거운 하루되세요
> 용각산 님이 쓴 글입니다.
> 제목 : 수식수정
> 78129번 MACD의값이 0을상향돌파시 화살표시
0읗하향돌파시 화살표시 잘 부탁드립니다