Hi Mike

Exactly what I was looking for!

Thanks again for responding

Conrad


--- In [email protected], "Mike" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I believe that you will still need to generate the signal in your 
> regular code such that it will appear as a Signal object available to 
> the custom backtester. Once you have done so, you may cancel 
> undesirable signals within the custom backtester by setting their 
> PosSize property to zero.
> 
> You can refer to the .pdf file titled "AmiBroker Custom Backtester 
> Interface.pdf" found in the Files section of this group. Search for 
> usage of "sig.PosSize" for an example of changing/canceling a signal.
> 
> Mike
> 
> --- In [email protected], "conrad_faber" <cfaber@> wrote:
> >
> > Hi All
> > 
> > Can someone here please point me to some example code where the Buy
> > condition is only known/changed inside the backtester.
> > 
> > As illustration:
> > 
> > Buy = Time == 10am
> > Sell = .........
> > 
> > if (Time == 10am) and (Profit on all open positions < 2%)
> > {
> > Ignore Buysignal
> > }
> > 
> > Hope its clear
> > Thanks
> > Conrad
> >
>


Reply via email to