I'm trying to learn EL - maybe someday I will have TS to test my ideas, but first I want to know is it possible to write them in EL.
My questions are:
1. Can I use "Q_Ask", "Q_Bid", "Q_Last" etc. for strategy backtesting using historical data?
2. Can I use those "Qs" as a Stop order price? For example
BUY NEXT BAR (Q_Ask) Stop
I don't want to use specific, pre-defined symbol prices for stop orders. I want to use current ask, bid or last trade symbol prices for stop orders.
3. I want to execute my order immediately when my Condition1 is true. ( Let's say I have tick data )
IF (Condition1) THEN BUY next bar at MARKET
But market orders ( next bar at market ) are executed only at the opening price of next bar... What if my condition is true inside the bar? For example:
- bar opens at 1000.00
- my condition becomes true at 1000.50
- opening of the next bar is at 1003.00
- my market order is executed at 1003.00 ... 2.5 pts slippage!
How to solve this problem? The only solution is to use stop orders instead of market orders with stop price at the current price?
DT-waw
My questions are:
1. Can I use "Q_Ask", "Q_Bid", "Q_Last" etc. for strategy backtesting using historical data?
2. Can I use those "Qs" as a Stop order price? For example
BUY NEXT BAR (Q_Ask) Stop
I don't want to use specific, pre-defined symbol prices for stop orders. I want to use current ask, bid or last trade symbol prices for stop orders.
3. I want to execute my order immediately when my Condition1 is true. ( Let's say I have tick data )
IF (Condition1) THEN BUY next bar at MARKET
But market orders ( next bar at market ) are executed only at the opening price of next bar... What if my condition is true inside the bar? For example:
- bar opens at 1000.00
- my condition becomes true at 1000.50
- opening of the next bar is at 1003.00
- my market order is executed at 1003.00 ... 2.5 pts slippage!
How to solve this problem? The only solution is to use stop orders instead of market orders with stop price at the current price?
DT-waw