Tick Volume indicator for Forex markets with IG

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #65812 quote
    Frans Botha
    Participant
    Veteran

    Hi all I would appreciate it if anyone could assist me with my query.

    I use Prorealtime with IG and as you know there is no volume for the forex markets.

    Query: Since we do get a tick by tick datastream and the tick chart works for forex markets

    is it possible to build your own tick volume indicator, by simply indicating how many ticks there was in a chosen timeframe (Example. 5Min or 30Min)

    Is it possible to do this? and what will the code be to see how many ticks?

    Thanks for the great website
    Regards

    Francois

    #65817 quote
    Nicolas
    Keymaster
    Master

    So basically, you want to know how many ticks there was in a single 5 minutes bar, for instance?

    #65818 quote
    Frans Botha
    Participant
    Veteran

    Hi Nicolas, Yes that is correct.

    #65822 quote
    Frans Botha
    Participant
    Veteran

    I should rather say “Tick indicator” as there wont be any volume with the tick.

    #65871 quote
    Nicolas
    Keymaster
    Master

    I don’t have any tips to code this because variables are constantly reset to 0 at each new tick received in the same bar, so counting ticks is not possible..

    Frans Botha thanked this post
    #65879 quote
    Frans Botha
    Participant
    Veteran

    Thats ok.

    Thanks for your assistance Nicolas.

    #65881 quote
    Nicolas
    Keymaster
    Master

    There maybe a possibility but with a tick by tick chart, that would mean to constantly have a tick by tick chart open with a specific indicator attached on it. Let me know if it could suit your needs or not.

    #65922 quote
    Frans Botha
    Participant
    Veteran

    Yes that could work, would like to test it if possible.

    #65939 quote
    Nicolas
    Keymaster
    Master

    I made this one, but it is specific for instruments with Volumes: Cumulative Volume Delta with periods

    Let me adapt this code to delete all volumes references and count only ticks on each side.

    #65945 quote
    Frans Botha
    Participant
    Veteran

    Great, thanks

    #65946 quote
    Nicolas
    Keymaster
    Master

    Please find below the “ticks only” version:

    //PRC_CumulativeTicksWithPeriods | indicator
    //21.03.2018
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    iminutes = 5 // in minutes quantity
    // --- end of settings
    
    newperiod = minute<>minute[1]
    if newperiod then
    count=count+1
    endif
    
    if count=iminutes then
    count=0
    tickp=0
    tickm=0
    endif
    
    
    if close>last then
    tickp = tickp+abs(close-last)
    last=close
    elsif close<last then
    tickm = tickm+abs(close-last)
    last=close
    endif
    
    delta = tickp-tickm
    
    
    return tickp coloured(0,200,0,50) style(histogram) as "Positive ticks", -tickm coloured(200,0,0,50) style(histogram) as "Negative ticks", delta as "Ticks Delta"
    Frans Botha thanked this post
    cumulative-ticks-with-periods.png cumulative-ticks-with-periods.png
    #65960 quote
    Frans Botha
    Participant
    Veteran

    Thanks Nicolas, i will test it and give you feedback

    #65995 quote
    Frans Botha
    Participant
    Veteran

    Modifying and testing it to see if i can get a ‘near match’ to the tick volume

    from another trading platform that displays Forex tick volume

    Not successful yet, but the code helped a lot as a template to build from

    Thanks for the assistance Nicolas

    #126548 quote
    DPHTRADER
    Participant
    New

    Hi Frans

    Did you mange to get a ‘near match’ to the tick volume

    from another trading platform.

    Many Thanks

    #141158 quote
    Kodiak
    Participant
    New

    Hi Frans. Did you have any luck creating a volume chart from the tick data? My broker doesn’t provide volume for forex and commodities. If I can’t find a solution, I’ll have to abandon PRT for automated trading.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.

Tick Volume indicator for Forex markets with IG


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Frans Botha @francoisb Participant
Summary

This topic contains 14 replies,
has 4 voices, and was last updated by Kodiak
5 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/20/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...