Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rise over run on EMA

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

    Rise over run on EMA

    Hi.
    How easy is it to script an EMA to change color with the user's input of rise (price change) and run (n bars)?

    For instance a threshold of ascent and descent can be established by user input, and then the EMA can change green or red accordingly.

    Basically, a slope ratio is established.

    I don't know anything about scripting unfortunately , but I thought is would be a great indicator for just about anyone .

    Thanks!
    -techdoodle
    Last edited by techdoodle; 10-01-2011, 06:49 PM. Reason: added question mark

    #2
    Techdoodle,

    This wouldn't be that difficult. The issue would be to define over how many bars you want to calculate slope. For example, you may get flip-flopping signals if you only calculate slope over 2 bars. Its probably better to do a slope over several bars. There are rules defined for this known as "differential quadrature" or "numerical differentiation". Basically, a derivative at some point (from calculus), is slope.

    Please let me know if I can assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ozziyhtomit, Today, 01:37 PM
    5 responses
    12 views
    0 likes
    Last Post ozziyhtomit  
    Started by hellboy78, Today, 12:44 PM
    4 responses
    11 views
    0 likes
    Last Post hellboy78  
    Started by Option Whisperer, Today, 12:19 PM
    6 responses
    18 views
    0 likes
    Last Post Option Whisperer  
    Started by sdauteuil, Today, 11:30 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Serac, Today, 10:38 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X