Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volume Weighted EMA?

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

  • NinjaTrader_JoshP
    replied
    GGAG33,

    That is standard C# code. NinjaTrader is not built on a simple scripting language. You have the full power of a true programming language at your finger tips.

    Leave a comment:


  • GGAG33
    replied
    Originally posted by mrlogik View Post
    GGA,

    Can you post the code.
    In order to translate this, we would need to know what
    - t is
    - K is
    T is Current bar

    T - 1 is the past bar

    K is 2 / (Period + 1)

    And I have nothing worthy of posting because its just 20+ errors in them + I can't figure out how the hell Ninjatrader calculates a EMA because it looks nothing like the real equation...

    This is Ninjatraders : Input[0] : Input[0] * (2.0 / (1 + Period)) + (1 - (2.0 / (1 + Period))) * Value[1]

    Normal: EMA(t - 1) + (K x [Price(t) - EMA(t - 1)]

    I suggest you guys change it, because all the other platforms I have tried besides this one is self explanatory. Most of the time it takes me like 10-15 minutes.

    Leave a comment:


  • mrlogik
    replied
    GGA,

    Can you post the code.
    In order to translate this, we would need to know what
    - t is
    - K is

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    As a last resort you can try one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm

    Leave a comment:


  • GGAG33
    replied
    Can you at least translate it into how Ninjatrader calculates it for me?

    Here's the formula.

    VWEMA(t-1) + (K * [Price(t) * Volume(t) - VWEMA(t-1])
    ------------------------------------------------------
    VWEMA(t-1) (K * [Volume(t) - VWEMA(t-1)

    So can anyone translate into something that Ninjatrader would understand?

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Originally posted by GGAG33 View Post
    I spent 10+ hours trying to make one or figure it out and just couldn't figure out what I was doing wrong.

    If it's easy or something could someone post one?
    Hi GGAG33, welcome to the forum!

    Have you tried our regular VWMA? This is like a normal SMA, but weighted by volume.

    Do you mind sharing any references you have for the Vol Weighted EMA you are talking about?

    Thanks!

    Leave a comment:


  • GGAG33
    started a topic Volume Weighted EMA?

    Volume Weighted EMA?

    I spent 10+ hours trying to make one or figure it out and just couldn't figure out what I was doing wrong.

    If it's easy or something could someone post one?

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
44 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
63 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
35 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
95 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
59 views
0 likes
Last Post PaulMohn  
Working...
X