What code would I use to turn this:
{
EnterLong(DefaultQuantity, "BuyMkt"); //Initial trade setup.
}
1. Enter a long limit order at the current BID price or better but not to exceed +3 ticks worse & if it does not execute the limit order within 1 min, then cancel the limit order....i.e. wait for the next signal...etc...
My goal is the get my price on entry or not at all to ensure control of slippage or not at all and wait for the next signal...
AND turn this:
{
Print ("Condition 2 Exit Short");
ExitShort("Condition 2 Exit Short", "");
// OFF Disable();
}
2. Exit Long position with a limit order at the current ASK price or better but if the last price exceeds +3 ticks worse then cancel the limit order and immediately enter a Market Exit Long order & also if the limit order is not filled within 5 seconds then cancel the limit order and enter an immediate Market Exit Long order...cancel any associated orders and wait for the next entry signal...etc
My goal is to test exit limit performance (I will also have a emergency stop market order further below) as a backup. I am seeking to improve exit slippage performance (at least see if it makes a difference...I know it does for a fact for entries in many cases)....usually I will have a limit to enter and market to exit.
If you can think of any other parameter to add, then you are welcome to suggest.

Greg

Comment