View Full Version : entry and exit siganls/names
d.allen101
06-29-2009, 01:55 PM
i've been looking through the NTuser doc for the last hour and i can't seem to find a clear definition of the difference between entry and exit signals/names...i need to be able to label entries and exits in order to use entry and exit methods on a smaller time scale...
NinjaTrader_Josh
06-29-2009, 01:59 PM
d.allen101,
Not sure what you mean by differences. They are just string names that you can name however you want. You can name entries however you want and exits as well.
For example, you can name your entry "Long 1". Then you can tie an exit to fromEntrySignal of "Long 1" and then name your exit "Exit Long 1".
d.allen101
06-29-2009, 02:05 PM
example if(Close[0]>Close[20]) EnterLong("Long1"); . now if i want to exit based on: if(BarsInProgress==1 && Closes[1][0]<Low[0]) ExitLong(1,1,"Long1"," ENTRY SIGNAL") i don't know what "ENTRY SIGNAL" is...
NinjaTrader_Josh
06-29-2009, 02:10 PM
That is the wrong use of the signature.
ExitLong(int barsInProgressIndex, int quantity, string signalName, string fromEntrySignal)
The first string, signalName, is the name for the exit order. The second, fromEntrySignal, is what you tie to "Long1" if you wanted to exit that particular entry.
d.allen101
06-29-2009, 02:12 PM
cool...
thx