VARS: entryP(0), ccN(0), eFlag(true);
if NTMarketPosition("") = 0 then begin
entryP = Close;
eFlag = true;
NTCancel("LL");
NTCancel("LPT");
NTCancel("LStop");
end;
// I used this code b/c a thread on Ninja's website said NTMarketPosition is unreliable on partial fills.
ccN = NTFilled("LEn") + NTFilled("LL");
NTBuyMarket("LEn", 1);
if NTMarketPosition("") > 0 then begin
if eFlag then
NTBuyLimit("LL", 3, entryP-10);
eFlag = false;
if ccN >= 4 then
NTCancel("LL");
NTSellLimit("LPT", ccN, entryP + 10);
NTSellStop("LStop", ccN, entryP - 20);
end;
In this case, sometimes it will enter many more than 3 contracts on the add on. It has entered as many a 15 contracts. Could this be a Ninja setting, or am I overlooking something else?
Thanks for your help!
Comment