Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    53 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    33 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    5 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    19 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    6 views
    0 likes
    Last Post cre8able  
    Working...
    X