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