Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Time as a variable

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

  • NinjaTrader_JoshP
    replied
    Just use an int variable. 74500 is an int value.

    Leave a comment:


  • daven
    started a topic Using Time as a variable

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by sidlercom80, Today, 12:57 AM
0 responses
1 view
0 likes
Last Post sidlercom80  
Started by gbajaj, Yesterday, 11:16 PM
0 responses
1 view
0 likes
Last Post gbajaj
by gbajaj
 
Started by PWillard, Yesterday, 10:30 PM
0 responses
1 view
0 likes
Last Post PWillard  
Started by waldoalvarez, 06-19-2021, 05:50 AM
2 responses
16 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Noongun, Yesterday, 03:17 PM
1 response
9 views
0 likes
Last Post NinjaTrader_EricB  
Working...
X