NexusFi: Find Your Edge


Home Menu

 





VWAP for Multicharts


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one ilu007 with 2 posts (0 thanks)
    2. looks_two olobay with 2 posts (8 thanks)
    3. looks_3 torento with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (0 thanks)
    1. trending_up 8,374 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 torento 
Perth, Western Australia
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Trading: Futures
Posts: 34 since Feb 2012
Thanks Given: 39
Thanks Received: 37

I was hoping someone may be able to help me with a VWAP indicator for Multicharts which does not reset.
I'm trading extended trading hours futures and no matter what settings I put into VWAP reset the indicator resets at midnight.

Would someone please be able to help me with a standard VWAP indicator which begins plotting at session Open and finishes plotting at session Close?
Or is there a way to change the code of VWAP reset to plot from session open to close without any resets?

I've been using SessionVWAP Daily V43 for Ninjatrader without the volatilty bands just the VWAP line itself, I've attached a pic.


Thanks.


Attached Thumbnails
Click image for larger version

Name:	VWAP 2.jpg
Views:	659
Size:	209.7 KB
ID:	177710  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Third Circuit Backs Kalshi in Landmark Ruling -- Predict …
Prediction Markets & Event Contracts
Kalshi Rockets to $22B, Passes Polymarket in Volume -- B …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
17 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
 ilu007 
New York + US
 
Experience: Intermediate
Platform: MultiCharts
Trading: Indian Stocks
Posts: 40 since Aug 2015
Thanks Given: 10
Thanks Received: 2

Can anyone help us with SD VWAp for Multicharts which does not reset.

Would someone please be able to help me with a standard VWAP indicator which begins plotting at session Open and finishes plotting at session Close?

Or is there a way to change the code of VWAP reset to plot from session open to close without any resets?


Reply With Quote
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639


Hi ilu007,

setting all time inputs to the session open should accomplish that. You could also set them to a negative value (like -1) in which case the reset would be done on the date change.

Regards,

ABCTG


ilu007 View Post
Or is there a way to change the code of VWAP reset to plot from session open to close without any resets?


Follow me on X Reply With Quote
  #4 (permalink)
 olobay 
Montreal
 
Experience: Intermediate
Platform: MultiCharts
Broker: DeepDiscountTrading.com
Trading: CL
Posts: 364 since Jul 2011


ilu007 View Post
Can anyone help us with SD VWAp for Multicharts which does not reset.

Would someone please be able to help me with a standard VWAP indicator which begins plotting at session Open and finishes plotting at session Close?

Or is there a way to change the code of VWAP reset to plot from session open to close without any resets?

 
Code
input: time_start (1800), upColor(Cyan), dnColor(Magenta);

vars: vwap(0),
pv(0),
Totalvolume(0),
Barfromstart(0),
Squareddeviations(0),
Probabilityweighteddeviations(0),
deviationsum(0),
standarddeviation(0),
OncePerDay(0);
If date > date[1] then OncePerDay = 0 ;
If Time >= time_start and OncePerDay = 0 then begin
OncePerDay = 1 ; 

Barfromstart=0;
pv=AvgPrice*volume;
Totalvolume=volume;
vwap=pv/totalvolume;
end
else
begin
Barfromstart=Barfromstart[1]+1;
pv=pv[1] + AvgPrice*Volume;
Totalvolume=Totalvolume[1] + Volume;
vwap=pv/Totalvolume;
end;
deviationsum=0;
for value1= 0 to Barfromstart
begin
Squareddeviations=Square( vwap-avgprice[value1]);
Probabilityweighteddeviations=volume[value1]*Squareddeviations/Totalvolume;
deviationsum=deviationsum +Probabilityweighteddeviations;
end;

standarddeviation=SquareRoot(deviationsum); 
Plot1(vwap, "VWAP");
Plot2(vwap+standarddeviation, "+1 StDev");
Plot3(vwap+2*standarddeviation, "+2 StDev");
Plot4(vwap-standarddeviation, "-1 StDev");
Plot5(vwap-2*standarddeviation, "-2 StDev");

var: var1(yellow);
if vwap > vwap[1] then var1 = upColor;
if vwap < vwap[1] then var1 = dnColor;
SetPlotColor(1,var1);


Reply With Quote
  #5 (permalink)
 DXB Trader 
Dubai UAE
 
Experience: Intermediate
Platform: Multicharts
Trading: ES/NQ/CL Futures + Big Cap Equities
Posts: 8 since Jul 2020
Thanks Given: 6
Thanks Received: 6

Hi Olobay,

I'm very new to Multicharts (literally started today!). Any chance you could explain the exact steps to adding this custom VWAP indicator?

Is it Right-Click Format Indicator > Open Script > New Study > Name: VWAP_DXB (or whatever) > Language ??

Any help you can provide will be much appreciated.

Thanks,

DXB


Reply With Quote
  #6 (permalink)
 ilu007 
New York + US
 
Experience: Intermediate
Platform: MultiCharts
Trading: Indian Stocks
Posts: 40 since Aug 2015
Thanks Given: 10
Thanks Received: 2

Hey Trader,

It is

Right click the mouse >> go to Insert study >> You will find this indicator in the bottom called VWAP... and then modify the time as per your exchange opening...


But before that, please put this code in Power editor and compiled it, and then it will show in your indicator study...

Hope this helps !!!

Ilyas


Reply With Quote
  #7 (permalink)
 olobay 
Montreal
 
Experience: Intermediate
Platform: MultiCharts
Broker: DeepDiscountTrading.com
Trading: CL
Posts: 364 since Jul 2011


DXB Trader View Post
Hi Olobay,

I'm very new to Multicharts (literally started today!). Any chance you could explain the exact steps to adding this custom VWAP indicator?

Is it Right-Click Format Indicator > Open Script > New Study > Name: VWAP_DXB (or whatever) > Language ??

Any help you can provide will be much appreciated.

Thanks,

DXB

Open Powerlanguage Editor then go to File--New--Indicator. Name it what you want VWAP_BMT or whatever. Paste the code in there and click Compile. Then go to a chart and right click Insert Study and select the file you named.


Reply With Quote




Last Updated on July 7, 2020


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts