I have an indicator that sets the pricebar color according to some rules. Traditionally this code did not "return" a value.
Now I would like to use this indicator with the back test facility.
I started by declaring the study in a call to efsexternal. The value, of course, was always null.
I modified the study to return a quoted string indicating the color -- the value continued to always be null!
I modified the study further to return numeric values indicative of the color. Now the efsExternal series provided the correct numeric value!
Unfortunately, my study is now useless as an indicator because when applied to a chart the returned values completely mess up the displayed range on the chart.
Does anyone have any suggestions to get around this apparent catch 22?
Now I would like to use this indicator with the back test facility.
I started by declaring the study in a call to efsexternal. The value, of course, was always null.
I modified the study to return a quoted string indicating the color -- the value continued to always be null!
I modified the study further to return numeric values indicative of the color. Now the efsExternal series provided the correct numeric value!
Unfortunately, my study is now useless as an indicator because when applied to a chart the returned values completely mess up the displayed range on the chart.
Does anyone have any suggestions to get around this apparent catch 22?
Comment