Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Time as a variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using Time as a variable

    Is it possible to substitute a variable for time, instead of fixing time in a strategy? The ToTime() documentation shows an example where

    if (ToTime[0] >= 74500 && ToTime(Time[0]) <= 134500)

    I would like to substitute a variable for the 74500 value and the 134500 value
    such as "starttradetime" "and endtradetime"

    When I do that as below, I get a CS1026 error message. Is this documented somewhere> I tried searching the forum but I must not be phrasing the search properly because I can find nothing about it.
    Thanks
    DaveN

    #2
    Just use an int variable. 74500 is an int value.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by iceman2020, Today, 09:39 PM
    0 responses
    1 view
    0 likes
    Last Post iceman2020  
    Started by jimmy_trader, Today, 09:26 PM
    0 responses
    3 views
    0 likes
    Last Post jimmy_trader  
    Started by xxzbill, Today, 08:30 PM
    2 responses
    14 views
    0 likes
    Last Post xxzbill
    by xxzbill
     
    Started by fercho, Yesterday, 09:28 AM
    3 responses
    29 views
    0 likes
    Last Post fercho
    by fercho
     
    Started by omololu, Today, 07:10 PM
    6 responses
    24 views
    0 likes
    Last Post omololu
    by omololu
     
    Working...
    X