• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 8:22am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 8:22am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Strength for one week, No Charts Attached ;) 219 replies

indicator messes up when scrolling far back? 0 replies

If it works, it works... 3 replies

Printing multiple charts - single page 2 replies

Displaying multiple instrument on a single chart 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

EA works attached to single chart, messes up with multiple charts

  • Post #1
  • Quote
  • First Post: Oct 19, 2011 6:29am Oct 19, 2011 6:29am
  •  LeveragedJoe
  • | Joined Mar 2008 | Status: Joe the Trader | 53 Posts
Hi all, I wrote a EA which facilitate live trading operations, and it works correctly when attached to a single symbol chart, but messes up things when attached to multiple charts. What I mean is: when attached to multiple charts, EA ( upon input from the trader ) opens a trade operation on a symbol chart, then some operation are executed by same EA attached to DIFFERENT symbol charts, such as execution of a custom Inform() function which prints some text on the chart window, text which contains the number of the order opened in the first chart.

Now I really cannot understand why and how is even possible that an EA attached to a chart will pass a parameter ( like the order ticket ) to an EA attached to a DIFFERENT chart, since this EA does not use GlobalVariables of the Client Terminal.
How is that possible? How can an EA trigger the execution of functions and pass parameters to an EA attached to a different chart?
1st step stop loss in the green 2nd step play with the free money
  • Post #2
  • Quote
  • Oct 19, 2011 6:49am Oct 19, 2011 6:49am
  •  stevegee58
  • Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,012 Posts
Are you using magic numbers?
You are in a maze of twisty little passages, all alike.
  • Post #3
  • Quote
  • Last Post: Oct 19, 2011 6:56am Oct 19, 2011 6:56am
  •  LeveragedJoe
  • | Joined Mar 2008 | Status: Joe the Trader | 53 Posts
Quoting stevegee58
Disliked
Are you using magic numbers?
Ignored
EA selects orders by their numbers ( i.e. tickets ).

It will open an order based on trader's action ( there's a line on the chart, moving that line commands the EA to open an order ), and it will get the order ticket.

After that, order will be selected by ticket number when needed ( EA will place stops, move stop to break even, trail the stop, etc. )
1st step stop loss in the green 2nd step play with the free money
  • Platform Tech
  • /
  • EA works attached to single chart, messes up with multiple charts
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021