I have one simple strategy based on stochastic for long entries, one strategy for position loss management/exits. both work together
on the same instrument MES. IB DEMO mode.
most of the exits/new entries are not accurate with too much slippage although not volatile market.
using MES future regular chart, IOG enabled, the data stream from IB seems OK.
example - buy entry at 3112.25 - accurate according to entry signal.
next - inaccurate position management - first "recovery 1" failed with -22.19 loss (instead of -15), second "recovery 2" failed with -29.38 (instead of -15), and so on...
does someone know what may be the problem?
The recovery strategy as follows -
Code: Select all
[IntrabarOrderGeneration = True]
if marketposition = 1 and openpositionprofit < -15 then
sellshort ("recovery 1" ) 2 contracts this bar at close;
if marketposition = -1 and openpositionprofit < -15 then
buy ("recovery 2") 2 contracts this bar at close;
setprofittarget(30);