1. I have used “EnterShortLimit(10000,Se, "Sell");” and “ExitShortLimit(St, Sel.FromEntrySignal);” in my routine. If my strategy opens multiple positions, should I need to allow for updating of “string signalName” in the routine?
2. I also see a version “ExitShortLimit(doublelimitPrice,string signalName,stringfromEntrySignal)”. “signalName” and “fromEntrySignal” point to the same position. what is the advantage of giving both? There should be some logic or I misunderstood the usage.
3. Can I update the “limitPrice” in “ExitShortLimit” for every bar update?
Many thanks.
This function is call for every bar update.
privatevoid Ordman()
{
int Rf, Sf;
double Se, Ss, St;
IOrder Sel;
Rf = Rsdata.Count-1;
Sf = Ssdata.Count-1;
if(Rsdata.Count>0)
{
Se= ((Reslh)Rsdata[Rf]).l; // Entry limit
Ss= ((Reslh)Rsdata[Rf]).h; // Stop limit
St= ((Reslh)Rsdata[Rf]).tr;// Target limit
Sel=EnterShortLimit(10000,Se, "Sell");
}
ExitShortLimit(St, Sel.FromEntrySignal); // St = Target limit
}

Comment