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 futures io?
@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!