Am attempthing to write a fairly simple strategy which upon starting and obtaining data for the close ie last current tick... Places a buylmt below and a sell limit above that obtained price offset a few ticks. Pretty much like fading a band system...
In OnBarUpdate
if (Variable0 == 1)
{
EnterShortLimit(Variable5,"S");
EnterLongLimit(Variable6,"B");
}
What happens is that only the first order is placed Short in the above example. If the sell is placed first, only it is placed.
What I wanted, is to B/S at these points indefenitly until another condition is true.
When the active order is filled, then an oposing exit and entry order are placed.
OK, But I want to have both the buy and sell limit order live at startup.
Is this possible using the managed aproch and if so what am I doing wrong?
TIA
rr

Comment