Tick Volume indicator for Forex markets with IG
Forums › ProRealTime English forum › ProBuilder support › Tick Volume indicator for Forex markets with IG
- This topic has 14 replies, 4 voices, and was last updated 4 years ago by Kodiak.
-
-
03/20/2018 at 10:22 AM #65812
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
RegardsFrancois
03/20/2018 at 10:44 AM #6581703/20/2018 at 10:47 AM #65818Hi Nicolas, Yes that is correct.
03/20/2018 at 10:55 AM #65822I should rather say “Tick indicator” as there wont be any volume with the tick.
03/20/2018 at 3:26 PM #65871I 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..
1 user thanked author for this post.
03/20/2018 at 4:40 PM #65879Thats ok.
Thanks for your assistance Nicolas.
03/20/2018 at 4:55 PM #6588103/21/2018 at 6:07 AM #65922Yes that could work, would like to test it if possible.
03/21/2018 at 10:20 AM #65939I 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.
03/21/2018 at 10:32 AM #6594503/21/2018 at 10:35 AM #65946Please find below the “ticks only” version:
123456789101112131415161718192021222324252627282930313233//PRC_CumulativeTicksWithPeriods | indicator//21.03.2018//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settingsiminutes = 5 // in minutes quantity// --- end of settingsnewperiod = minute<>minute[1]if newperiod thencount=count+1endifif count=iminutes thencount=0tickp=0tickm=0endifif close>last thentickp = tickp+abs(close-last)last=closeelsif close<last thentickm = tickm+abs(close-last)last=closeendifdelta = tickp-tickmreturn 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"1 user thanked author for this post.
03/21/2018 at 11:03 AM #65960Thanks Nicolas, i will test it and give you feedback
03/21/2018 at 3:14 PM #65995Modifying 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
04/17/2020 at 1:48 PM #12654808/08/2020 at 2:37 PM #141158 -
AuthorPosts
Find exclusive trading pro-tools on