I used one of my IB paper-trading accounts to work with.
But whenever the strategy enters a trade I see no stop loss orders or profit target orders being transmitted.
Could this be because of the paper-trading account (simulated trading)?
This is the pseudo strategy I am using on EURUSD 2min data:
Code: Select all
if C > O and C[1] < O[1] and C[2] < O[2] then
begin
if marketposition(0) = 0 then Buy next bar market;
if marketposition(0) = -1 then Buytocover next bar market;
end;
if C < O and C[1] > O[1] and C[2] > O[2] then
begin
if marketposition(0) = 0 then sellshort next bar market;
if marketposition(0) = 1 then sell next bar market;
end;
SetStopPosition;
setstoploss(50);
setprofittarget(50);
Also the paper-trading account I am using is within a Financial Advisor account. But this shouldn't be a problem since it does enter and exit trades. The problem is that no stop loss or profit target orders are transmitted.
One last thing, in order to make MC work with my FA account I downloaded and replaced the old "TWSTradingPlugin.dll" with the new one.