I'm developing 2 indicators to calculate position size and Risk, the results of both indicators are shown in data box.
The Position size tells me how many contracts should I open the trade. The risk indicator show me the maximum risk per day and the risk in points and dollars of the trade.
The Risk indicator needs to use several values of the Position size indicator, some of these are calculated, like number of contracts and others come from the parameters like risk percentage of account per day, to calculate the máximun risk per day in dollars.
Im try use public properties but when these are called from the risk indicator, for example PositionSize.Contracts, the following error is displayed:
'NinjaTrader.Indicator.Indicator.PositionSize(int, double, double, int, double)' is 'method', that is no valid in the context.
There are any way of share the value of variables between 2 indicators?
Thank you for advance.

Comment