• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjacript Volume Trigger

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

    Ninjacript Volume Trigger

    A programmer programmed a Ninjascript that is supposed to use a minimum volume amount for a buy or short signal prior to a certain set time in the day.

    The issue is that the script buys at a lower volume than it should. For example the other day VDSI was bought when volume was about 45,000 shares instead of the 216,000 shares.

    I'm wondering if the script is reading the chart and counting the pre-market volume or the volume from the previous day during extended hours.

    How to I set the chart only to have the volume for market hours to see if this theory holds?
    In the session template I changed it from 24/7 to Stocks RTH will this fix this issue?
    Last edited by cdnPATRIOT; 01-01-2015, 09:51 PM.

    #2
    cdnPATRIOT, which symbol / timeframe are you working this script on?

    If you're using an intraday chart then changing over to RTH hours may help, correct.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I'm using an intraday chart (30 minute) but the Stochastic and MACD indicators are calculated using the previous three trading days.

      Comment


        #4
        Thanks, yes then likely an issue with the selected template used - it would be defining which bars are included in your session and therefore also which volume for those bars. If you just want to monitor the regular trading hours, then RTH should be what you seek. Please retest using this template today.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by timcjpfx, Today, 06:22 AM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by welson, Today, 08:26 AM
        2 responses
        13 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by brucerobinson, Today, 08:27 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by Leeroy_Jenkins, Today, 07:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by 1001111, 02-22-2020, 09:10 AM
        5 responses
        41 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X