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 siddhugaddi, Today, 10:31 AM
|
4 responses
17 views
0 likes
|
Last Post
by siddhugaddi
Today, 12:11 PM
|
||
Started by markpk1, Today, 11:54 AM
|
3 responses
8 views
0 likes
|
Last Post Today, 12:11 PM | ||
Started by Carlos19, Today, 10:15 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 12:05 PM | ||
Started by Marty125, Today, 11:14 AM
|
4 responses
17 views
0 likes
|
Last Post
by Marty125
Today, 11:58 AM
|
||
Started by markdshark, 04-16-2023, 09:29 AM
|
6 responses
232 views
0 likes
|
Last Post Today, 11:53 AM |
Comment