Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving Average Cross overs

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

    Moving Average Cross overs

    hi, how can i code multi ema cross over . i can do 2 line cross over but when i apply the same method to multiple lines it wont work. ex: ema 234567cross1012141618

    #2
    Hello hakanshuker,

    Thank you for the post.

    I went ahead and moved this into a new topic for your specific questions as the other post was very old.

    When you say that you can do a 2 line crossover but when you apply the same method it wont work, can you provide a sample of what you are currently doing that does not work?

    For multiple crossover conditions you can generally do something like the following:

    Code:
    if(CrossAbove(EMA(12), EMA(20), 1) && CrossAbove(EMA(12), EMA(25), 1))
    {
    
    }

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    73 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X