Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

9 EMA, 21 EMA both are above 50 EMA

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

    9 EMA, 21 EMA both are above 50 EMA

    Hello,

    I know how to check if the 9 EMA crosses 21 EMA but how do I make sure that both of these EMAs are above 50 EMA also. So far I got this but not sure how to incorporate the third 50 EMA check with this code:

    if (CrossAbove(emaFast9, emaSlow21, 1)

    Thanks

    John

    #2
    Hello JohnZee

    You would have to add two more conditions which check that each of the ema's are greater than the 50 ema in addition to the cross above.

    Code:
    if(emaFast9[0] > emaSlow50[0] && emaSlow21[0] > emaSlow50[0] && CrossAbove(emaFast9, emaSlow21, 1))

    Comment


      #3
      OK thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X