Ooops!! your right!

===
[3768] Symbol = BHP : dt[84] = 15/06/2000 : TRisk[84] = 0.59479
[3768] Symbol = BHP : EntryPrice = 7.96475 : ExitPrice = 7.93425
[3768]  Trade.EntryDateTime = 15/06/2000 Risk = 0.59479
===

Thanks PS, 

Regards

JW

--- In [email protected], "vlanschot" <[EMAIL PROTECTED]> wrote:
>
> Not to interfere with you correspondence with GP, 


no probs, much appreciated.



> but I see in your 
> code that before the CBT-part you've defined
> 
> AddToComposite(TradeRisk, "~trisk" + Name(),"C",atcFlagDefaults 
> |atcFlagEnableInBacktest );
> 
> . . . but then you call it as:
> 
> TRisk =     Foreign("~trisk_" + trade.Symbol,"C");// NOTE: with 
> underscore!, so that doesn't work
> 
> Personally, and FWIW, as I do not always want to clutter my Db with 
> numerous ATC's, I often prefer to use VarSet.
 

if I can get it work in the custom backtester, then I agree it's
probably a better method.


> PS
> 
> 


By the way GP, I didn't realise it was you who wrote the custom 
backtester doc, it's helped me a lot on the way to understand custom
backtesting, thanks for your contribution.

Reply via email to