Page 1 of 1

VWAP (Monthly, Weekly, Daily)

Posted: 12 Mar 2015
by TJ
Disclaimer: I have not tested this code.

Please let us know your usage experience.

Please post and share your modifications and enhancements.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 13 Mar 2015
by Trent
A Monthly, Weekly, Daily VWAP indicator for Multicharts would be great, I've been unable to find a straight VWAP which can run through midnight without resetting anywhere.

Arnie posted his VWAP bands which can run on ETH sessions which works great.

I've been using exactly this (Monthly, Weekly, Daily VWAP) on another platform but have been unable to find this for Multicharts so I am looking forward to seeing it run.

I was unable to compile the code, it keeps coming up with errors, but to be honest, I am no programmer, I don't use many indicators or programmed strategies, this is the first time I've dealt with code as I do need a VWAP.

Thanks.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 13 Mar 2015
by TJ
::
I was unable to compile the code, it keeps coming up with errors, but to be honest, I am no programmer, I don't use many indicators or programmed strategies, this is the first time I've dealt with code as I do need a VWAP.
Thanks.
Please take a screenshot of the error message. Without that, we can only guess what is wrong with your problem.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 14 Mar 2015
by Trent
Thanks TJ.
I just copied and pasted the entire code into the powerlanguage editor and received the error in the attached pic.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 14 Mar 2015
by TJ
Thanks TJ.
I just copied and pasted the entire code into the powerlanguage editor and received the error in the attached pic.
!. You must ALWAYS copy the header.

The header gives credit to the author for his blood and sweat, and pay homage to his generosity for sharing his code to unknown strangers selflessly and without asking for any rewards, not even a thanks.

Also it is a good practice for you... because it has the link to the original article, which when and if you have access to, can read and understand the process even better.


ps. Comments in the code are for human consumption only; during the compiling process, all comments are ignored by the computer. The compiled indicator will run just as fast and efficient with or without comments.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 14 Mar 2015
by TJ
There is no reason the compiling should stop at "cad". Unless you have created another variable or input with the same name. Please scrutinize the code for duplications.


I have just copied and compiled the code without error.

If your problem persists, I would suggest you to re-install MultiCharts.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 14 Mar 2015
by sptrader
TJ: I have the same problem with "cad" .... using MultiCharts Version 9.0 Release (Build 10172)
Cad isn't listed as one of my functions, so I'm guessing that it might be a built-in function...
If I replace "cad" with "xyz" it compiles.. haven't tried plotting the study though..

Re: VWAP (Monthly, Weekly, Daily)

Posted: 15 Mar 2015
by Trent
I apologise TJ, I had no idea, I by no means mean to offend anybody, I'm only new at code.
I didn't change the code at all and I still couldn't get it to compile but I appreciate you sharing.
Thanks.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 15 Mar 2015
by TJ
I apologise TJ, I had no idea, I by no means mean to offend anybody, I'm only new at code.
I didn't change the code at all and I still couldn't get it to compile but I appreciate you sharing.
Thanks.
No need to apologise... we all run into road blocks once in a while. Since sptrader also reported the same experience, I have sent a PM to Andrew to ask him to look into it. Stay tuned.

Re: VWAP (Monthly, Weekly, Daily)

Posted: 15 Mar 2015
by JoshM
TJ: I have the same problem with "cad" .... using MultiCharts Version 9.0 Release (Build 10172)
Cad isn't listed as one of my functions, so I'm guessing that it might be a built-in function...
If I replace "cad" with "xyz" it compiles.. haven't tried plotting the study though..
`Cad` is a named constant for the Canadian Dollar, just like the `zar`, `eur`, `usd` constant keywords in PowerLanguage for other currencies.

These keywords aren't documented yet in the wiki, but if you click on them in the PowerLanguage Editor and press F1, the help about them will pop-up.