Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter long position crossing a ema

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

    Enter long position crossing a ema

    Good morning: I'm trying to open a long position when the price (Renko bar) crosses above an EMA, but I want that this crossing occurs in the penultimate candle. I have used the following formulas: a) Price, two bars ago, crosses over EMA. b) Price crosses, look bar period 2, EMA. But I cannot get it.
    Could you help me?
    Thank you

    #2
    Hello Felnat,

    Our NinjaTrader Support is not able to assist with a custom calculation or formulate, but I am able to assist with understanding if this condition is evaluating as true or false and why.

    This thread will remain open for any community members that would like to assist with the calculations or formulas.

    Regarding the condition, you can use a print that prints the time of the bar and all values used in the condition set that places the order to find out why that condition evaluated as true or false.

    Below is a link to a forum post that demonstrates.


    Please add a print (that includes the time of the bar) similar to what is demonstrated in the video and include the output with your next post and I will be happy to assist you in analyzing the output.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 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
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X