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.
    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 sidlercom80, 10-28-2023, 08:49 AM
        170 responses
        2,271 views
        0 likes
        Last Post sidlercom80  
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        17 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post adeelshahzad  
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        3 views
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Working...
        X