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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      63 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      139 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X