one of the variables i have under OBU is to calculate profit loss on positions[0]profitloss and positions[1]profitloss. and based on this variable i make a decision for strategy A.
now in strategy B i have the same variable but it is opposite of strategy A. for some reason in strategy B the variable is not calculating correct. could it be because positions[0]p&L is not being calculated corrected bc this paticular symbol is already ''live'' in strategy A?
for example is each strategy able to work it's calculations independently or can they be causing noise to each other?
update-
yea for some strange reason each individual strategy is not able to isolate it's orders but it's rather looking at other live positions that were not activated by the strategy. how can i isolate each strategy to only look at orders that it creates? i have different entries and exit names in each strategy..
Positions[0].GetProfitLoss(GetCurrentBid(0),PerformanceUnitCur rency); this variable is in both strategy. one strategy is long and one strategy is short. It's the same symbol for both strategy. At a moment when both strategies have executed the order. it seems the above variable in each individual strategy is being calculated on both positions that were executed by each strategy. i hope this makes sense,,
Comment