Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: Weekly bar array with daily data

You are not authorized to post a reply.   
Author Messages
bhh
Posts:17

04-12-2008 11:21 AM Alert 

Is there a way to build a weekly bar array with daily data?  I've written a function that caluclates Kaufman's market effeciency ratio and I am trying to calculate it on weekly closing price and then use that to filter daily entries.  I am trying to avoid using a secondary weekly mom series as I will be testing it on a large basket of equities.

The following, for example, still outputs daily closing prices.

Dim WeeklyClose As BarArray(50)
If IsFriday=True Then WeeklyClose=Close

Dim TheDate
TheDate = FormatDateTime(Date)
If TheDate="12/28/07" Then
    Print WeeklyClose,",",WeeklyCloseΏ],",",WeeklyCloseΐ],",",WeeklyCloseΑ],",",WeeklyCloseΒ],",",WeeklyCloseΓ]
End If

murray
Posts:431

04-12-2008 11:40 AM Alert 

Wait for the next upgrade , it will be much easier to do this then. If you are a gold or platinum member you can also become part of the beta program for this product.

 We have made many changes for handling multiable timeframes.

 

murray
Posts:431

04-12-2008 11:40 AM Alert 
PS, next upgrade is due out in May.
bhh
Posts:17

04-12-2008 11:42 AM Alert 
There was some sort of formatting error when this posted, the last line should be

WeeklyClose,",",WeeklyClose1,",",WeeklyClose2,",",WeeklyClose3,",",WeeklyClose4,",",WeeklyClose5

Except the numbers are enclosed with brackets.
bhh
Posts:17

04-12-2008 11:43 AM Alert 
wow, that was fast. thanks.
You are not authorized to post a reply.
Forums > TradersStudio 2.x > TradersStudio Basic > Weekly bar array with daily data



ActiveForums 3.6
TradersStudio® Copyright 2004-2008 All Rights Reserved   |  Privacy Statement  |  Terms Of Use