Odd behaviour with objects

MPTM's new home
Post Reply
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

Odd behaviour with objects

Post by BobbyT »

Hi All,

I'm back with another simple coding error that my simple mind can't figure out.

In a bid to clean up my charts I have taken the PIVOTS indi and tried to add price levels to it (day hi/lo, week hi/lo etc).

Having even less experience with objects than I have with coding in general, the indicator exibits some rather odd behavior.

When Show_HILOW==TRUE the indi only creates the text labels for the lines. If the text objext section is commented out of the code then the lines are drawn as they should be and align perfectly with a previous channel indi that I created (with the help of Tommaso) and uploaded here.

So there is obviously something wrong with the block that wither draws the lines or creates the labels or both. The thing is, I have modeled this section off of the existing pivot point script and for the life of me not see where I have gone wrong. I've attached some images for your viewing pleasure ;)

As I said, I'm sure it's something simple but...yeah...I'm also simple....even for a scientist :uff:

Cheers,
BobbyT
You do not have the required permissions to view the files attached to this post.
Procrastination provides exponentially negative returns - BobbyT
Post Reply

Return to “Utilities Indicators and Scripts”