[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Subject: Re: TJ - Solution please



PureBytes Links

Trading Reference Links




Here is my definition of a peakHigh greater than high 
previous day and following day. Most recent high greater than close two days 
earlier.condP=Ref(H,-1)>Ref(H,-2) AND Ref(H,-1)>H AND 
Ref(H,-1)>Ref(C,-3);The conditions for the peak prior to this one are 
the same except that the high should be greater than the peak it is 
connecting to.It was Dimitris who provided me the code for 
IB.Hope this helps 
 
<FONT 
size=2>********************************************************
If I understand well, you search for pairs P1, 
P2.
The green candles are all the CONDP occurrences.
The red triangles P1 have the previous peak 
higher.
The blue triangles have the next peak lower.
The rest green candles are of no interest.
Do you want now to link P2, P1 pair with a line, like the 
dotted black line of the gif ?
Or you want a zig line connecting cascade P1,P2,P1,P2,... 
?

Please advise.
 
CONDP=Ref(H,-1)>Ref(H,-2) AND Ref(H,-1)>H AND 
Ref(H,-1)>Ref(C,-3);P11=Ref(CONDP,1);H1=ValueWhen(P11,H,1);H2=ValueWhen(P11,H,2);H0=ValueWhen(P11,H,0);P1=P11 
AND H2>H1;P2=P11 AND 
H1>H0;PlotShapes(shapeUpTriangle*P1,colorRed);PlotShapes(shapeDownTriangle*P2,colorBlue);Plot(C,"",p11*colorYellow+1,64);
 
Please advise.
Dimitris Tsokakis






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Attachment:
epi.gif

Attachment: Description: "Description: GIF image"