Announcement

Collapse
No announcement yet.

Trying my first script?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying my first script?

    Hi I have limited programming experience from a few years ago and trying to get back into the swing of things. I'm just trying to make a simple command to paint the chart green when its a buy and red when its short, when i run this script it doesn't recognize it should be short and is entirely green. Any help would be greatly appreciated. Thanks
    Attached Files

  • #2
    fflaque
    There are a couple of syntax errors such as if (vCCI >= "100") which should be if (vCCI >= 100) as 100 is a value not a string and vCCI which should be vCCI.getValue(CCIStudy.CCI)
    Also as a condition for Strategy.doShort you have if(!Strategy.isLong()) which should be if(!Strategy.isShort())
    These revisions are included in the attached efs
    Alex
    Attached Files

    Comment


    • #3
      a little late but thanks very much for you help

      Comment

      Working...
      X