Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Using Weekly Data Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
lmagaro
Posted : Friday, June 18, 2010 4:04:22 PM
Registered User
Joined: 11/20/2004
Posts: 401
Is there a way to access weekly data using real code and doing ones own looping regardless of the time frame of the chart on the screen? If yes could you add the appropriate code to my shell program below.


    Sub New
        AutoLoop = False
    End Sub
   
    Public Overrides Function Plot() As System.Single
        '*************************************
        '* Accessing Weekly Database *
        '*************************************
        Dim Variables aas needed
        For i As Integer = 0 To Price.Bar.Count - 1
            Neccessary code
            AddToOutput(Price.Bar.DateValue(i), Result)
        Next
    End Function
   
Bruce_L
Posted : Saturday, June 19, 2010 3:38:11 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
    Sub New
        AutoLoop = False
    End Sub

    Public Overrides Function Plot() As System.Single
        '*************************************
        '* Accessing Weekly Database *
        '*************************************
        Static customSymbol As PriceScripting
        Dim tf As New WeeklyTimeFrameProvider
        tf.NumWeeks = 1
        customSymbol = PriceData(CurrentSymbol, tf)
        Dim Variables aas needed
        For i As Integer = 0 To customSymbol.Bar.Count - 1
            Neccessary code
            AddToOutput(customSymbol.Bar.DateValue(i), Result)
        Next
    End Function

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
lmagaro
Posted : Thursday, June 24, 2010 5:54:59 PM
Registered User
Joined: 11/20/2004
Posts: 401
Thank you very much.
Bruce_L
Posted : Friday, June 25, 2010 7:57:56 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.