Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-14-2008, 06:23 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
SCRIPT Challenge :)

Hello, I'm just looking for a script that will trade currency pairs for me based on what I tell it are the Strong currencies and the Weak currencies.

So for example the script will have all currencies typed into the code already like the 24 IBFX currencies I want to use, USDCAD, EURGBP, GBPCHF, NZDUSD, etc .....

Now what I would like is for when I add the script to my chart, there is an option for letting it know what currencies are the Strong ones and the weak ones, so lets say the strong ones are USD,GBP and the weak ones are CHF,CAD,EUR,NZD

So all the script now needs to do is check the currency pairs for matches and place the trades, so for example by my currencies I picked above the script would place;
BUY USDCAD
BUY GBPCHF
SELL EURGBP
SELL NZDUSD

BUYs of course on Strong Base currencies and SELLs on weak base currencies and of course do nothing with the currencies that would have two weaks or two strongs.

Thank you and good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 10-14-2008, 11:55 PM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
Matrix


will the script be a time loop?

will the currencies be past it by user inputs, seperate file, or from another indicator or script file.

will this script only open the orders? or wil it manage them and or close them?

Are you going to manage the orders after there placed? If thats the case then creating this limited use script would not be of any great benefit as it would be quicker to enter the orders your self manually. Unless you dont know how the pairings go, which somehow, I dont think thats the case.

I must be missing something in your request a script that will only match currencies to create a pair and place orders, can be done quicker manually.


Keit




Quote:
Originally Posted by matrixebiz View Post
Hello, I'm just looking for a script that will trade currency pairs for me based on what I tell it are the Strong currencies and the Weak currencies.

So for example the script will have all currencies typed into the code already like the 24 IBFX currencies I want to use, USDCAD, EURGBP, GBPCHF, NZDUSD, etc .....

Now what I would like is for when I add the script to my chart, there is an option for letting it know what currencies are the Strong ones and the weak ones, so lets say the strong ones are USD,GBP and the weak ones are CHF,CAD,EUR,NZD

So all the script now needs to do is check the currency pairs for matches and place the trades, so for example by my currencies I picked above the script would place;
BUY USDCAD
BUY GBPCHF
SELL EURGBP
SELL NZDUSD

BUYs of course on Strong Base currencies and SELLs on weak base currencies and of course do nothing with the currencies that would have two weaks or two strongs.

Thank you and good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 10-15-2008, 12:43 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
Matrix


will the script be a time loop?

will the currencies be past it by user inputs, seperate file, or from another indicator or script file.

will this script only open the orders? or wil it manage them and or close them?

Are you going to manage the orders after there placed? If thats the case then creating this limited use script would not be of any great benefit as it would be quicker to enter the orders your self manually. Unless you dont know how the pairings go, which somehow, I dont think thats the case.

I must be missing something in your request a script that will only match currencies to create a pair and place orders, can be done quicker manually.


Keit
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

Last edited by matrixebiz; 10-15-2008 at 12:48 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 10-15-2008, 10:53 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 10-15-2008, 08:09 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
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
It will if you do a MarketInfo(buySymbol,MODE_BID); I only need one currency pair on my chart and it will get the info from which ever currency pair I tell it to.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 10-15-2008, 09:22 PM
Senior Member
 
Join Date: May 2006
Posts: 768
robp is on a distinguished road
Maybe a script that lists all the pairs that you can quickly enter true/false on and then it only trades the true. But any such script has to have error checking/trade trapping so that it continually tries to open trades until they're all open -- otherwise you will get context busy errors.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 10-15-2008, 10:00 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by robp View Post
Maybe a script that lists all the pairs that you can quickly enter true/false on and then it only trades the true. But any such script has to have error checking/trade trapping so that it continually tries to open trades until they're all open -- otherwise you will get context busy errors.
Correct, so most likely a "if(!IsTradeContextBusy() && IsTradeAllowed()) { BUY/SELL }" type of command would be necessary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple10Points-X2 (New Challenge) ADX_MACD Martingale/Average Cost and Hedging 128 10-16-2009 12:59 AM
Progress of the ElectricSavant Challenge™ ElectricSavant Expert Advisors - Metatrader 4 75 09-22-2008 12:38 AM
Indicator Challenge FX-Hedger Indicators - Metatrader 4 4 07-23-2008 11:50 AM
ElectricSavant's™ Challenge ElectricSavant Expert Advisors - Metatrader 4 319 04-08-2008 06:03 AM
I throw(launch) a challenge Yves81 Expert Advisors - Metatrader 4 7 10-15-2006 06:40 AM


All times are GMT. The time now is 06:30 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.