One issue I'm facing when moving forward with a generalized automated strategy is that the specific Function Parameters Option selected prior to running a backtest (or realtime execution ) is based on the specific symbol and I now do manually via the Edit Chart Options.
For example:
SymPre.......Size
ES..................1
GBP................25000
Function parameters are an great feature but unless separate symbol specific strategy EFS's are maintained require manual selection of the parameter option via Chart option Edit Studies each time the study unloaded/reloaded.
Right now I'm doing some rudimentary "hardcoding":
I'd like to be able to do a string compare for the first 3 characters and extract values based on that prefix.
There are several methods and functions available, I was just wondering what others might recommend considering the possible performance implications tick by tick processing.
If anyone also has an example of storing variables, ie., Position flags, size etc. to an external file for the purpose of being able to synchronize a realtime efs strategy study with the last known position...in the event of a computer failure or running the strategy on another PC that would also be appreciated,,
Thanks,
Glen
For example:
SymPre.......Size
ES..................1
GBP................25000
Function parameters are an great feature but unless separate symbol specific strategy EFS's are maintained require manual selection of the parameter option via Chart option Edit Studies each time the study unloaded/reloaded.
Right now I'm doing some rudimentary "hardcoding":
PHP Code:
if (getSymbol() === GBP@FXCM A0-FX) vSize = 25000;
if (getSymbol() === GBP A0-FX) vSize = 25000;
if (getSumbol() === EF #F) vSize = 1;
I'd like to be able to do a string compare for the first 3 characters and extract values based on that prefix.
There are several methods and functions available, I was just wondering what others might recommend considering the possible performance implications tick by tick processing.
If anyone also has an example of storing variables, ie., Position flags, size etc. to an external file for the purpose of being able to synchronize a realtime efs strategy study with the last known position...in the event of a computer failure or running the strategy on another PC that would also be appreciated,,
Thanks,
Glen
Comment