Hi, I have a multi data chart, 5 min as data1 and daily as data2. I need two strategies in the chart, where strategy #2 will know the MarketPosition of Strat#1. How is this done, so it will work both historically and in realtime?
Thanks.
Gordon
2 strategies in chart, how can I pass info between them [SOLVED]
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: 2 strategies in chart, how can I pass info between them
viewtopic.php?f=1&t=48312Hi, I have a multi data chart, 5 min as data1 and daily as data2. I need two strategies in the chart, where strategy #2 will know the MarketPosition of Strat#1. How is this done, so it will work both historically and in realtime?
Thanks.
Gordon
-
- Posts: 401
- Joined: 19 Jan 2011
- Location: Netherlands
- Has thanked: 85 times
- Been thanked: 124 times
Re: 2 strategies in chart, how can I pass info between them
Justme, global variabels can not be used historical only realtime. Just to let you know, so you can save yourself some time coding. Use ADE/ EL collections instead for both historical and realtime.
http://www.multicharts.com/discussion/v ... =1&t=47784
http://www.multicharts.com/discussion/v ... =1&t=47784
Re: 2 strategies in chart, how can I pass info between them
Not true. GVs can be used for both historical and realtime. For historical, you have to use them without their PL wrappers.Justme, global variabels can not be used historical only realtime. Just to let you know, so you can save yourself some time coding.
-
- Posts: 401
- Joined: 19 Jan 2011
- Location: Netherlands
- Has thanked: 85 times
- Been thanked: 124 times
Re: 2 strategies in chart, how can I pass info between them
Hi Orion,
Yes, you are right that it is possible to use GV on historical data (without the PL wrappers) in certain situations, but you need to make sure you sync the sender and receiver. In the case of Justme it is the same chart with two strategies. So it is already synced.
ADE or EL collections have the syncing built in. And for most historical uses IMO, this is the easiest way.
Yes, you are right that it is possible to use GV on historical data (without the PL wrappers) in certain situations, but you need to make sure you sync the sender and receiver. In the case of Justme it is the same chart with two strategies. So it is already synced.
ADE or EL collections have the syncing built in. And for most historical uses IMO, this is the easiest way.