Announcement

Collapse
No announcement yet.

EMA daily on intraday chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EMA daily on intraday chart

    Hi,

    I wanted to display the 21-day ema line on my 5 min intraday chart.

    The formula I am using is;

    "return ema(21,inv("D"));"

    Which, by reading the info in the EFS2 help file should work.

    Yet, I don't get an error and nothing appears on the chart.
    When I print the value to the formul;a output windows it displays "[oject Series]".

    I assume that insuficient data is loaded with the 5min chart...

    How do I get around that problem?

  • #2
    QTrader
    It is possible that nothing appears on the chart simply because the average is outside of the viewed area. Right click the chart, select Scaling and check if Scale Price Data Only is selected. If it is then deselect it.
    To print the value in the Formula Output window use the bar index parameter to call the specific value ie
    debugPrintln(ema(21,inv("D"),0))
    Alex

    Comment

    Working...
    X