Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi-Instrument Strategy
Collapse
X
-
Thanks Bertrand, it is working good with the enter. However, with the ExitLong() or ExitShort statement are working. Every enter position is closing only with profit target level instead of closing when I am opening a new position in the opposine direction.
Initialize()
EntriesPerDirection = 4;
EntryHandling = EntryHandling.AllEntries;
OnBarUpdate()
if .........something
{
EnterShort(1,quantityOrder,"short1");
EnterShort(2,quantityOrder,"short2");
EnterShort(3,quantityOrder,"short3");
ExitLong("long");
}
else if ....something
{
EnterLong(5,quantityOrder,"long");
ExitShort("short1");
ExitShort("short2");
ExitShort("short3");
}
It is entering new positions but is not exiting the latest one....it close only when meet the profit target.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Falke07, 11-03-2024, 07:43 AM
|
8 responses
42 views
0 likes
|
Last Post Today, 09:24 AM | ||
Started by noabai, Today, 03:32 AM
|
2 responses
13 views
0 likes
|
Last Post
by noabai
Today, 09:23 AM
|
||
Started by idude, 11-09-2024, 09:12 AM
|
2 responses
15 views
0 likes
|
Last Post
by idude
Today, 09:18 AM
|
||
Started by ToNovy, 11-08-2024, 10:36 AM
|
15 responses
64 views
0 likes
|
Last Post Today, 08:29 AM | ||
Started by steinberg123, Today, 04:33 AM
|
1 response
9 views
0 likes
|
Last Post Today, 08:11 AM |
Comment