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 bortz, 11-06-2023, 08:04 AM
|
49 responses
1,769 views
0 likes
|
Last Post Today, 11:16 AM | ||
Started by Vietanhnguyen2hotmailcom, Today, 10:29 AM
|
3 responses
9 views
0 likes
|
Last Post Today, 11:05 AM | ||
Started by milfocs, Yesterday, 07:23 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 10:43 AM | ||
Started by kenz987, Today, 10:20 AM
|
1 response
10 views
0 likes
|
Last Post Today, 10:31 AM | ||
Started by PaulMohn, 04-24-2024, 03:49 AM
|
2 responses
33 views
0 likes
|
Last Post
by PaulMohn
Today, 10:31 AM
|
Comment