Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Can someone help me with the below code. Basically I have taken the OBV indicator and modified it so that I can see how many days back the OBV crossed over the mov average of the OBV.
I robbed and stole code from macd to get the counting and color coding but on my OBV indicator in the chart it is showing a line at 0 with the color coding and I dont want it to show that.
Thanks in advance for any help
Can you help answer these questions from other members on NexusFi?
what exactly do you want to remove? You said that you "modified it so that I can see how many days back the OBV crossed over the mov average of the OBV", which seems to be the line near 0 (Plot3). And now you want to remove that line you added as modification?
Actually figured out the solution, quite simple just an error I made.
Old Code
New Code
ABCTG
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623
haonkered,
in your new code "SetPlotBGcolor (3, Black);" will always be executed, as it's not part of the "if PlotCrossBarsAgo ..." check. In case you intended it like that, fine.
You can also let the program figure out if the study is running in the Radarscreen or on the chart.