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
So basically, you want to know how many ticks there was in a single 5 minutes bar, for instance?
Hi Nicolas, Yes that is correct.
I should rather say “Tick indicator” as there wont be any volume with the tick.
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..
Thats ok.
Thanks for your assistance Nicolas.
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.
Yes that could work, would like to test it if possible.
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.
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"
Thanks Nicolas, i will test it and give you feedback
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
Hi Frans
Did you mange to get a ‘near match’ to the tick volume
from another trading platform.
Many Thanks
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.