
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
Ali, the example I mentioned above is the EA you refer to, which is the source of the IsNewBar() function you mentioned, and already uses it.
How do you explain this?
I was talking about my EA which trades on two symbols.one symbol gets the data with ontick()
the other uses Isnewbar()
when i change their way of getting data the result is the same. you might try this and compare the results. i also tried to get both quotes using isnewbar like the EA discussed above and had the same problems however getting the quotes of the original symbol with ontick() the problem resolved.
ofcourse there is a problem with the tester i just showed how i managed to get my wanted results.
In my case solution was IsNewBar() metod and switch on "Every Tick" execution metod unless my EA work only on open prices..
Can you please elaborate? maybe a code snippet to demonstrate? Can you handle 3 currencies?
Ok, I see what you mean. One of the pairs is used to trigger a new bar opening and for the rest you instantly read the ticks.
Kgo, but still this doesn't solve the problem in my case. Could you please show a snippet of what you do?
Thanks, trendick
TheEconomist 2010.09.06 17:09 #
You have an example here: http://mqlmagazine.com/mql-programming/mql5-a-portfolio-moving-average-sample-expert/
Can you believe I don't even know where is this IsNewBar() method? Which class?
We are referring to the Method from article 105. Here it is (only the beginning and end are relevant):
Here it is: