I was wondering if it might be possible to vary the defaults shown for a strategy/indicator parameter depending on instrument or timezone.
I do know that the defaults for a Parameter are defined in the Variables Section on declaration. But is it possible to vary these by timezone or instrument.
1) by timezone
Example:
private int Mar****pen=093000; //new york time
When the strategy is opened the default Mar****pen is 93000.
Now if my buddy in California opens my strategy he must change it every time to 63000 because he is 3 hours behind me.
I really do not want to have to create 2 versions of the ninjascript.
Is there a way around this?
2) by Instrument
if the instrument is the ES emini I would like to start the strategy at 9.30 am
however if the instrument is 6E i would like to start the strategy at 8.00 am
may i change the default parameter by checking the instrument that is on the chart?
3) If either of the above is not possible, to modify the parameters and save the person fro having re-key all the time,.... is it possible to save values to an ascii.txt.file and then read as the defaults parameters.
Either way i want the user to have control over the timezone parameter value... i do not want to have them have to re enter it every time they open the strategy
I am just reaching here..Just wondering?
Comment