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

Re: [amibroker] Set Arrows



PureBytes Links

Trading Reference Links

// after buy and sell equations, and before you shape =
Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);

sai20_2000 wrote:
I am trying to set following buy and sell condition

Buy=IIf(EMA(C,3)> EMA(C,20) ,Ref(AStochRSI,1)>Ref(ASTochRSI,-1)AND
AstochRSI>50,IIf(AstochRSI >65,Cross( EMA(C,3), EMA(C,20)),Null));
Sell=IIf(EMA(C,3)< EMA(C,20) ,Ref(AStochRSI,1)<Ref(ASTochRSI,-1) AND
AStochRSI<50,IIf(AstochRSI <40,Cross(EMA(C,20), EMA(C,3)),Null));

shape=IIf((EMA(C,3)>EMA(C,20)) ,Buy * shapeUpArrow ,Sell *
shapeDownArrow);

PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy,
Low, High ) );

where Astochrsi is for period 20
Here I want to put for eg.buy arrow on chart when EMA(C,3)> EMA
(C,20) and very 1st occurance of greater value of AstochRSI than the
previous when the above condition is met,but arrows are placed on
the every subsequent occrance of rising AstochRSI. How can I limit
the arrow to the very 1st occurance only. Any help is appreciated

Regards






Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS