I am running beta 6. I have an advanced chart with 3 minute ES #F.
I am trying to get my program to show up and down arrows when certain conditions are met. I have it show the arrow when the conditions are true and remove the arrow when false, so if the condition was true at the end of the bar, the arrow should still be showing when it moves on to the next bar.
The up arrow works pretty well, but doesn't show every time it should (according to the formula output history). The down arrow doesn't display at all. I started with seperate functions for drawing the up and down arrows and changed to putting the draw command for the down arrow in the body of the code, but it still doesn't draw it. The accompanying debugPrintln command shows that the drawing section of the code is executing.
The only way I can get the down arrow to show up is to replace the tag name with a zero. But, of course, then it only shows the most recent arrow and doesn't erase when the conditions are false.
I hope somebody will take a look at the code I have attached and let me know if there is a bug here or if I'm just doing something stupid. I hope its the former, but I suspect the latter.
Dale Sullivan
I am trying to get my program to show up and down arrows when certain conditions are met. I have it show the arrow when the conditions are true and remove the arrow when false, so if the condition was true at the end of the bar, the arrow should still be showing when it moves on to the next bar.
The up arrow works pretty well, but doesn't show every time it should (according to the formula output history). The down arrow doesn't display at all. I started with seperate functions for drawing the up and down arrows and changed to putting the draw command for the down arrow in the body of the code, but it still doesn't draw it. The accompanying debugPrintln command shows that the drawing section of the code is executing.
The only way I can get the down arrow to show up is to replace the tag name with a zero. But, of course, then it only shows the most recent arrow and doesn't erase when the conditions are false.
I hope somebody will take a look at the code I have attached and let me know if there is a bug here or if I'm just doing something stupid. I hope its the former, but I suspect the latter.
Dale Sullivan
Comment