Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bollinger bands based on VWMA

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

    Bollinger bands based on VWMA

    this must be simple to build, but I dont know how. Just a bollinger band using VWMA, as opposed to SMA.

    Basically a rolling VWAP.

    Any help would be great, new at coding here.

    #2
    Hello,

    Thanks for the forum post and welcome to the NinjaTrader support forum.

    Simply edit the bollinger band indicator. Control Center->Tools->Edit NinjaScript->Indicator.

    Then right click on the test and select Save As. Give it your new name.

    THen change line 48

    double smaValue = SMA(Period)[0];

    To

    double smaValue = VWMA(Period)[0];

    Let me know if I can be of further assistance.

    BrettNinjaTrader Product Management

    Comment


      #3
      Thank you very much sir.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      47 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      15 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      21 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X