Annotate Support/Resistance Lines Dynamically
Author: bamafamily333
Creation Date: 4/25/2020 5:33 PM
profile picture

bamafamily333

#1
Good afternoon All,

First off, I will tell you that I am not a programmer. Most of my "skill" comes from downloading scripts within strategies and then "brute forcing" the code until I get it to work right. I come up against a brick wall as I cant seem to find nor create code to do what I need....

I have created/copied some code that overlays both Fibonacci Levels and Camarilla points in the same price pane. Depending on the intraday/daily timeframe used, the scale of the chart will set to either daily, weekly or monthly. No issues there.

I am using DataSeries Descriptors for the Index in the upper left and Plotseries to Draw the lines....Again, no issues.....

The problem is that I have up to 19 S/R lines and I dont have enough colors/line type to differentiate them. While the descriptor in the upper left is not, I would rather have it actually on the correlating line itself. Eugene wrote some code in the Camarilla Points Strategy that puts the descriptor on the first bar of the day.
I would like to have it appear dynamically with the line which is always updating at (bar-1)...

Any help would be greatly appreciated......

thanks
Mark
profile picture

Eugene

#2
Hi Mark,

Taking this script (TASC 2013-03 | Camarilla Points (Bobrowski), you'd want the lines be annotated at the last bar?

CODE:
Please log in to see this code.
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).