+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 14

Thread: VWAP Implementation

  1. #1
    FasTbrokers Group
    Join Date
    May 2010
    Location
    Italy
    Posts
    23

    Default VWAP Implementation

    Implement a Volume Wieghted Average Price is not a difficult thing on pathfinder,

    take a look to the formula:

    46bad117567e483aade6089e9cdad0ca.png

    as you know any variable on pathfinder become a vector so it keep trace of previous values,
    this is the key that make simple this kind of implementations with pathscript, the above formula can be written as follow:

    SET INSTVWAP = (OPEN * VOLUME) / VOLUME

    SET VWAP = SMA(INSTVWAP, 20)

    An ready to use indicator is attached for download.

    VWap Image.jpg

    Important Disclaimer: The code or software herein contained or attached, including but not limited to Custom indicators, PathScript, Expert Advisors, EAs, and any other Scripts (“Software”), are provided "As Is" and are intended to be used for informational and educational purposes only. The Software is provided by FastBrokers and/or its employees or affiliates (“FastBrokers”) as a courtesy service to its customers and it is intended for informational and educational purposes only and under no circumstances should be regarded as investment advice or as a solicitation or an offer to sell/buy any financial product. FastBrokers assumes no responsibility or liability from gains or losses incurred by the performance of the Software provided. No representation is being made that any account will or is likely to achieve any particular profits or losses. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular Software. Hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. The Software cannot be guaranteed to be error-free, thus may cause unforeseeable results. By using the Software provided by FastBrokers, End User assumes full responsibility for verifying the validity of the Software, and End User accepts full responsibilities for its actions, trades, profit or loss, and End User agrees to hold FastBrokers harmless in any and all ways. If you do not agree with this statement you must remove the Software from your computer.
    All trademarks are the property of the respective owners of each piece of Software, where stated.
    Attached Files
    Last edited by Salvatore Rossitto; 08-05-2010 at 10:56 AM. Reason: signature disclaimer
    Sincerely,
    Salvatore Rossitto
    PathFinder Platform Developer.
    FastBrokers - Fast Trading Services, LLC
    www.fastbrokers.com

  2. #2
    Junior Member
    Join Date
    Jul 2010
    Posts
    9

    Default

    Salvatore,

    Saw your VWAP implementation. I just opened both a futures and FX account through Fastbrokers and might need your assistance on coding some custom indicators. Is PathFinder Trader offering price/volume profile to be used with the VWAP? Can I use +/- 1, 2 standard deviations based on the distance from the VWAP? I have a Trade Station/Easy Language and Ninja Trader script codes for the VWAP/SD study I need, can I use that in PFT?

    Regards,
    Halli.

  3. #3
    FasTbrokers Group
    Join Date
    May 2010
    Location
    Italy
    Posts
    23

    Default

    Quote Originally Posted by Hallst10 View Post
    Salvatore,

    Saw your VWAP implementation. I just opened both a futures and FX account through Fastbrokers and might need your assistance on coding some custom indicators. Is PathFinder Trader offering price/volume profile to be used with the VWAP? Can I use +/- 1, 2 standard deviations based on the distance from the VWAP? I have a Trade Station/Easy Language and Ninja Trader script codes for the VWAP/SD study I need, can I use that in PFT?

    Regards,
    Halli.
    Dear Hallst10,
    you will have all assistence you need from me.
    I can't say if your scripts are doable in PathFinder, I should take a look at the code before.

    Don't hesitate to contact me.
    Sincerely,
    Salvatore Rossitto
    PathFinder Platform Developer.
    FastBrokers - Fast Trading Services, LLC
    www.fastbrokers.com

  4. #4
    Junior Member
    Join Date
    Jul 2010
    Posts
    9

    Default

    Salvatore,

    Thanks for your quick reply. Does PathFinder Trader offer volume profile? It must be since you have implemented the VWAP indicator.

    If I send you a link to the Trade Station ELD file, can you take it from there, that is, code it in PathScript? I know of group of traders who have asked for this study in Ninja Trader, Sierra, MultiCharts, etc. and I am sure they would be happy if you have it available for them.

    How can I import the VWAP study into my charts?

    Regards,
    Halli.

  5. #5
    FasTbrokers Group
    Join Date
    May 2010
    Location
    Italy
    Posts
    23

    Default

    Quote Originally Posted by Hallst10 View Post
    Salvatore,

    Thanks for your quick reply. Does PathFinder Trader offer volume profile? It must be since you have implemented the VWAP indicator.

    If I send you a link to the Trade Station ELD file, can you take it from there, that is, code it in PathScript? I know of group of traders who have asked for this study in Ninja Trader, Sierra, MultiCharts, etc. and I am sure they would be happy if you have it available for them.

    How can I import the VWAP study into my charts?

    Regards,
    Halli.
    Hello Hallst1,
    Yes, you can use volume in your strategies and indicators.
    I arlready worked with easylanguage, mql and many other languages so, send me the link, i will take a look.
    To import the indicator follow these steps:

    Open the code editor (if pf is open Click on Scripting->Custom Ind. Editor)
    In the editor Go to File->Import From File
    Select the indicator file and import it.
    Now you will find the script on the custom indicators list.

    PS: If you are interested in volume studies, take a look to Volume Tab in chart properties, you will appreciate it.
    Sincerely,
    Salvatore Rossitto
    PathFinder Platform Developer.
    FastBrokers - Fast Trading Services, LLC
    www.fastbrokers.com

  6. #6
    Junior Member
    Join Date
    Jul 2010
    Posts
    9

    Default

    Thanks for willing to assist me. I managed to open the VWAP indicator in PFT.
    If you click on the link below, you see what type of an indicator I am looking for. You can see an .ELD and some screen shots there

    http://www.traderslaboratory.com/for...vwap-3647.html

    Regards,
    Halli.

  7. #7
    FasTbrokers Group
    Join Date
    May 2010
    Location
    Italy
    Posts
    23

    Default

    Quote Originally Posted by Hallst10 View Post
    Thanks for willing to assist me. I managed to open the VWAP indicator in PFT.
    If you click on the link below, you see what type of an indicator I am looking for. You can see an .ELD and some screen shots there

    http://www.traderslaboratory.com/for...vwap-3647.html

    Regards,
    Halli.
    Hello Hallst10,
    I got the indicators, leave me the time to take a look i will give you news asap.
    Sincerely,
    Salvatore Rossitto
    PathFinder Platform Developer.
    FastBrokers - Fast Trading Services, LLC
    www.fastbrokers.com

  8. #8
    Junior Member
    Join Date
    Jul 2010
    Posts
    9

    Default

    Ok excellent Salvatore.

    As I said I know a group of traders found at traderslaboratory.com, elitetrader.com, trade2win.com etc. who would really appreciate this study. But it has to be calculated correctly, I am currently using Ensign for my charts and its VWAP study is correct but its standard deviations are not calculated correctly.

    But the code (.ELD file) found in the link I sent you should be correct. So if you can somehow convert that code to PathScript, I am sure many traders would consider your PFT platform.

    Do not hesitate to contact me if you need further info. I might send you an email with a screen shot of the study I am looking for.

    Regards,
    Halli.

  9. #9
    FasTbrokers Group
    Join Date
    May 2010
    Location
    Italy
    Posts
    23

    Default

    Hello Hallst10,
    I have done some modify on VWAP, because a noticed the volume wasn't influencing the value.
    I have also added 3 levels Standard Deviation on it.
    Periods are 20 on vwap and sd also but you can change these values in the code.

    About PVP, we has not implemented Ticks volume studies in PathScript.
    Our charts already provide advanced volume studies on volume studies tab under chart properties ( right click on chart and click property)
    I think that a 15 minutes Volume Analisys will be useful as well as the PVP.
    Attached Files
    Sincerely,
    Salvatore Rossitto
    PathFinder Platform Developer.
    FastBrokers - Fast Trading Services, LLC
    www.fastbrokers.com

  10. #10
    Junior Member
    Join Date
    Jul 2010
    Posts
    9

    Default

    Salvatore,

    Thanks for taking a look at the VWAP for me.

    I do not know why you are using the 20 period setting for VWAP and SD. The VWAP should be run at market open (9:30) and should use the available volume coming into the market. Then the SD should be calculated from the developing VWAP.

    Actually we do not need tick charts for the study, Ensign for instance just assumes that volume is equally distributed within each bar. So it takes the volume for each 2m bar and just averages the open+high+low+close/4.

    You say the platform offers advanced volume studies. Could you please explain to me what these are for and how they work.

    Regards,
    Halli.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts