Thank you in advance.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Always start with a long or short
Collapse
X
-
Always start with a long or short
When starting a single direction automated trading strategy such as when x = y go long or short and exit when x no longer =y how do I make certain the strategy will start with the enter long or short rather than the exit position command?
Thank you in advance.Tags: None
-
For sure an Exit() method could be called first before an Entry() method but this Exit() is ignored (no action taken) if a position does not exist.
From NT perspective -
This:
ExitLong();
EnterLong();
is the same as:
EnterLong();
ExitLong();
if these were the only method calls in OnBarUpdate().RayNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Powerbucker, Yesterday, 05:09 PM
|
1 response
12 views
0 likes
|
Last Post Today, 07:35 AM | ||
Started by ezrollin, 02-26-2022, 11:14 PM
|
14 responses
305 views
0 likes
|
Last Post Today, 07:32 AM | ||
Started by jacobm172, Yesterday, 04:42 PM
|
1 response
10 views
0 likes
|
Last Post Today, 07:31 AM | ||
Started by ruppschtaler, 02-21-2018, 08:36 AM
|
14 responses
3,672 views
0 likes
|
Last Post
by judysamnt7
Today, 07:29 AM
|
||
Started by yubo27, 12-01-2023, 09:32 AM
|
11 responses
265 views
0 likes
|
Last Post Today, 07:26 AM |
Comment