PDA

View Full Version : Please expalin this a little more...


VagyokC4
10-05-2007, 02:38 AM
The documentation defines the two following methods for getting in/out of a trade

These are the two syntax in question:
EnterLong(int quantity, string signalName)
ExitLong(int quantity, string signalName, string fromEntrySignal)

I understand when I ExitLong, the signalName is the name I gave when using the EnterLong, so what is the "fromEntrySignal" and where do I get that from?

Awaiting your repsonse,
Vagyok C4

NinjaTrader_Josh
10-05-2007, 02:44 AM
Hi Vagyok C4,

For the ExitLong()s, the signalName is the unique name you want to give the Exit signal and the fromSignalName is the name of the entry signal you want to exit.

For instance, you could go...
EnterLong(100, "Long");
ExitLong(100, "Long Exit", "Long");
This will exit the position you created from your "Long" entry and nothing else.

VagyokC4
10-05-2007, 03:58 AM
So then this would be completely valid???


EnterLong(100, "Long");
ExitLong(100, "Long", "Long");

NinjaTrader_Ray
10-05-2007, 06:48 AM
Yes, that would be valid althought not suggested since it could make debugging and trade visualization very confusing.