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

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > MetaTrader

Ea is sending multuple orders for particular condition
Started:October 11th, 2013 (05:36 AM) by ankityadav Views / Replies:529 / 1
Last Reply:October 11th, 2013 (01:19 PM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Ea is sending multuple orders for particular condition

Old October 11th, 2013, 05:36 AM   #1 (permalink)
Trading Apprentice
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

Old October 11th, 2013, 01:19 PM   #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: 311 given, 130 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.

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


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

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


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > MetaTrader > 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)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

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

All times are GMT -4. The time now is 05:08 PM.

Copyright © 2016 by 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 2016-10-26 in 0.06 seconds with 23 queries on phoenix via your IP