How to inverse the symbol data

I am building a RRG chart. However, i need the FX symbols to be all comparable. for ex
$EURUSD,$GBPUSD,$AUDUSD is ok
$USDJPY, $USDCAD, $USDCHF needs to be converted to $JPYUSD,$CADUSD,$CHFUSD
i did read in this forum history that 1/symbol = inverse of the symbol.
Is this true?
if so, How can i feed this to SetForeign function

You don't need to inverse the data itself, you just do the calculation in the formula

SetForeign("$USDJPY");
InverseC = 1/C;
InverseL = 1/H; // note that high becomes inverse low
InverseH = 1/L; // note that low becomes inverse high
InverseO = 1/O;
RestorePriceArrays();
1 Like