Differentiating between buy/sell volume

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10383 quote
    minmaxminmax
    Participant
    Average

    Is there a way to differentiate between buy and sell volume in code?

    i.e. if buy volume > X then buy market, if sell volume > X then sell market

    Also, can you tell me what figure the volume on Prorealtime is based on? Does it come from the market or is it Prorealtime clients?

    Regards

    Steve

    #10401 quote
    NicolasNicolas
    Keymaster
    Legend

    Currently, Volumes of buy and sell orders cannot be retrieved with code, sorry.

    #10406 quote
    mr.brymasmr.brymas
    Participant
    Average
    // Conditions to enter long positions
    indicator1 = Volume
    c1 = (indicator1 > 200000)
    
    
    IF c1 THEN
    BUY PositionSize SHARES AT MARKET
    ENDIF
    
    // Conditions to enter short positions
    indicator2 = Volume
    c2 = (indicator2 < 200000)
    
    
    IF c2 THEN
    Sellshort PositionSize SHARES AT MARKET
    ENDIF

    Beware that the volume function is stil in some kind of beta stage so there´s not more than a couple of days with volume-data for example DAX.

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

Differentiating between buy/sell volume


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
minmax @minmax Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by mr.brymasmr.brymas
10 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/11/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...