Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Program Strategy Analyzer Question

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

    Program Strategy Analyzer Question

    Hope someone can give me an idea on this. I have 2 moving averages, type dosen't matter for this discusion(faster & slower periods). How does one state a condition that when the faster MA slopes up or positive from either flat or sloping down from the previous bar? I understand how to input the MA is greater than the previous bar, but it must 1st be either flat or sloping down before it starts sloping up. It has to slope up or in other words the bar would turn green if so coded. This is for a long with the slower MA also having to be sloping up at bar close. The opposite condition for a short.

    So if this makes sense, at an exit condition the fast MA must 1st go back to flat or sloping down before it turns up again to look for a long. And it has to be on the 1st hook sloping up, no additional bars past the 1st positive slope up, that agrees with the slower MA sloping up.

    #2
    Since you know how to create a condition to check when the MA is greater than the previous bar....just extend this concept. Check if the MA of the prior bar is less than or equal to the MA of 2 bars ago.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by junkone, Today, 11:37 AM
    0 responses
    2 views
    0 likes
    Last Post junkone
    by junkone
     
    Started by quantismo, 04-17-2024, 05:13 PM
    5 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by proptrade13, Today, 11:06 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    34 views
    0 likes
    Last Post love2code2trade  
    Started by cls71, Today, 04:45 AM
    2 responses
    10 views
    0 likes
    Last Post eDanny
    by eDanny
     
    Working...
    X