PureBytes Links
Trading Reference Links
|
At 12:26 PM -0400 6/14/99, Canyon678@xxxxxxx wrote:
>Am trying to plot a Paint bar , which plots the Highest high.
>The code looks alright to me. But it doesnt Paint any bars. On going through
>it visually, I see where many of the conditions are being met.
>
>I took the code from the builtin Showme " Brkout of X bar High "
>and changed it to a Paintbar indicator.
>
>Any suggestions.
>
>IF currentbar >1 and price > Highest(High,Len1)
>
The function:
Highest(High, Len1)
includes the current bar. Therefore, the "price" can never be higher than it.
Try:
IF currentbar >1 and price > Highest(High,Len1)[1];
(There is a good explanation of this in the on-line help for the "Highest"
function.)
Bob Fulks
|