PureBytes Links
Trading Reference Links
|
Once you've got a Trade object (i.e. a position), it's too late. The trade has already been made. If you want to prevent a signal from becoming a trade, you must process the signal, not the trade.
Note that a signal is cancelled by setting either of the price or the position *size* to an invalid value (e.g. zero). I don't know that setting position *score* to zero would achieve your goal.
Have a look at the mid-level backtester slide from Tomasz's Houston presentation. In it he cancels signals beyond the top N signals for a rotational system. You could do the same to cancel any that do not satisfy your criteria.
http://www.amibroker.com/docs/Houston2.ppt
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "bistrader" <bistrader@xxx> wrote:
>
> Am using rotational trading and want to exit if ranking drops below 10. I tried bo.ExitTrade in CBT to just exit, but it exits and replaces the position. Trying to figure out how to exit and NOT enter a replacement position. Was thinking that I could set sig.PosScore for the replacement position to zero forcing CBT to exit alone and not exit/replace position.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "sfclimbers" <sfclimbers@> wrote:
> >
> > Presumably by pos.Symbol, you are referring to a Trade object, in which case I believe that the answer is no.
> >
> > Why do you need such information? Once the trade has been taken, the position score is no longer relevant.
> >
> > If you really must have the data, you could probably use dynamic variables to capture the position score of signals for later reference when processing the trades.
> >
> > Mike
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "bistrader" <bistrader@> wrote:
> > >
> > > Is there a command to get sig.PosScore for pos.symbol. I can get sig.PosScore for sig.symbol, but can not get sig.PosScore for pos.symbol?
> > >
> > > Am using version 5.2 for this.
> > >
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
|