Hi forum,
Any ideas how to filter out 1% up stocks today for 5 min intraday trading?
Thank you in advance.
Size:
Color:
Compress the series to Daily and use
ROC. You'll find code examples in the WealthScript Programming Guide >
Multi-Time Frame Analysis and in the QuickRef (SetScale, RestoreScale, Synchronize). Hope that helps.
Size:
Color:
That works for "today", but if you want to backtest it, you'd need to stay in the intraday scale.
From any given intraday bar, you can easily find the closing value from last bar yesterday by:
int yestLastBar = bar - Bars.IntradayBarNumber(bar) - 1;
Try this -
* Note! Requires the Community.Components Extension
CODE:
Please log in to see this code.
Size:
Color: