Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Long/Short entries
Collapse
X
-
Not sure that the requirement is clear.Originally posted by zachj View PostIs there a way to stop a strategy from exiting a short trade when the buy trade signals? Or would I just have to do two seperate strategies one for long and one for short to avoid this?
You mean that once in a trade, ignore all reversal signals until a target/stop is reached?
Is this for unmanaged, or managed trade setup?
-
Is there a member of the NT staff that can confirm the info I have been given below? Is there no method to avoid a reversal other than to set requirement for position to be flat prior to entry? Looking for the short/long to run independently. Is a seperate strategy for short & long the only solution?
Comment
-
If they are to run independently, then yes, they have to be independent objects/classes/files.Originally posted by zachj View PostIs there a member of the NT staff that can confirm the info I have been given below? Is there no method to avoid a reversal other than to set requirement for position to be flat prior to entry? Looking for the short/long to run independently. Is a seperate strategy for short & long the only solution?
Comment
-
It seems if they are run together than it makes a stoploss pointless as in a way the reversal is the stop. Koganam what do u think on that topic? Do u personally always run long/short together if u dont mind me asking. I was working w a firm and there propriatery system was setup so that they could only be created seperate, so no reversals.
Comment
-
There is more than one way to resolve the issue. I am too lazy, so I take the tack of using an enum to determine what I will do on reversal signals if I code for them. I am sure these enums are self-explanatory.Originally posted by zachj View PostIt seems if they are run together than it makes a stoploss pointless as in a way the reversal is the stop. Koganam what do u think on that topic? Do u personally always run long/short together if u dont mind me asking. I was working w a firm and there propriatery system was setup so that they could only be created seperate, so no reversals.
Between them, I can pretty much gate my orders to run any which way that I want.Code:[FONT=Courier New][COLOR=#0000ff][FONT=Courier New][COLOR=#0000ff]public [/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New][COLOR=#0000ff][FONT=Courier New][COLOR=#0000ff]enum[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New][COLOR=#000000] ReversalActionType[/COLOR][/FONT] [FONT=Courier New]{[/FONT] [FONT=Courier New]RevOnRevSig,[/FONT] [FONT=Courier New]ExitOnRevSig [/FONT] [FONT=Courier New]}[/FONT] [FONT=Courier New][COLOR=#0000ff][FONT=Courier New][COLOR=#0000ff]public [/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New][COLOR=#0000ff][FONT=Courier New][COLOR=#0000ff]enum[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New][COLOR=#000000] AllowedTradeDirection[/COLOR][/FONT] [FONT=Courier New]{[/FONT] [FONT=Courier New]LongOnly,[/FONT] [FONT=Courier New]ShortOnly,[/FONT] [FONT=Courier New]All[/FONT] [FONT=Courier New]}[/FONT]
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
55 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment