커뮤니티

검색식 부탁합니다

프로필 이미지
행복만땅
2024-11-21 23:54:14
480
글번호 185525
답변완료
wavetrend 지표입니다. CrossUp(WT1, WT2)일때 종목검색식 부탁합니다 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 = ema(priceV, Length); diffMa = ema(abs(priceV - maV), Length); diffNor = (priceV - maV) / (0.015 * diffMa); diffNorMa = ema(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", green); plot6(WT2,"WT2", red); plot7(WT1-WT2,"WT1-WT2", iff(WT1-WT2>0, RGB(150,0,0), RGB(0,0,200))); plot8(0,"0선", GRAY); 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
프로필 이미지

예스스탁 예스스탁 답변

2024-11-22 08:44:33

안녕하세요 예스스탁입니다. 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 = ema(priceV, Length); diffMa = ema(abs(priceV - maV), Length); diffNor = (priceV - maV) / (0.015 * diffMa); diffNorMa = ema(diffNor, avgLength); WT1 = diffNorMa; WT2 = ma(WT1,4); if CrossUp(WT1, WT2) Then Find(1); 즐거운 하루되세요 > 행복만땅 님이 쓴 글입니다. > 제목 : 검색식 부탁합니다 > wavetrend 지표입니다. CrossUp(WT1, WT2)일때 종목검색식 부탁합니다 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 = ema(priceV, Length); diffMa = ema(abs(priceV - maV), Length); diffNor = (priceV - maV) / (0.015 * diffMa); diffNorMa = ema(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", green); plot6(WT2,"WT2", red); plot7(WT1-WT2,"WT1-WT2", iff(WT1-WT2>0, RGB(150,0,0), RGB(0,0,200))); plot8(0,"0선", GRAY); 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);