CODE:
Please log in to see this code.
when I execute the Strategy second time I am expecting Value "30" only.
I thought that the Class constructor executes only when I open the startegy and for all subsequent runs only the Execute() method gets executed.
But the results from this example show that the Class Constructor is running every time the Stategy runs? Am I missing something here?
Size:
Color:
Unless you hit "Compile" in the middle, the Strategy should produce "30" for all subsequent runs (this is what I'm seeing).
Size:
Color:
Note: Clicking "Run the Strategy" compiles and runs the strategy. Just hit F5, Go, or click a symbol to run a Strategy that is already compiled.
Size:
Color:
Got it. I am clicking "Run the Strategy" button, that is why I am seeing those results.
Thank you.
Size:
Color: