Forex Forum - EarnForex - View Single Post - CCI Arrows
Thread: CCI Arrows
View Single Post
  #13 (permalink)  
Old 21st December 2009, 08:09
Enivid's Avatar
Enivid Enivid is online now
Administrator
 
Join Date: Nov 2008
Posts: 2,081
Thanks: 71
Thanked 109 Times in 66 Posts
Default

I can't say much without seeing a screenshot, but I see 2 potential problems in your code:

1. If you call that code in OnCalculate() function then you create an object each tick. Do you delete it each tick? It's better to create it only once and then only change the displayed value.

2. You have a variable containing current CCI value and the object with the same name - myCCInow. Ideally that shouldn't be a problem, but maybe it's the cause?
Reply With Quote