Hi,
If I create a bid and ask as a source, is there a way I can use the average of the 2 sources in a moving average?
Can I do something like this?
Source_bid = ExtSubscribe(1, nil, TF, true, "bar");
Source_ask = ExtSubscribe(2, nil, TF, false, "bar");
Source_avg = (Source_bid + Source_ask) / 2;
MA = core.indicators:create("MVA", Source_avg.close, 20 );