Ea is sending multuple orders for particular condition - MetaTrader | futures io social day trading
futures io futures trading


Ea is sending multuple orders for particular condition
Updated: Views / Replies:744 / 1
Created: by ankityadav Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Ea is sending multuple orders for particular condition

  #1 (permalink)
Trading Apprentice
indore+india
 
Futures Experience: Beginner
Platform: metatrader
Favorite Futures: forex
 
Posts: 30 since Jun 2013
Thanks: 2 given, 2 received

Ea is sending multuple orders for particular condition

hi can somebody tell me how to stop sending multiple orders for given condition by an ea at a time ...code ?

Reply With Quote
 
  #2 (permalink)
Elite Member
Mumbai, India
 
Futures Experience: Intermediate
Platform: MT4, NT7,eSignal
Broker/Data: AMP/CQG
Favorite Futures: ZB,ZN,ES,currencies
 
indiantrader's Avatar
 
Posts: 105 since Jul 2010
Thanks: 314 given, 134 received

The mql4 forum will be a better place for you to search answers about all mql4 related queries.
Check mql4 tutorials 30 episodes on youtube...quite nice tuts.

For your query....you need to check open orders if any before opening orders using a custom function like one below.

 
Code
 int OpenOrdersExist(string pair)
   {
     int total=0;
     for(int i=OrdersTotal()-1; i>=0;i--)
      {
        OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
        if(OrderSymbol()==pair) total++;
      }
      
      return(total);
   }
The above function counts open orders if any and returns the value as integer.

Then

 
Code
if (OpenOrdersExist(Symbol())==0)
{
//your entry algo here.
}


Last edited by indiantrader; October 11th, 2013 at 02:21 PM. Reason: code correction
Reply With Quote

Reply



futures io > > > > Ea is sending multuple orders for particular condition

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending multiple orders on same tick ankityadav MetaTrader 2 August 30th, 2013 01:53 AM
Regarding sending a private message r3algood Feedback and Announcements 5 February 6th, 2013 07:51 AM
panel condition baberg NinjaTrader Programming 9 September 7th, 2011 02:26 AM
Sending orders using p/l johni EasyLanguage Programming 2 July 9th, 2011 01:47 AM
Same condition every hour rajafx1 NinjaTrader Programming 5 August 13th, 2010 06:43 AM


All times are GMT -4. The time now is 02:22 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-15 in 0.07 seconds with 23 queries on phoenix via your IP 54.226.132.197