Draw line of MA in chart
3 replies
Uwe6000
7 years ago #241838
Hello,
I want to draw a calculated line as moving average in the chart, which
e.g. the mean is between EMA200 and SMA30.
In the Rule i use EMA200 + SMA30 : 2
I can easily use this value with “Move SL to … EMA200 + SMA30: 2”
But how can I draw the line in the chart? I see only: Then…. “Draw Up Arrow”
When I use: Custom Action: Command “SetIndexStyle (Draw_Line)” does not work.
Thank you for your ideas
0
coensio
7 years ago #241839
you can make a custom indicator that displays this “EMA200 + SMA30 : 2” line…
This is a false statement.
0
Tomas Matejka
7 years ago #241853
Hello,
you can calculate the price first and then add “custom actions” with codes (each drawing order to a new line if you have mutliple lines or want to set line parameters)
For example how to draw a trendline from High[30] to High[1]:
ObjectCreate(0,”trendLine1″, OBJ_TREND, 0, Time[30], High[30], Time[1], High[1])
0
Uwe6000
7 years ago #248339
Hello, i don`t know how can i do this. Have an example ? SMA200 and SMA50 maybe ?
thanx
0
Viewing 3 replies - 1 through 3 (of 3 total)