Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using Time as a variable
Collapse
X
-
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
DaveNTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by martini, Yesterday, 04:45 PM
|
3 responses
27 views
0 likes
|
Last Post Today, 08:38 AM | ||
Started by Tim-c, Today, 08:36 AM
|
0 responses
1 view
0 likes
|
Last Post
by Tim-c
Today, 08:36 AM
|
||
Started by Mestor, Today, 03:15 AM
|
2 responses
10 views
0 likes
|
Last Post
by Mestor
Today, 08:36 AM
|
||
Started by roblogic, 11-30-2023, 06:20 PM
|
57 responses
1,364 views
0 likes
|
Last Post
by playr101
Today, 08:35 AM
|
||
Started by Padan, Today, 02:02 AM
|
2 responses
10 views
0 likes
|
Last Post
by Padan
Today, 08:34 AM
|
Leave a comment: