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

Strategy Builder Help

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

    Strategy Builder Help

    Hi there,

    This seems like it should be super simple, but I am having a hard time getting a strategy I am developing to work in the Strategy Builder. The setup is:

    Setup:
    FastEMA below SlowEMA
    PSAR below FastEMA
    Price above PSAR

    Entry:
    When price touches PSAR, enter short via market order at PSAR

    I've attached an image of the setup, and a screenshot of my strategy builder. If someone can offer some help I would really appreciate it.

    Thanks!
    Attached Files

    #2
    Hello p.lozanski,

    The screenshot appears to show what you have described, except for the last condition 'When price touches PSAR'.

    Buy orders buy on the ask, but you could also use the Close to get the last. You could check that the price is within 1 tick of the ParabolicSAR() indicator.

    Use prints (in the Strategy Builder) to find out why the condition is not evaluating as true.

    Print the time, print the EMA(10), print the EMA(20), print the ParabolicSAR(0.02, 0.2, 0.02), print the GetCurrentBid().

    Below is a link to a forum post that includes a link to a video labelled 'Debugging using prints with the Strategy Builder'.


    Save the output to a text file and attach this with your next post.

    I will be happy to assist with analyzing the output.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    18 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X