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 DJ888, Today, 10:57 PM
    0 responses
    1 view
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X