PureBytes Links
Trading Reference Links
|
You should not be getting errors by just including a condition within
a condition
If you have an error with the actual conditions, and not your example
then you could have an error in the conditions
Another thing is you are looking at the wrong bar. eg backtest with 1
bar delay on trade entry. The backtest shows the date of entry, not
date of signal. Just an example.
You need to explore for each condition values to check each part of the system.
eg
filter=buy;
addcolumn(c,"close",1.3);
addcolumn(ma(c,3),"MAclose",1.3);
addcolumn(cond1,"cond1",1);
addcolumn(c>5,"c>5",1);
addcolumn(cond2,"cond2",1);
addcolumn(V,"volume",1);
addcolumn(cond3,"cond3",1);
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 14/04/07, tipequity <l3456@xxxxxxxxxx> wrote:
> Graham
>
> In my real system I noticed that I was getting buy signals on bars
> that did not meet my conditions. I then ended up stringing the
> elements of my conditions in one Buy statement. I then got the
> correct buy signals. For example the buy statement from the example
> below would become:
> buy = Close > MA(close, 3) and Close>5 and Volume > 100;
> the above buy statement produces correct buy signals but the
> following wouldn't:
>
> Cond1 = Close > MA(close, 3);
> Cond2 = Cond1 and Close>5;
> Cond3 = Volume > 100;
> Buy = cond2 and cond3;
>
> That is why I thought there must be an issue to using the condition
> within another condition. Am I missing something?
>
> ps. keep in mind the above example is used to illustrate my point may
> not produce the error.
>
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
> >
> > In what way is the signal you get wrong?
> >
> > --
> > Cheers
> > Graham
> > AB-Write >< Professional AFL Writing Service
> > Yes, I write AFL code to your requirements
> > http://www.aflwriting.com
> >
> >
> > On 14/04/07, tipequity <l3456@xxx> wrote:
> > > I get erroneous buy signal when I use embedded conditional
> statement.
> > > For example:
> > > Cond1 = Close > MA(close, 3);
> > > Cond2 = Cond1 and Close>5;
> > > Cond3 = Volume > 100;
> > > Buy = cond2 and cond3;
> > > Is there something that I am missing?
> >
>
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/
|