If you are using portfolio backtest then you can only modify items
based on portfolio equity using the advanced backtest coding
If this is a single symbol backtest then you can use equity

-- 
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 20/06/06, Joe Landry <[EMAIL PROTECTED]> wrote:
> Eric
> Remember that the IIf function compares arrays and is not used to control
> the flow of a program.
>
> Unless you use the results of the comparison to do it.    Would this work ?
>
> BST = 0; BT =1;    // using this variables for readability
> Code = IIf( Ref(Equity(),-1) > 10000000,BST,BT);
> if (Code == 0)
> {
> " code for method BST"
> }
> else
>  "code for method BT"
>
> Hope this helps
> Joe
>
> ----- Original Message -----
> From: "eric paradis" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, June 20, 2006 9:25 AM
> Subject: [amibroker]
>
>
> > Im trying to code this so it tests the equity during
> > the backtest, and then if the equtiy goes > 10000000,
> > a different method will get called.
> >
> > It doesnt seem to be working. Anyone know why? Thanks
> > for your help.
> >
> > IIf( Ref(Equity(),-1) > 10000000,BST,BT);
> >
> > Eric
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> 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
>
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/DEOZVC/fOaOAA/cosFAA/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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to