Jump to content

Vwap for trading futures


milkman13ui

Recommended Posts

  • 3 weeks later...

Re: Vwap for trading futures

 

Dear milkman13ui,

 

I haven't made use of the vwap (yet) but I've filed it away with "market profile" and imagine that I will soon do so.

 

Here are a few useful references that I have found:

 

The VWAP is considered to be a fair benchmark for comparison of the institutional trade desks ability to execute trades on behalf of the customer. Here's a short explanation.

hXXp://alphatrends.blogspot.com/2007/11/institutional-trading-benchmark.html

 

In case you want to plot the vwap but don't have the capability on your platform

At hXXp://www.freestockcharts.com/ you can add the vwap indicator on any chart eg. eurusd.

 

Here's the formula for the vwap:

hXXp://www.northerntrust.com/pws/jsp/display2.jsp?XML=pages/nt/0802/search&q=vwap

 

 

I hope you find this useful.

 

- dtrend

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Re: Vwap for trading futures

 

Please let me know if it is what you were looking for.

 

 

   inputs:

   EC3 (false),
   EC4 (false),
   colorup(blue),
   colordn (red);

   vars:
   PrixW(0),
   TitreW(0),
   Count(0),
   VWAPValue(0),
   VWAPVar(0),
   VWAPEC(0),
   up(0),
   dn(0);

   If close>close[1] then up=1;
   If close<close[1] then dn=0;

   if date > date[1] then begin
   PrixW = 0;
   TitreW = 0;
   Count = -1;
   Value1 = 0;
   Value2 = 0;
   VWAPValue = 0;
   end;

   PrixW = PrixW + AvgPrice;
   TitreW = TitreW + 1;
   Count = Count + 1;
   Value3 = 0;

   if TitreW <> 0 then begin
   VWAPValue = PrixW / TitreW;
   For Value1 = 0 To Count Begin
   Value2 = ((up[Value1]+dn[Value1])/TitreW) * (Square(AvgPrice[Value1]-VWAPValue));
   Value3 = Value3 + Value2;
   end;
   end;

   VWAPVar = Value3;
   VWAPEC = SquareRoot(VWAPVar);

   Plot1(VWAPValue,"VWAP",white);
   Plot2(VWAPValue + VWAPEC,"VWAP1ECUp",colorup);
   Plot3(VWAPValue - VWAPEC,"VWAP1ECDn",colordn);
   Plot4(VWAPValue + (2*VWAPEC),"VWAP2ECUp",colorup);
   Plot5(VWAPValue - (2*VWAPEC),"VWAP2ECDn",colordn);

   If EC3 = true then begin
   plot6(VWAPValue + (3*VWAPEC),"VWAP3ECUp",colorup);
   plot7(VWAPValue - (3*VWAPEC),"VWAP3ECDn",colordn);
   end;

   If EC4 = true then begin
   plot8(VWAPValue + (4*VWAPEC),"VWAP4ECUp",colorup);
   plot9(VWAPValue - (4*VWAPEC),"VWAP4ECDn",colordn);
   end;

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...