I am hoping to only test code on larger cap stocks but when I make a new strategy from rules it says that the index was out of range. Does anyone know how to fix this problem? Here are the steps and code I used:
Buy at Market --> Conditions: Fundamental Raitos --> Market Capitalization (ttm) is greater than a Value (1.00)
Here is the generated code as well, any help would be greatly appreciated, thanks!
CODE:
Please log in to see this code.
Size:
Color:
Size:
Color:
Meanwhile (until 5.1 comes out soon) you could use this workaround in a code-based strategy:
CODE:
Please log in to see this code.
Size:
Color:
This program is not working. It's not returning any trades
Also, how do I print out the market cap. PrintDebug(dsRatio[bar]) is not outputting a value
Size:
Color:
Not enough details. Note that "It doesn't work" style posts just don't work.
1. Have you updated the "Fidelity Fundamental Data for Securities" provider?
2. What are your...
* Bar scale
* Single symbol or Multi-symbol mode
* Data Loading settings
* Symbol(s) and Data provider
?
Size:
Color: