Announcement

Collapse
No announcement yet.

EMA on weekly interval

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

  • EMA on weekly interval

    Hello,
    I'm trying to get ema of weekly period and I get a wrong number.
    Another question: I'm trading S&P futures. Now M8, but for weekly chart I use "#F" so can I write
    var w40 = ema(40, sym('ES #F,W),0);
    to receive a current value of EMA(40) of weekly interval.

    Regards,

    Baruch
    Attached Files

  • #2
    Re: EMA on weekly interval

    Baruch
    Your script appears to be returning the correct current value when run at my end (see the enclosed image showing your script running on a daily chart compared to the Basic Study exponential average on a weekly chart). In what way are the values incorrect at your end?
    ema(40, sym("ES #F,W"),0) will return the current value of the exponential average based on the weekly data of the symbol ES #F.
    Alex




    Originally posted by baruchs
    Hello,
    I'm trying to get ema of weekly period and I get a wrong number.
    Another question: I'm trading S&P futures. Now M8, but for weekly chart I use "#F" so can I write
    var w40 = ema(40, sym('ES #F,W),0);
    to receive a current value of EMA(40) of weekly interval.

    Regards,

    Baruch

    Comment

    Working...
    X