Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to detect no volume like on forex

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

    How to detect no volume like on forex

    I have a demo account on forex.com and the charts don't have any volume. I would like a boolean to use in my indicator to detect this deal with it accordingly.

    #2
    Hello alanlopen,

    When you say there's no volume are you using the VOL indicator or what way are you checking the volume currently? For historical data the volume is all the same but you should see updating volume in realtime generated bars.

    JesseNinjaTrader Customer Service

    Comment


      #3
      Yes VOL reports the same volume, for eg on USDJPY it is 10k, but I can't use that. Is there a smart way to detect this case ? or at least when we are on historical data on Forex (ideally compatibl with all forex brokers on ninja).

      Comment


        #4
        Hello alanlopen,

        You can use the State to know when its historical

        Code:
        if(State == State.Historical)
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DavidHP, Today, 07:56 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by kujista, Today, 06:23 AM
        3 responses
        9 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by Mindset, Yesterday, 02:04 AM
        2 responses
        18 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Working...
        X