What I am trying to achieve is a trend indicator that appears in it's own panel under the price panel. It is just a straight line that changes colour as prescribed by the code for 3 different conditions. Being Bull, Bear, or Flat. The line is to be dots, I want it to be straight, not to rise & fall with price. I have used a plot so I can get the dots.
I have uploaded the file so you can open it and inspect, to be able to advise me accurately.
You will see some of the other things I tried, commented out. It compiles, but doesn't work.
The main issue is likely with this line, as I really don't understand it, it's too advanced for me......emaAngle = Math.Atan(emaSlope) * 180 / Math.PI;
Look fwd to your reply.
Cheers,
Ken.
Comment