Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Having trouble with basics

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

    Having trouble with basics

    Ok Im pretty darn new to Nina Trader and Im having a hard time with some basics.

    I want to screen for when a stock is up over 5% on the day, cant find an easy way to do that in the New Strategy Condition builder.

    There is no "last" there is bid and ask but no last?

    Also I would like to get the average volume for the past 20 days
    Then divide that volume by 13 then relate that to todays volume intraday.

    Can I do this?

    #2
    Hello illcrx,

    While there is no last data, you do have the option to use the Close with CalculateOnBarClose = false that will calculate on each incoming tick of data. Note that when writing NinjaScript code the, CalculateOnBarClose(COBC) can vastly effect how your code functions. Which means that if CalculateOnBarClose is true, then the strategy/indicator will be calculated at the close of each bar. If your strategy is set to COBC=false, then it will act differently since it will be calculated on each tick. See the following link for more info on COBC.


    From the Strategy Wizard you can check to see if the price is up 5% by using the Close. So for example if the Close with an offset of 5% is greater than the CurrentDayOHL(CurrentOpen) then do an action. See attached image.

    For the volume, the VOLMA will get the moving average of the volume based on a specified period. For more information on the VOLMA indicator you may view the following link.


    Custom calculation like dividing the volume by 13 will have to be done through custom code and unlocking your NinjaScript.

    I would recommend view the following videos for more information about the Strategy Wizard.
    http://www.youtube.com/watch?v=brVV7...ure=plpp_video
    http://www.youtube.com/watch?v=JZpo0...ure=plpp_video

    Please let me know if I can be of further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    670 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X