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 GTBrooks, Today, 10:04 AM
|
1 response
6 views
0 likes
|
Last Post Today, 10:56 AM | ||
Started by NISNOS69, 12-08-2024, 08:00 AM
|
8 responses
22 views
0 likes
|
Last Post
by NISNOS69
Today, 10:43 AM
|
||
Started by divinajulia72, Today, 10:39 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 10:39 AM | ||
Started by AgriTrdr, Today, 10:35 AM
|
0 responses
6 views
0 likes
|
Last Post
by AgriTrdr
Today, 10:35 AM
|
||
Started by trdninstyle, 11-26-2024, 12:23 PM
|
74 responses
232 views
0 likes
|
Last Post
by trdninstyle
Today, 10:35 AM
|
Comment