Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Building a strategy with script

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

    Building a strategy with script

    Hello!

    Sorry for being very new, and ask a question most of you I am sure are very familiar with. I have no programming experience, but have been quite a successful trader for a decade now. However, when I look at ninjatrader it seems it can enhance my trading more.

    The question I need answering.

    After I get to the condition builder, here is what I want to start with.

    Condition 1:

    Low in bar 0 cross below Open in the same bar (that should also be 0?) minus 1 %. So if Open in bar is 100 it should trigger if the price move below 99.

    If I try to put Open * 0.99 in the window it gives me an error. Is there a way to do this?

    I have tried to look for a solution on this, but unsuccessfully. Thanks for any help!

    #2
    Hello Finor,

    Welcome to the NinjaTrader Support Forums!

    Could you clarify what error you are receiving?

    Note that when using the Strategy Wizard and the CrossBelow/CrossAbove operators you would not be able to set an offset for a Price Data Series like Open, High, Low, Close. The Strategy Wizard will automatically pass the entire Data Series in the Cross so you would not be able to offset a single value unless you do some custom coding, or use the "<, >, >=, <=, etc..." operators.


    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    117 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    226 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    417 views
    0 likes
    Last Post CaptainJack  
    Working...
    X