Hi,
Just to check that I am not going over old ground, I have a script which I am looking to optimise, ultimately what I need to do is the following:
1. Declare two variables, VPTMax (Profit Target Max)
VSLMax (Stop Loss Max)
2. Set Default Target and Stop to mins (ie, 5 and 5)
3. Run Script
4. Append following data to txt file, Default PT, Default SL, pCntr, tCntr
5. Increment Default Target
6. If Default target = VPTMax, then increment Default stop and set default target back to 5 again.
7. Save and reload script
As you can imagine, if I do this with the respective mins and max of 5 and 40, this will automatically give me a report on some 1200 or so combinations.
The question is, has anybody done this before ?
Thanks
Roger
Just to check that I am not going over old ground, I have a script which I am looking to optimise, ultimately what I need to do is the following:
1. Declare two variables, VPTMax (Profit Target Max)
VSLMax (Stop Loss Max)
2. Set Default Target and Stop to mins (ie, 5 and 5)
3. Run Script
4. Append following data to txt file, Default PT, Default SL, pCntr, tCntr
5. Increment Default Target
6. If Default target = VPTMax, then increment Default stop and set default target back to 5 again.
7. Save and reload script
As you can imagine, if I do this with the respective mins and max of 5 and 40, this will automatically give me a report on some 1200 or so combinations.
The question is, has anybody done this before ?
Thanks
Roger
Comment