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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 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
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 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