Firstly be very careful how you write the Buy condition statements.
If you get Buy==1 and Buy==sigscalein you could very well end up with
Buy==sigscaleout
Remember sigscalein==99998 and sigscaleout==99999

try this exploration and change which Buy statement is used

Buy = (C>Ref(C,-1)) + (C>Ref(C,-2))*sigScaleIn;
//Buy = (C>Ref(C,-2))*sigScaleIn + (C>Ref(C,-1));

//Buy = IIf(C>Ref(C,-1),1, IIf(C>Ref(C,-2),sigScaleIn, 0));
//Buy = IIf(C>Ref(C,-2),sigScaleIn, IIf(C>Ref(C,-1),1, 0));
Filter=1;
AddColumn(C>Ref(C,-1),"C>C1",1);
AddColumn(C>Ref(C,-2),"C>C2",1);
AddColumn(Buy,"buy",1);
AddColumn(sigScaleIn,"In",1);
AddColumn(sigScaleOut,"Out",1);

as above plot the shapes separaqtely, do not combine with a + as in
shape = shapeuparrow*buy + shapehollwuparrow*(buy==sigscalein) because
these are numbers and will be added together if both conditions are
true
use something like this
PlotShapes( shapeUpArrow*(Buy==1), colorGreen, 0, L, -12 );
PlotShapes( shapeHollowUpArrow*(Buy==sigScaleIn), colorGreen, 0, L, -12 );

similarly with sell if you use applystops where sell values are not  ==1

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com

On 08/02/2008, gmorlosky <[EMAIL PROTECTED]> wrote:
> I want to have a hollow shape on all buys after the first buy when
> scaling in, but since my second buy is designated by BUY = Buy +
> sigScaleIn etc., how do I plot the scaled in buys?
>
> PlotShapes( Buy* shapeUpArrow , buycolor, 0);
> // next line doesn't work.....
> PlotShapes( Buy* shapeHollowUpArrow, buyagaincolor, 0);
> PlotShapes( Sell* shapeDownArrow , sellcolor, 0);
>

Reply via email to