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)
TS - Need color changes when MACD & RSI on crossing zero
I am looking for a little help, writing code for a TradeStation indicator might be above my pay grade and was wondering if someone, who is more knowledgeable with making a possible minor adjustment or two, to the standard TradeStation MACD and the RSI indicators and would be able to help out.
What I would like to have as an additional input setting, that I would have the ability to change the color of each line, in each indicator, the MACD line and the RSI line, so that whenever it crossed their specific zero line, either from above or from below, that I would have the ability to select a different color for either line on a cross?
If possible, a second input option, would be to change the color the chart background or by plotting a vertical line on the chart, whenever there was a cross that occurred. Also if the chart background would be easier, then I might need the ability to change to the color intensity as well
As an example, when crossing from above and after closing below the zero line, going from say a green to a red color and crossing and closing back above from below, going from a red to a green color line.
I would be very appreciative of any help
UHoser
Can you help answer these questions from other members on NexusFi?
@UHoser, there are many good TradeStation programmers here who will probably be willing to help you. This appears to be a simple modification to both indicators.
Bob.
When one door closes, another opens.
-- Cervantes, Don Quixote
the RSI cannot go below zero, because it is an oscillator that moves between 0 and 100, and so I put in the color green when it goes above 50 and red when it goes below 50;
you try and see if these 2 solutions work for you (see pictures):
Have you tried having chat GPT write the code for you? I have used chat GPT to write several Scripps for tradingView and I t’s surprising how useful it can be. Just make sure your specific in your instructions. It’s also iterative, so you can keep narrowing things down until you get what you’re looking for. Good luck!
I have been distracted shortly after making my post and I am only now, trying to catch up, I appreciate your responses.
Shaban, you are correct about the RSI and the the oscillator moves between 0 and 100, but how I am trying to use it, is with both overbought and oversold levels set to something different than the standard 30/70, so I did not type my message correctly, but again thank you for your help