automatic trading strategy with VWAP bands

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #208126 quote
    dirlefdirlef
    Participant
    New

    Hi,

    hope someone can help me to build a strategy with VWAP (bands). I’m totaly new with automatisation and would like to build a automatic trading strategy with the cross over and cross under of VWAP. Can someone help me with that please…

    Already a big thanks

    #208155 quote
    GraHalGraHal
    Participant
    Master

    Here’s a good start … code for the VWAP Indicator

    VWAP Bands

    Midlanddave thanked this post
    #208211 quote
    NicolasNicolas
    Keymaster
    Legend

    Without any details, I build quickly this very basic strategy that open orders when price crosses the intraday VWAP:

    defparam cumulateorders=false 
    
    d = max(1, intradaybarindex)
     
    VWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)
    
    if close crosses over vwap then 
    buy at market 
    endif 
    
    if close crosses under vwap then 
    sellshort at market 
    endif 
    
    graphonprice vwap
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

automatic trading strategy with VWAP bands


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
dirlef @dirlef Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by NicolasNicolas
3 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/24/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...