Hi,
Not sure if I am missing something or not.
I want to write a simple efs script.
The script will draw 2 lines (aa, bb) on the chart that can be user defined. Lets say initially aa = 985 and bb = 989 for the ES (ES U3)
The script would then color the price bar green is high of the bar is greater than aa. It would color the bar red if the low of the bar is less than bb.
Seems fairly straightforward. I tried using the wizard for this and ran into problems. I guess the wizard is not set up to allow user defined variables (aa, bb).
I made some mods to the code in the editor to allow the variables to be user input by adding {aa, bb} to the function main line. I also did a null test for aa and bb and put in some default valies.
The code compiles correctly and works sometimes. However, I notice at times that some or all of the price bars disappear. This seems to depend on the values of aa and bb.
If I remove the study the prices bars reappear.
Any ideas??
Tx
kiwi
Not sure if I am missing something or not.
I want to write a simple efs script.
The script will draw 2 lines (aa, bb) on the chart that can be user defined. Lets say initially aa = 985 and bb = 989 for the ES (ES U3)
The script would then color the price bar green is high of the bar is greater than aa. It would color the bar red if the low of the bar is less than bb.
Seems fairly straightforward. I tried using the wizard for this and ran into problems. I guess the wizard is not set up to allow user defined variables (aa, bb).
I made some mods to the code in the editor to allow the variables to be user input by adding {aa, bb} to the function main line. I also did a null test for aa and bb and put in some default valies.
The code compiles correctly and works sometimes. However, I notice at times that some or all of the price bars disappear. This seems to depend on the values of aa and bb.
If I remove the study the prices bars reappear.
Any ideas??
Tx
kiwi
Comment