DrawLine not showing
Author: gfparker
Creation Date: 4/14/2010 7:22 AM
profile picture

gfparker

#1
Can anyone tell me why the DrawLine statement in the following code doesn't ever show up on the chart? I'm running the strategy against SPY 5 minute data. Thanks.
CODE:
Please log in to see this code.
profile picture

Eugene

#2
It does show on my chart when I load enough bars.
profile picture

gfparker

#3
That's funny it doesn't show on mine. I could send you an image if I knew how to add it to this post.
profile picture

Eugene

#4
I don't need an image, rather to know how many bars of data are you loading - if my reply wasn't enough of a hint ;)
profile picture

gfparker

#5
I'm loading the last 500 bars of SPY 5 minute data using FIdelity in streaming mode.
profile picture

Cone

#6
Is only DrawLine not working for you, i.e., do you see the DrawCircles? Both look okay to me with those settings.

Make sure that you compile the script, or just click "Run this Strategy" from the Editor.
profile picture

gfparker

#7
Yea the script is running and outputting alerts, I've compiled the script several times and yes the circles (buy targets) do show on the PricePane.
profile picture

Eugene

#8
Does that happen for SPY exclusively, or with other symbols in any bar scale?
profile picture

gfparker

#9
It happens on DIA SPY QQQQ on all intraday time periods, 1 min, 5 min, 15 min .
profile picture

Cone

#10
Maybe it's a monitor resolution thing. Try bumping up the line width from 1 to 2 or 3.
profile picture

gfparker

#11
Nope changed it to 3 and still no ink shows.
profile picture

Cone

#12
Is it possible that you're using a black chart background, so that's why you can't see the "Color.Black" lines?
profile picture

gfparker

#13
No the chart background is white. I've also tried changing the line color and it doesn't seem to matter.
profile picture

Cone

#14
Sounds bizarre to me. Can you post an image, or attach one to a support ticket, please?
profile picture

Eugene

#15
To post an image, upload it first to any free image hoster (tinypic.com, imageshack.us, imagebam.com, imgur.com, thumbsnap.com - to name a few). Then:

* either retrieve the direct link to the full-size image and paste the link right between a pair of IMG tags (you should see a pane with "...LINK, QUOTE, CODE, IMG" buttons when adding a new post),
* or use a code snippet "for posting on the forums" (usually, every image hoster provides it).

Don't worry if things look broken - in this case, just leave the image link and we'll edit your message.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).