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

[amibroker] Re: apply stop?....



PureBytes Links

Trading Reference Links

thx....
follow up-- when i backtest the results of the backtest aren't
correct.  for instance if i have a 10% max loss stop the backtest 
results are still showing the position lost more than that and just 
put a notation that say (max loss).  i wanted it to calculate the 
loss at 10% if it hit the max stop loss.

is this something that you can't do in ab or is it because i'm using 
yahoo eod data or am i missing a variable.

thx again
j



--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> wrote:
>
> Oddly, I have found it doesn't matter where it is PROVIDED it is 
on it's own
> line. So your 2nd example would be wrong. I usually put it in 
above the Buy
> conditions as in your first example.
> --
> Terry
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On Behalf
> Of thecoolestdude1369
> Sent: Tuesday, December 19, 2006 10:20
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] apply stop?....
> 
> where do i put the applystop().  in the line before the buy and 
sell 
> lines or in the sell line after sell info?
> 
> for instance...
> 
> applystop();
> 
> buy =parameters
> sell =parameters
> 
> or 
> 
> buy = parameters
> sell = parameters or applystop()
> 
> thx
> j
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.25/593 - Release Date: 12/19/2006 1:17 PM