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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    58 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    39 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    19 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    21 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X