I've always worked with market orders to avoid a lot of issues, but now I see the convenience in some moments of limit orders. I've been reading in the help guide for a complete configuration, but I'm a little confused about the right configuration by some examples, so these are my doubts:
- What is the correct configuration ? When I try as this example of yours:
if (BarsSinceEntry() > 10 && CrossAbove(SMA(10), SMA(20), 1))
EnterLongLimit(GetCurrentBid(), "SMA Cross Entry"); The system shows a compilation error, BUT when I invert positions, first Quantity and then price it goes well
- If I'm Short and I'd like to change to a long position, should i do this:
a) Simply put EnterLongLimit(100000, GetCurrentBid() ); and the system will take care of exiting the Long position and opening the short one?
b) Should I set first : ExitShortLimit(double limitPrice) and then EnterLongLimit(100000, GetCurrentBid() ?
- If an order is not totally filled and suddenly the system triggers a contrarian order, will the system take care of reverse the uncompleted position to a new completed one?
Thanks
Comment