just to make sure I understand it right.
I can put different Strategies on one chart and they all work together? So if one opens the others realize that the marketposition=1?
Example:
I have 4 different strategies…
2 for entries and 2 for exit.
Strategy1:
Code: Select all
…
If marketposition=0 and condition1 then
Enterlong next bar at market;
Code: Select all
…
If marketposition=0 and condition1 then
Enterlong next bar at market;
Code: Select all
…
If marketposition=1 and condition1 then
Sell next bar at market;
Code: Select all
…
If marketposition=1 and condition1 then
Sell next bar at market;
Q2: Can I do that? The Strategies 3 and 4 would catch the entries of strategie 1 and 2?
Q3: How can I transfer variables from one strategy to another? Do I have to go threw a file and temperary store the variable in there for the other strategie to get it or is there another way?
Yes I could just combine the 4 different in one but I have a reason for the seperation.