Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buysellpresure Question

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

    Buysellpresure Question

    Hello everyone i am trying to incoperate the Buysellpresure into a strategy however I must be doing it wrong because it only shows the 50% line. I am trying to set a condition so that if the buypresure is greater than 80% for a period of 10 seconds then trigger a long entry and of course the opposite is true for a short entry. I do understand that this indicator in strategy can not be backtested, I plan to experiment on a live basis in simulation mode. If anyone can help it would be great, thanks in advance.

    #2
    Hi tomonly23,

    This appears to be an issue with the CalculateOnBarClose setting.

    First, ensure COBC = false in the strategy.

    Then, edit the BuySellPressure indicator, and create a new instance of it under another name. (Tools>Edit NS>Indicator>Right click>Save As>BuySellPressure2) Edit the indicator and completely delete the CalculateOnBarClose = false; line from the Initialize() section. Compile the indicator.

    Now, call that new instance of the indicator from your strategy.
    TimNinjaTrader Customer Service

    Comment


      #3
      Quick Reply

      Thanks for your help Tim,

      One further question, I can not seem to figure out how to use the BuySellVolume in a strategy basically I would like to set a condition where if the "Buys" is greater than 80% of the BuySellVolume bar then trigger a long entry and vise versa.

      Thanks Tom

      Comment


        #4
        Hi tomonly23,

        The BuySell Volume indicator can not be accessed programmatically. Alternatively, use the BuySell Pressure indicator for programmatic access.

        You can access the BuySellPressure() with something like....

        Code:
        if (BuySellPressure(Close).BuyPressure[0] > 80)
        do something;
        More info at - http://www.ninjatrader-support.com/H...uySellPressure
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 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