Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
Programmer required to help out with a minor script.....
govindkp

Member Since May 18, 2010  47 posts govindkp (govindkp) Nov 08 2010 at 00:25
I have a universal hedger that trades pairs in diffrent sections

like eurusd usdjpy eurchf are sell pairs and usdchf eurgbp nzdusd are buy pairs....i want this set to be reversed, i tried changing the OP_BUY with OP_SELL in metaeditor... dint work!!! guess i am not good at it afterall lol

help will be appreciated. I repeat, only appreciatedcool

Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Nov 08 2010 at 06:28 (edited Nov 08 2010 at 06:30 )
If you change OP_Buy to OP_Sell, you'll have to change the Ask /Bid as well.

If you don't you'll get error messages. Doesn't help to just change the transaction type, you'll have to change the price you do the transaction at. Invert them as well.


Chang beer is evil.
govindkp

Member Since May 18, 2010  47 posts govindkp (govindkp) Nov 08 2010 at 06:57
thanks man!! smiley

Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Nov 08 2010 at 07:08
If there are stops and tp's you'll have to invert them as well.

Chang beer is evil.
govindkp

Member Since May 18, 2010  47 posts govindkp (govindkp) Nov 08 2010 at 07:19 (edited Nov 08 2010 at 07:20 )
btw....is there an EA which can take profit in baskets....i mean ,when all trades opened wen turned into profit of 2% of current equity, it shud close off all open trrades automatically

Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Nov 08 2010 at 07:28
There are directories of EA's out there, like this one.

http://www.forexmt4.com/mt_yahoo/

People do collect EA's. So bit of Googling around you might find one. Don't forget to check the MQL website to: http://www.mql4.com/

Chang beer is evil.
Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Nov 08 2010 at 07:29
This looks like the one you're looking for: http://www.forexmt4.com/mt_yahoo/CloseAllAtEquityLevel.mq4

Chang beer is evil.
Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Nov 08 2010 at 07:33
I think practically everything you can think of has been done by EA and is available, just have to find it.

Chang beer is evil.
Please login to comment.
Tools Community Reviews Platform Company Support
Economic Calendar Community Brokers Features About FAQ
Forex Broker Spreads Systems Expert Advisors API Blog Help
Streaming Forex News Strategies Signal Providers Translations Twitter Contact Us
Community Outlook Contests VPS Services Mobile Facebook Report A Bug!
Widgets EA Programming        
RSS          

Site Map  |   Terms & Conditions  |   Privacy Policy
©2011 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.
*GFT is a sponsor of myfxbook.com for advertisement purposes only. GFT does not endorse any other products, services, or companies represented on myfxbook.com. The views of myfxbook.com and all other parties contained therein are not necessarily those of GFT, and GFT makes no warranty as to the accuracy of information provided.