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 usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
20 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
Comment