Hello Guys,
Yesterday I encountered a trading strategy that uses different approach when the market is in chop and yet different approach when the market is in trend (using ChoppyMarketIndex function.
The strategy was written for TS and is said to be profitable. I rewritten the code but since I am a layman in coding I could not overcome the differences between TS and MC.
Could somebody please clean the code of this trading system? Attached is the system and the ChoppyMarketIndex (both in word)
Will appreciate any help
Regards
Thermostat Program (a little help needed in the re-coding)
Thermostat Program (a little help needed in the re-coding)
- Attachments
-
- Thermostat Program.doc
- (37 KiB) Downloaded 409 times
-
- Choppy Market Index.doc
- (27 KiB) Downloaded 419 times
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times
There were several errors , so I had to use my best guess. It does compile and includes the choppynessindex function. Be sure to test it against a known good version if possible.
- Attachments
-
- Thermostat.zip
- (2.84 KiB) Downloaded 390 times
Hi Steven again,
I tried to optimize this strategy and whenever I do it the information ''Tried to reference back more bars (#) than allowed by the current MaxBarsBack settings. Please increase MaxBarsBack setting''.
And every time this happens I increase the ''maximum number of bars study will reference'' in Format settings - Properties. And everytime I do increase the study seems to need one more bar to test.
What would the possible solution be?
Regards
I tried to optimize this strategy and whenever I do it the information ''Tried to reference back more bars (#) than allowed by the current MaxBarsBack settings. Please increase MaxBarsBack setting''.
And every time this happens I increase the ''maximum number of bars study will reference'' in Format settings - Properties. And everytime I do increase the study seems to need one more bar to test.
What would the possible solution be?
Regards
- Attachments
-
- MaxBarsBack.jpg
- (109.84 KiB) Downloaded 1005 times
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times