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, 10: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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        68 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        41 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        24 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        27 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X