how to open only one position per bar? New comment [Deleted] 2008.01.22 16:23 Hi, can U tell me how to make an EA open only one position per one bar? Cause now it looks something like this: I also don't want to use "if(OrdersTotal<1)" used in many codes because I want to have more than one order opend at a time (but not in the same bar) Thank for any help, Jan Open more than 1 order? Open more than 1 order? [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. Ray 2008.01.22 16:25 #1 Use search? 'How to make an EA only trade once per bar, ie, once per hour max??' Jay 2008.01.22 17:00 #2 the code in the post that phy points to is slightly incorrect though, here's a fixed one: datetime Time0 = 0; void start() { if (Time0 != Time[0]) { OrderSend(...); Time0 = Time[0]; } } thank you [Deleted] 2008.01.22 17:29 #3 Thanks a lot Guys - phy and Automated! Regards, jan New comment
can U tell me how to make an EA open only one position per one bar?
Cause now it looks something like this:
I also don't want to use "if(OrdersTotal<1)" used in many codes because I want to have more than one order opend at a time (but not in the same bar)
Thank for any help,
Jan