try this CondL = L > Ref(L,-1) AND Ref(L,-1) > Ref(L,-2) AND Ref(L,-2) < Ref(L,-3) AND Ref(L,-3) < Ref(L,-4); CondH = H < Ref(H,-1) AND Ref(H,-1) < Ref(H,-2) AND Ref(H,-2) > Ref(H,-3) AND Ref(H,-3) > Ref(H,-4);
PlotShapes( ref(CondL,2)* shapeUpTriangle, colorRed, 0, L, -5); PlotShapes( ref(CondH,2)*shapeDownTriangle, colorGreen, 0, H, -5); -- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://www.aflwriting.com On 10/05/07, Kevin Glenn <[EMAIL PROTECTED]> wrote:
I'll give that one a shot and see if it works...now for a really simple question that I am unable to find an answer to looking through the documentation. If I'm using the plotshapes function and I want to highlight something that happened two bars ago (i.e. I know it happened two bars ago but only after two bars passed since the event) how do I get the shape to show up at the event and not when it becomes evident? Here's my current code...basically I'm just using a three bar high/low pivot. PlotShapes(IIf(L > Ref(L,-1) AND Ref(L,-1) > Ref(L,-2) AND Ref(L,-2) < Ref(L,-3) AND Ref(L,-3) < Ref(L,-4), shapeUpTriangle, shapeNone), colorRed, 0, ypostion=Ref(L,-2), Offset=-5); PlotShapes(IIf(H < Ref(H,-1) AND Ref(H,-1) < Ref(H,-2) AND Ref(H,-2) > Ref(H,-3) AND Ref(H,-3) > Ref(H,-4), shapeDownTriangle, shapeNone), colorGreen, 0, ypostion=Ref(H,-2), Offset=-5); ------------------------------ <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>
