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 trilliantrader, 04-18-2024, 08:16 AM
    4 responses
    18 views
    0 likes
    Last Post trilliantrader  
    Started by mgco4you, Today, 09:46 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by wzgy0920, Today, 09:53 PM
    0 responses
    10 views
    0 likes
    Last Post wzgy0920  
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    10 views
    0 likes
    Last Post Rapine Heihei  
    Working...
    X