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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,406 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    98 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    160 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    9 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X