Philadelphia, Pa/United States
Posts: 3 since Jan 2013
Thanks Given: 1
Thanks Received: 1
|
Traders, hello...
I have a TOS account, and I thought I'd deviate from my python work, to write some custom scan criteria within the platform. I've hit a bit of a wall; after a day of searching and reading the, uh, 'docs' I'm no closer to a solution. My question is:
In the scanner condition environment (99% of web examples seem to work with strategies), how does one refer to, or loop over (whatever the best way is) past bars?
I'm looking for a 50sma > 200sma over the past 100 days, and no closes below the 200sma over the same lookback. Should be pretty simple. I've tried 'fold' to no avail.. it seems to be a plotting- related function.
Can someone get me started in the right direction? It'd be huge. Thanks!
|