From this page: https://ninjatrader.com/support/help...ngstopmarket.h tm
I have followed its instruction yet the the stopPrice is being ignored.
Long Example:
if ( blah blah )
{
EnterLongLimit(Convert.ToInt32(Contracts), IB_High, @"Long");
stopPrice = Low[1];
}
ExitLongStopMarket(stopPrice);
Do I need to identify the signal name [Long] somehow in this? The example did not stipulate that. Currently I have no other hard stop in place as I assume the exchange would immediately reject a double order.
************************************************** ************************************************** ************************************************** ************************************************** ********
************************************************** ************************************************** ************************************************** ************************************************** ********
Also, I have tried the following:
SetProfitTarget(@"Long", CalculationMode.Ticks, Target);
SetProfitTarget(@"Short", CalculationMode.Ticks, Target);
SetStopLoss(@"Long", CalculationMode.Price, AlphaLow, false);
SetStopLoss(@"Short", CalculationMode.Price, AlphaHigh, false);
Long Example:
if ( blah blah )
{
AlphaLow = Convert.ToInt32(Low[1]);
EnterLongLimit(Convert.ToInt32(Contracts), IB_High, @"Long");
}
AlphaLow is of course a variable with a default setting of zero.
Still being ignored...
Thanx

JM

Comment