PureBytes Links
Trading Reference Links
|
example
BuyCond=Cross(MFI(14),50);
//for(i=0; i<BarCount-1;i++)
BuyPr=ValueWhen(BuyCond,C);
Plot(C,"Close", colorBlack, styleCandle);
Buy=Cross(O,BuyPr);
Plot(BuyPr, "",2,1);
PlotShapes( Buy, colorGreen,0, L,-10 );
>
> I want to sell if today open is greater then last entry price (last
> time I bought)
> BuyPrice is set to Open.
>
> Buy=O>Ref(O,-1);
> EntryPrice=ValueWhen(Buy,BuyPrice,0);
>
> Sell=O>EntryPrice;
>
> Why this formula doesn't works fine?
>
> Thanks
>
> ---
> Giuseppe
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|