Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slope of EMA

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

    Slope of EMA

    Hello,

    I want to develop a strategy that will execute if the slope of the EMA 34 is greater than 30 degrees for long side trades, or greater than -30 degrees for short side trades, what is the code to calculate this?

    Thanks,
    Jim

    #2
    Jim, you would need to custom code this type of strategy, for the 'rise over run' slope value, please try the Slope() method we have available in NinjaScript - http://www.ninjatrader-support.com/H...eV6/Slope.html
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by blar58, Today, 03:16 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by alcorr247, Today, 02:52 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Radano, Today, 02:30 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by DrummerBoy, Today, 01:34 PM
    3 responses
    29 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by kangethe, Today, 02:11 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X