Two sections of code not running when combined
Author: The_Viper
Creation Date: 2/9/2014 2:51 PM
profile picture

The_Viper

#1
I have two sections of code. Each section works great with the other section commented out. I would appreciate any suggestions on how to have both sections run at the same time.
CODE:
Please log in to see this code.
profile picture

Eugene

#2
What you called "sections" are individual C# classes. You can't just throw two independent Strategies together expecting that is going to work out. Only one Strategy will be executed by Wealth-Lab: the topmost one.

To run the two Strategies "at the same time", you can either program that manually or use this simple design pattern: WealthScript Techniques | MultiSystem, or Calling a Strategy From Another

Here's some helpful reading: FAQ > How do I start with C# ?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).