View Single Post
How can you limit the number of orders in each bar?
  #1 (permalink)  
Old 01-13-2008, 09:18 PM
JFonseca JFonseca is offline
Freshman
 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
JFonseca is on a distinguished road
Default How can you limit the number of orders in each bar?

Hi,

I´m coding my system,and I´m having some problems trying to limit the number of open orders for each bar. In my system, the decision is made in the opening of a new bar, and if the conditions aren´t perfect, the EA should only reanalyse in the opening of next bar.

I´ve tryed Volume[0] > 10, but sometimes it opens 2 orders because the EA runs a second time before Volume [0]>10 and sometimes it doesn´t open any order because the Volume goes past 10 very quickly.

Can anyone help me?

Thanks,

J Fonseca
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast