PureBytes Links
Trading Reference Links
|
Hi Tomasz,
Unfortunately, it does not fix the problem : the result is still
inaccurate.
Please, take for instance the stock Tektronix (TEK, market : SP 500)
and you will be able to check it by yourself.
Thanks in advance for your help,
Regards,
Evo1
Tomasz Janeczko a écrit :
Hello,
There is no bug in AB.
The problem is in the formula.
You should type your condition INSIDE "inWeekly"
part.
TimeFrameSet( inWeekly );
BwiH = ( (BBandTop( Avg, 20 ,2 )- BBandBot( Avg, 20 , 2 )) / MA( Avg,
20 ) )*100;
LLVBwiH = Ref(LLV(BwiH, 120),-1) ;
NivH = BwiH < LLVBwiH;
TimeFrameRestore();
NivH = TimeFrameExpand( NivH , inWeekly );
Best regards,
Tomasz Janeczko
amibroker.com
-----
Original Message -----
Sent:
Tuesday, January 03, 2006 6:41 PM
Subject:
Re: [amibroker] HELP !!! problem with multiple time frames...
Hi Graham,
First of all, thank you for your help, it is very kind of you.
As regards the Multiple Time Frame function (see code below), I do
think there is a bug in Amibroker.
For instance, let's take the security Tektronix (ticker : TEK - market
: SP 500) and let's display 2 charts (weekly and daily) :
1) On the weekly chart, the last time the condition were true it
occurred on 11/18/2005. The most important thing is that this condition
is true during 1 week (i.e. 1 bar).
2) BUT WHEN displaying a daily chart, the condition is true during 3
weeks !!! (it spans from the previous bar to the bar after...).
In all, we have 9 arrows !!! (I used the "plotshapes").
Your help would be greatly appreciated,
Regards,
Evo1
==== Code ===============================
TimeFrameSet( inWeekly );
BwiH = ( (BBandTop( Avg, 20 ,2 )- BBandBot( Avg, 20 , 2 )) / MA( Avg,
20 ) )*100;
LLVBwiH = Ref(LLV(BwiH, 120),-1) ;
TimeFrameRestore();
NivH = TimeFrameExpand( BwiH , inWeekly ) <= TimeFrameExpand(
LLVBwiH , inWeekly ) ;
==================================================
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 other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
|