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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        148 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X