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

[amibroker] Re: Problem is back- Can't figure this AA problem out



PureBytes Links

Trading Reference Links

1. Do you really intend to look into the future like that? Note that 
Ref(PHighPrice, 1) is looking at tomorrow's PHighPrice.

2. Are you sure that Ref(CI, -1) actually is ever greater than Ref(EMA
(CI, 5), -1)?

For these types of problems, it's often useful to add a Plot 
statement to see what's happening.

Mike
--- In amibroker@xxxxxxxxxxxxxxx, James <jamesmemphis@xxx> wrote:
>
> I can't figure it out. If I change those two less than signs to 
greater than and rerun the AA, I get 0 trades. I thought it was a 
problem with the settings, because it seems to work when I changed 
something, but now it is not working again.
> 
> 
> 
> 
> ________________________________
> From: James <jamesmemphis@xxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Tuesday, November 25, 2008 11:05:46 PM
> Subject: [amibroker] Can't figure this AA problem out
> 
> 
> I have this code in AFL:
>  
> Buy = Cross(H, Ref(PHighPrice,1)) AND Ref(CI,-1) < Ref(EMA(CI,5),-
1);Short
>  
> CI is a customer indicator defined in the code. When I change the 
code to this, simply changing > to <:
>  
>  
>   
> Buy = Cross(H, Ref(PHighPrice,1)) AND Ref(CI,-1) > Ref(EMA(CI,5),-
1);Short
>  
> I get no trades in the Automatic Analysis window. I get trade 
arrows in a chart pane and they are right, but for some reason 
changing those arrows
> causes 0 trades in AA. Any idea what could be causing this.
>  
> TIA,
> James= Cross (Ref(PLowPrice, 1), L) AND Ref(CI,-1) > Ref(EMA(CI,5),-
1);= Cross (Ref(PLowPrice, 1), L) AND Ref(CI,-1) < Ref(EMA(CI,5),-1);
>



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

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/