
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Yes you can use a GlobalVariable like I did. Or you can use an External Variable like I did.
Yes I coded this function which tries to sum all Ticks from last 30 seconds and Average them. You'll want to test it :(
Well thats really up_to you and what you want to display, You can display the SumTicks : AverageTicks | MilliSeconds Between Ticks... Up to you.
I just did Because 1_Second=1000 MilliSeconds, should I get 5_Ticks within the same second, then average MilSec between them = 1000/5; I'm not sure if it equates the same thing but thats what I did.
Just some notes.
Your version is Indicator therefore it has little less control with timing, and depends on the frequency of in_coming ticks. Mines a contentious script, therefore the concept of missing ticks is irrelevant. Its checking the tick_count from the broker about every 20 milli_seconds or so.
Anyways, I'm not the fastest coder so I'm hoping you have enough to built your own Indicator or Script. If you're looking for a programmer then check the jobs section.
The script is using iVolume so I'm not sure what you mean. Yeah :) its nuts right now.
Thank you a lot for your help, I really appreciate it.
I wasn't expecting that much.
I wish market gives you heaps of pips : )
Cheers
Ps: Yes on FOMC ticks get crazy:
For those Interested, here's the updated script. If you find some bugs [ most_likely :) ] please let me know.
Primary use for active vs slow market obviously. I don't know how useful it'll be but there. Other usage, in combination with Indicator for perhaps Missing_Ticks?
So
works fine.
Using such Global variables means that we can only monitor on pair/MT4?
If the script is running for EURUSD...and EA also attached on many pairs, so refering for GV_AvgMlsPerTic is a gauge for all?
Does it work if we implement the script into EA and we use directly ?
Referencing GV_AvgMlsPerTic is a gauge for only the pair its [Attach_to] Or [Name_Specified]. The Symbol_Name can only be specified when you attach, cannot be modify while the program is running. The GV however can.
If you turn the script into an EA then you'll need to add allot of things. AvgMilSecPerTic is a local variable, you'll either want to make it Global* or pass its value to other functions.