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
Announcement
Collapse
No announcement yet.
Trying my first script?
Collapse
X
-
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
AlexAttached Files
Comment