Calculate low of all symbol

Back to topics list To post a new topic, please log in or register
avatar
16
abhishek_hpcs 2015.09.09 08:28
 

Hello 

 

I need help to calculate Low of previous bar for multi symbol through one EA.
I was using ilow() function.

I did not get correct update low of previous bar. 

 

avatar
Moderator
3404
GumRai 2015.09.09 08:31 #
 
What code did you use, what was the result, what should it have been?
avatar
16
abhishek_hpcs 2015.09.09 09:08 #
 
GumRai:
What code did you use, what was the result, what should it have been?
EA runs at the the first tick of new bar to calculate low value of previous bar for multiple symbol.
Sometimes, issue arise that at current bar EA reads Low[2] instead of Low[1]  of some symbol.

avatar
Moderator
3404
GumRai 2015.09.09 12:25 #
 
abhishek_hpcs:
EA runs at the the first tick of new bar to calculate low value of previous bar for multiple symbol.
Sometimes, issue arise that at current bar EA reads Low[2] instead of Low[1]  of some symbol.

When the first tick of a new bar comes on the chart that the EA is attached, the first tick of a new bar for another symbol may not have arrived yet. So your code will return Low[1] which would be the same as low[2] 1 tick later.

You could check the bar open time to make sure that you are getting the correct value. 

Back to topics list  

To add comments, please log in or register