Any takers? I'd love a little help here....Just a simple explanation of the color coding logic would make me very happy.
Best,
Scott
- ne color per indicator index line
when it is going up, it draws with index 2
When flat, index 1
When going down, index 3
It puts empty value into the indexes that are not used at any particular bar.
All I know is, in MT4 CI, the rule is : one line one color, so if there's 3 or 5 or 7 color, there's should be 3 or 5 or 7 line (and its CI buffers).
Say you want one line with 2 color, red and blue. There, you need 2 line, say the line is up, then you use the blue line and empty value the red, and vice versa.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
When I compare the MT4 Least Squares Moving Average to Tradestation's Linear Regression Curve, they are certainly the same formula. However, the MT4 indicator has some nice red/green/yellow color coding which I like a lot.
My Tradestation indicator is just one color. If you look at the MT4 Least Squares MA, the color coding logic is not simple up/down logic (ie, if MA >= MA[1] then green, if MA < MA[1] then red), it is something else. I like this particular indicator coloring and would like to apply it to the Tradestation Linear Regression Curve so I can use it on some non-forex markets I also trade. I am reasonably fluent in Tradestation indicator programming, but I cannot read MQL4 code at all. I'm sure I could program the color into the TS LRC indicator if I could understand the coloring logic in the MQL4 code.
So, my question is, what is the indicator color coding logic (in usual logic statements or sentences) contained in the following code?
Many Thanks, Scott