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

[amibroker] Re: Is it passable to hide all arrows for all crosses except the last one.



PureBytes Links

Trading Reference Links

#include <./../Basic Charts/Price.afl>;

myBuy=Cross(MACD(),Signal());
mySell=Cross(Signal(), MACD());

//PlotShapes( myBuy * shapeUpArrow + mySell * shapeDownArrow, IIf( 
myBuy, colorGreen, colorRed ) );

Buy = Cross(Cum(myBuy) == LastValue(Cum(myBuy)), 0.5);
Sell = Cross(Cum(mySell) == LastValue(Cum(mySell)), 0.5);

PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy, 
colorGreen, colorRed ) );

BR, Zoli.

--- In amibroker@xxxxxxxxxxxxxxx, "Mohammed" <softnews2003@xxx> wrote:
>
> 
> I use :
> 
> Buy=Cross(MACD(),Signal());
> 
> Sell=Cross(Signal(), MACD());
> 
> PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy,
> colorGreen, colorRed ) );
> 
> Is it passable to hide all arrows for all crosses except the last 
one.
> 
> Regards,
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM