- ago
I am trying to code a short backtest strategy that I mistakenly thought would be simple. I would like to backtest shorting at pre-market high during a specified intraday timeframe.

However, I only want to test on small caps that have gapped up above a certain percentage in pre-market.

I want to run two variations: 1. Stock dips below VWAP and then reaches pre-market high. 2. Stock dips but stays above VWAP and then reaches pre-market high.

Is this feasible using C# in Wealthlab? Thanks for any assistance.
0
125
3 Replies

Reply

Bookmark

Sort
- ago
#1
Yes, it's possible in C#. You can note the premarket price if it's made available by your data feed, and the VWAP indicator is part of WL8.
1
Cone8
 ( 25.44% )
- ago
#2
Also, the PowerPack has a PremarketHL indicator that will come in handy for your Strategy.
1
- ago
#3
Thank you for your responses. I will give it a try.
0

Reply

Bookmark

Sort