I am trying to add some smarts to my EFS to change its default parameters based on which market it is being run against. The obvious method to determine the market symbol is to call getSymbol()
I can then set up a switch or whatnot to configure parameters given that information.
But this method fails miserably during Tick Playback as getSymbol() returns the string "$PLAYBACK"
Wouldn't it be better to NOT do that?
We have isPlayBackMode() to tell us about the playback status.
So either this is a bug or a feature and I'm requesting it be corrected, or perhaps there is some other way I can determine the current symbol?
Tick files store the symbol w/in them, so there should be no reason that information is not made available at playback.
thanks
Attached is a sample EFS which shows the problem. It displays the return from getSymbol() in the title. (I'm not sure if this works pre 7.91 or not. ymmv)
I can then set up a switch or whatnot to configure parameters given that information.
But this method fails miserably during Tick Playback as getSymbol() returns the string "$PLAYBACK"
Wouldn't it be better to NOT do that?
We have isPlayBackMode() to tell us about the playback status.
So either this is a bug or a feature and I'm requesting it be corrected, or perhaps there is some other way I can determine the current symbol?
Tick files store the symbol w/in them, so there should be no reason that information is not made available at playback.
thanks
Attached is a sample EFS which shows the problem. It displays the return from getSymbol() in the title. (I'm not sure if this works pre 7.91 or not. ymmv)
Comment