This strategy by Cone doesn't always work. On some symbols it returns an error message in the bottom window of the Editor tab: "Runtime error: Index was out of range. Must be non-negative and less than the size of collection". The next time it may perfectly work on the same symbol. All symbols are ETFs from Fidelity database. Any suggestion on achieving stability in this system or a link to a similar gap trading system will be greatly appreciated.
Size:
Color:
The script uses a special WealthScript call to
GetSessionOpen so that it's useful in real-time trading. All data providers don't necessarily support the intended function of this call, but if you tell us which provider you're using we could take a look at it.
If you're only interested in backtesting the script, just modify it so that it doesn't process the last bar:
CODE:
Please log in to see this code.
Size:
Color:
Cone, thank you very much. It solved the problem. Everything works great now. Your strategy is back testing very well on a wide range of ETFs. It's a great help for users like myself to get ready-made strategies and adapt them to own liking and style. I don't have any knowledge of programming and I am afraid it's too late to start learning. So I rely on strategy wizard and contributors like you. Thanks again.
Size:
Color:
We badly need a prominent
"Discuss!" link on a Strategy's page.
Links similar to this one:
"Gap Buy -- 0 Topics" doesn't seem to work at all as everybody keeps ignoring it.
Size:
Color: