Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 05:21:38 +0000



Post From: Line based on slope

[2018-09-09 22:35:42]
User976133 - Posts: 38
Thanks for the response, but it misses my point.
I have the colors where I want them.
Let's say I want an indicator that places an up arrow when the 8EMA crosses the 21 ema.
No problem. CrossFromBelow(ID1.SG1,ID1.SG2), assuming ID1 represents the moving averages.
Now, I want to add a line to the condition when the higher (or lower) time frame line is green (uptrend).
Is there a way that I can get from the slope of the line, whether it is uptrend or downtrend?
I have used ID2>ID2[-1], but because it is from a different time frame, it is unpredictable and does not accurately reflect what the slope of line accurately represents.