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

[amibroker] Re: Changing buy condition



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "conrad_faber" <cfaber@xxx> 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
>



------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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