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

Re: [amibroker] Dear Prashanth,



PureBytes Links

Trading Reference Links

Hello Vinay,

In my opinion, you are complicating things un-necessarily. I fail to
understand why you need to know the number of bars after the date of
reference when you can get the difference in bars by either using a simple
subtraction of dates or extracting the output to excel and then calculating
the difference in dates.

I believe its possible to code what you are looking for, though it gets bit
complicated (at least for me).

Cheers

Prashanth

PS: Please don't address posts to me (when posting to groups) specifically
since there are a lot of guys who are better equiped to handle queries here
compared to me.

----- Original Message ----- 
From: "Vinay Gakkhar." <vgakkhar@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, June 03, 2008 5:55 AM
Subject: [amibroker] Dear Prashanth,


> Dear Prashanth,
>
> Can you please help me with this?
>
> At present I calculate the number of days in the past period since the
last volume spike using the following formula:
>
> BackRef = 150; // Number of days to look back
>
> DaysSinceLastVolumeSpike = BarsSince(V>(MA(V,BackRef)+StDev(V,BackRef)));
>
> Now I want to find the number of days in the future period till the next
volume spike.
>
> For example, if today I select a past date (suppose 22nd Jan 2008) both
in the 'from' and in the 'to' boxes of 'Range' in 'Automatic Analyssis' and
press the 'Explore', maybe it will show to me that the next volume spike
took place 9 days after 22nd Jan 2008.
>
> I hope I have explained in an understandable manner.
>
> Can you please guide me now?
>
> Best regards,
>
> Vinay
>
> ------------------------------------
>
> 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
>
>
>


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

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/