
Originally Posted by
Trade
Uufuk hocam selamlar
Kod:
ZigPerc:= Input("Zig-Zag Percentage", .1, 99, 1);
{basic peak and trough level calculation} P1:=ValueWhen(1,Peak(1,Zig(C,ZigPerc,%),ZigPerc),
Peak(1,Zig(H,ZigPerc,%),ZigPerc));
P2:=ValueWhen(1,Trough(1,Zig(C,ZigPerc,%),ZigPerc),
Trough(1,Zig(L,ZigPerc,%),ZigPerc));
{Fibonacci retracement levels calculation}
P3 := P2 + (P1-P2)*0.236;
P4 := P2 + (P1-P2)*0.382;
P5 := P2 + (P1-P2)*0.5;
P6 := P2 + (P1-P2)*0.618;
P7 := P2 + (P1-P2)*0.764;
{Plotting the levels}
P2; {through}
P3; {23.6% (76.4%) retracement}
P4; {38.2% (61.8%) retracement}
P5; {50.0% retracement}
P6; {61.8% (38.2%) retracement}
P7; {76.4% (23.6%) retracement}
P1; {peak}
Bu metastock kodunu matrikse çevirme imkanınız olursa çok sevinirim kolay gelsin iyi çalışmalar
Dostum,matriksde
peak(Nth,DATA,%Min Chng)
peakbars(Nth,DATA,%Min Chng)
trough(Nth,DATA,%Min Chng)
troughbars(Nth,DATA,%Min Chng) tanımlandı...
";" silmen kafi idi..
Kod:
ZigPerc:=1;
P1:=ValueWhen(1,Peak(1,Zig(C,ZigPerc,%),ZigPerc),Peak(1,Zig(H,ZigPerc,%),ZigPerc));
P2:=ValueWhen(1,Trough(1,Zig(C,ZigPerc,%),ZigPerc),Trough(1,Zig(L,ZigPerc,%),ZigPerc));
P3 := P2 + (P1-P2)*0.236;
P4 := P2 + (P1-P2)*0.382;
P5 := P2 + (P1-P2)*0.5;
P6 := P2 + (P1-P2)*0.618;
P7 := P2 + (P1-P2)*0.764;
P2; P3; P4; P5; P6; P7; P1
ZigPerc:= Input("Zig-Zag Percentage", .1, 99, 1); şeklinde dene sorun cıkarırsa ZigPerc:=1; yap...
Bende bazen azizlik yapıyordu,yine yaptı..
Yer İmleri