Wes,
 
Using the custom backtester would be the most flexible approach. If you need to track changes of trade variables in first phase, and adjust the stop accordingly, I'd go for a general loop as follows:
 
for (i=0; i<=Barcount-1; 1++)
{
   Buy[i] = ...
   BuyPrice[i] = ...
   Short[i] = ...
   ShortPrice[i] = ...
}
 
In this loop, you can adjust the stop (and other variables) in every interation. Alternatively, if only the Sell/Cover portion (i.e, Stops) are "dependent", you can define your buy/short criteria in first phase (formula) mode, and use the Custom Backtester only for exits.
 
Like in life, it's your needs that dictate which route would be the most appropriate.
 
Short.
 


 
On 9/6/06, Terry <[EMAIL PROTECTED]> wrote:

If you don't need the answer to consider your next trade you can use FLIP after your Buy Sell Short Cover statements.

If you need it to trade, I write a loop to "pre-trade" the system. Then use Buy Sell Short Cover after the loop. In the loop you can track your status.

You can use the custom backtester as mentioned, but I find that much more difficult (for me) than the above.

 

PS:

 

Buy = cond;

Etc.

 

>

>

 

--

Terry

-----Original Message-----
From: [EMAIL PROTECTED] ps.com [mailto:amibroker@ yahoogroups.com] On Behalf Of ShortFox
Sent: Wednesday, September 06, 2006 14:22
To: [EMAIL PROTECTED] ps.com
Subject: Re: [amibroker] Long/Short Variable

 

You may want to view some custom backtester documentation.
 

 

Short.
 

On 9/6/06, wes_zoltran2 < [EMAIL PROTECTED]> wrote:

Is there an amibroker variable I can check that will tell me if I am
currently in a short or long position?

Thanks,

Wes.



__._,_.___

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
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to