Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Make the strategy enter and exit positions at an specific time
Collapse
X
-
miguel,
First off, welcome to the forum!
Here is a sample :
Code:if (ToTime(Time[0]) >= ToTime(12, 30, 0) && ToTime(Time[0]) <= ToTime(12, 31, 0) { EnterLong(DefaultQuantity, ""); } if (ToTime(Time[0]) >= ToTime(13, 0, 0)) { ExitLong("", ""); }
We have a lot of resources for learning. If you email us at support at ninjatrader dot com we'd be happy to send them to you.
Leave a comment:
-
Make the strategy enter and exit positions at an specific time
Hello,
I was wondering if somebody knew how to make a system enter a long/short position (or do any other thing) at an specific time. For instance, I enable a system at 12:00 and I want it to enter a long position at 12:30 and then exit at 13:00.
I am new to ninja trader and it´s driving me mad!
Thank you in advance,
MiguelTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 01:30 AM | ||
Started by samish18, Yesterday, 08:31 AM
|
2 responses
8 views
0 likes
|
Last Post
by elirion
Today, 01:28 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
16 responses
389 views
0 likes
|
Last Post
by z.franck
Today, 01:04 AM
|
||
Started by rtwave, 04-12-2024, 09:30 AM
|
4 responses
31 views
0 likes
|
Last Post
by rtwave
Today, 12:50 AM
|
||
Started by yertle, Yesterday, 08:38 AM
|
7 responses
29 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
Leave a comment: