
10-15-2008, 10:53 AM
|
 |
Senior Member
|
|
Join Date: Nov 2005
Posts: 486
|
|
Quote:
Originally Posted by matrixebiz
No your not missing anything  Sometimes there might be 15 possible order pairs and figuring out which ones they are and whether to Buy or Sell can take some time. The script wont do anything other than what you deduced at the end of you post  Just place the orders, I have another EA on the chart that manages the orders.
I have a script that is supposed to do this already but does not work correctly and misses many orders.
Here are it's user inputs;
Code:
extern string StrengtheningBases = "EUR,JPY,NZD" ;
extern string WeakeningBases = "AUD,USD,GBP" ;
extern string Pairs = "AUDJPYm,AUDNZDm,AUDUSDm,CHFJPYm,EURAUDm,EURCADm,EURCHFm,EURGBPm,EURJPYm,EURUSDm,GBPCHFm,GBPJPYm,GBPUSDm,NZDJPYm,NZDUSDm,USDCADm,USDCHFm,USDJPYm,NZDUSDm,AUDCADm,AUDCHFm,EURNZDm,GBPNZDm,NZDCHFm,GBPCADm" ;
extern double Lots = 0.1 ;
see  it doesn't do anything else but figure out Strong and Weak base currencies and place the orders accordingly to what it matches looking at all the currencies I've allowed it to use.
Thank you
|
one suggestion if someone does write you a script instead of imputing the pairs in a sting using an external variable use your symbol set file instead because if you imput a pair that is not active in your watch window at the time you try to place the order It will not go through as your script will not be able to retrive the current price data to be able to open that order. If you use the symbol set file it will contain all the symbols that have current price data to open the orders and you will not run into future errors were you be trying to figure out why orders didnot go in.
Keit
|