I found out that there is a possibility to code based on the instrument type ie. the Instrument.MasterInstrument.InstrumentType.
Is there a code snippet available for the following
If
InstrumentType is Currency give value 1
else if
InstrumentType is Future give value 2
else
give value 0
or would it be possible to have a code snippet sample here as an answer. Thank you
Comment