I've developed a strategy that runs on a variety of markets and plays a sound file whenever it produces a signal. Now I'd like it to play a market-specific sound file, ie when there's a signal in the Dax it should say "Dax" when there's a signal in the EuroFX it should say "Euro" etc.
I've got all the sound files recorded and the naming of the different markets is in place as well, following this example:
if (Instrument.MasterInstrument.Name == "FDAX")
How do I link the PlaySound command with the specific market the strategy is applied to?
Thanks a lot.

Comment