#1
QUOTE:
- Shorting a gap on a Wide Range day
I thought of this more and should say that it doesn't fit into WL model well. You can't know that today is a Wide Range day until the close (of today). It would get tricky to code this condition for live trading.
In Wealth-Lab, the process works as follows:
1. A complete bar updates (can be 1-minute, 1-day, etc.)
2. Your strategy executes over all the bars in the chart and determines if it wants to trade on the
next bar.
+ If it doesn't, you don't do anything.
+ If it does, you place orders for the next bar and they're worked by your broker. (Process complete).
There's an exception with obtaining today's incomplete bar's Open price (see strategy #2 below) but finding out today's daily range is out of question while the market is open. So here's an approximation
for backtesting only where you enter on the close of the WRD with full gap up:
CODE:
Please log in to see this code.
#2.
QUOTE:
- I'd like to test using limit orders to enter on overbought conditions. For example if RSI2 is 95 or higher, stock gaps up above the previous day's high and trades 5% higher on the day entering that day 5% higher and using various holds as exits.
Since this logic requires knowing the incomplete day's open price it gets a little complex. Here's a strategy that should do the trick both for backtesting and live trading. QuickRef (F11) on GetSessionOpen for more:
CODE:
Please log in to see this code.
#3. Hope this helps:
CODE:
Please log in to see this code.