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
I need to clarify that I do not need to see history of the ticks. I just need to "store" them as they come and it will do with 5 to 10 tick prices. It really must be possible to do this!
Why do I need this?
When I receive a signal of say a BUY, I would like the EA to wait to make the order until the price turns more than X ticks. So if the price continues the same direction with only a few setbacks the EA waits until the price goes the other direction more than X ticks.
- You know how to save the previous tick.
- You know how to compare previous to current.
- You know how to increment/decrement a counter.
- What more do you need?
If you "know it must be very simple," why didn't you try? learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.Sorry for asking for help.
double tick_dir = 0; double last = Ask; int count = 0; int myTickCount = 50; void OnTick(){ if(count == myTickCount){ Follow or Dont follow signal } tick_dir += Ask - last; last = Ask; count++; }
Your welcome.
Thanks Keelan!
This is the best way I learn; to look at others code. Will try this out :)
Thanks again!