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

Re: [amibroker] Re: SAR Help



PureBytes Links

Trading Reference Links

Use the SAR base code that Tomasz put in the AFL library, and use the
Buy as the start

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

On 1/1/06, Pankaj Chawla <pankaj013@xxxxxxxxx> wrote:
>
> Ooops I pressed the Send button befor I was done. So here is the algo again:
>
> Buy = Condition1;
> BuyPrice = X;
> Sar = X-Y;
> Sell = Cross(Sar, C);
>
> While(Long AND Sell Not Triggered)
> {
>         Calculate New Sar using Sar formula;
>         Plot(Sar);
> }
>
> I just want the SAR to eb plotted for the duration I am long in the trade. I am not sure
> how to implement the while loop as given in the algo above. Please help.
>
> Thanks
> Pankaj
> On 1/1/06, Pankaj Chawla <pankaj013@xxxxxxxxx> wrote:
> >
> > Hi
> >
> > I need help with some piece of code. I want to use SAR as a trailing SL for my long only
> > system. The SAR should start from the buy day and move on till Sell happens with SAR
> > crossover. The existing SAR function doesnt allow plotting it from the buy Day.
> >
> > Here is my algo:
> >
> > Buy = Condition1;
> >
> > if (Buy)
> >       InitialSar = Some value below Bur Price;
> > else
> >
>
>
>
> 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
>
>
>  Visit your group "amibroker" on the web.
>
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> ________________________________


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

 
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/