OmniTrader Forum - OmniTrader 2012 Technical Support
Moving Average of Median Price

^ Top
NormanH

Posts: 38

Joined: 11/23/2011
Location: Richmond VA

User Profile
 
Subject : Moving Average of Median Price
Posted : 3/18/2022 10:45 AM
Post #48585

I want to display an indicator of a 10 period moving average of the median price. I would prefer an exponential average but a simple average would do. I am trying to do a Quick Indicator. I have tried the formula below but the program doesn't like it.

EMA( MP(10) )

I tried a simple formula with MP(0) + MP(-1) etc. That didn't work either.

Does anyone have any hints? I have Omnitrader 2022.

Thanks

^ Top
Jim Dean

Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Moving Average of Median Price
Posted : 3/18/2022 11:29 AM
Post #48588 - In reply to #48585

I haven’t used Median Price aka MP before, so I can’t comment on its syntax. If it’s the average of OHLC, then it has no param’s. That’s what I’ll assume.

However the EMA that you are wrapping it in needs the periods specified. Try this:

EMA( MP(), 10 )
^ Top
NormanH

Posts: 38

Joined: 11/23/2011
Location: Richmond VA

User Profile
 
Subject : RE: Moving Average of Median Price
Posted : 3/18/2022 1:29 PM
Post #48589 - In reply to #48585

Thanks so much! It works!


https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16537&posts=3