커뮤니티

수정부탁드립니다.

프로필 이미지
라몬
2025-02-05 22:16:24
346
글번호 187832
답변완료
늘 감사합니다. 아래 지표중 plot5(WT1,"WT1", Red); plot6(WT2,"WT2", Blue); 이 2개의 plot을 상승 Red ,하락 Blue 로 수정 부탁드립니다. input : Length(10), avgLength(21); var : obLevel1(60), obLevel2(53),osLevel1(-60),osLevel2(-53); var : priceV(0), maV(0), diffMa(0), diffNor(0), diffNorMa(0), WT1(0), WT2(0); priceV = (H+L+C)/3; maV = wma(priceV, Length); diffMa = wma(abs(priceV - maV), Length); diffNor = (priceV - maV) / (0.015 * diffMa); diffNorMa = wma(diffNor, avgLength); WT1 = diffNorMa; WT2 = ma(WT1,4); plot1(obLevel1,"obLevel1", red); plot2(osLevel1,"osLevel1", green); plot3(obLevel2,"obLevel2", red); plot4(osLevel2,"osLevel2", green); plot5(WT1,"WT1", Red); plot6(WT2,"WT2", Blue); plot7(WT1-WT2,"WT1-WT2", iff(WT1-WT2>0, RGB(150,0,0), RGB(0,0,200))); plot8(0,"0선", blue); if CrossUp(WT1, WT2) and WT1[1] < osLevel2 Then plot9(WT1, "CrossUp", YELLOW); if CrossDown(WT1, WT2) and WT1[1] > obLevel2 Then plot10(WT1, "CrossDn", CYAN);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-02-06 10:10:22

안녕하세요 예스스탁입니다. input : Length(10), avgLength(21); var : obLevel1(60), obLevel2(53),osLevel1(-60),osLevel2(-53); var : priceV(0), maV(0), diffMa(0), diffNor(0), diffNorMa(0), WT1(0), WT2(0); priceV = (H+L+C)/3; maV = wma(priceV, Length); diffMa = wma(abs(priceV - maV), Length); diffNor = (priceV - maV) / (0.015 * diffMa); diffNorMa = wma(diffNor, avgLength); WT1 = diffNorMa; WT2 = ma(WT1,4); plot1(obLevel1,"obLevel1", red); plot2(osLevel1,"osLevel1", green); plot3(obLevel2,"obLevel2", red); plot4(osLevel2,"osLevel2", green); plot5(WT1,"WT1", iff(WT1>WT1[1],Red,Blue)); plot6(WT2,"WT2", iff(WT2>WT2[1],Red,Blue)); plot7(WT1-WT2,"WT1-WT2", iff(WT1-WT2>0, RGB(150,0,0), RGB(0,0,200))); plot8(0,"0선", blue); if CrossUp(WT1, WT2) and WT1[1] < osLevel2 Then plot9(WT1, "CrossUp", YELLOW); if CrossDown(WT1, WT2) and WT1[1] > obLevel2 Then plot10(WT1, "CrossDn", CYAN); 즐거운 하루되세요 > 라몬 님이 쓴 글입니다. > 제목 : 수정부탁드립니다. > 늘 감사합니다. 아래 지표중 plot5(WT1,"WT1", Red); plot6(WT2,"WT2", Blue); 이 2개의 plot을 상승 Red ,하락 Blue 로 수정 부탁드립니다. input : Length(10), avgLength(21); var : obLevel1(60), obLevel2(53),osLevel1(-60),osLevel2(-53); var : priceV(0), maV(0), diffMa(0), diffNor(0), diffNorMa(0), WT1(0), WT2(0); priceV = (H+L+C)/3; maV = wma(priceV, Length); diffMa = wma(abs(priceV - maV), Length); diffNor = (priceV - maV) / (0.015 * diffMa); diffNorMa = wma(diffNor, avgLength); WT1 = diffNorMa; WT2 = ma(WT1,4); plot1(obLevel1,"obLevel1", red); plot2(osLevel1,"osLevel1", green); plot3(obLevel2,"obLevel2", red); plot4(osLevel2,"osLevel2", green); plot5(WT1,"WT1", Red); plot6(WT2,"WT2", Blue); plot7(WT1-WT2,"WT1-WT2", iff(WT1-WT2>0, RGB(150,0,0), RGB(0,0,200))); plot8(0,"0선", blue); if CrossUp(WT1, WT2) and WT1[1] < osLevel2 Then plot9(WT1, "CrossUp", YELLOW); if CrossDown(WT1, WT2) and WT1[1] > obLevel2 Then plot10(WT1, "CrossDn", CYAN);