Forex



Go Back   Forex Trading > Programming > MetaTrader
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
  #1711 (permalink)  
Old 04-05-2009, 02:12 PM
Junior Member
 
Join Date: Dec 2005
Posts: 4
marketmaker1974 is on a distinguished road
Hello everybody.
Excuse me for my poor English.
Please help me to code this to EA.
For example :
I have 5 BUY open positions 3 lot each(15 lots) , and have 3 SELL open positions , 4 lots each(12 lots).
So , i have 15 lots BUY , and 12 lots SELL.
I wont when EA open new SELL position , BUY lots = SELL lots , so new position will be SELL 3 lots.
I mean , every time when EA open new position ,to see how many BUY and SELL open positions we have , and make everything SELL lots=BUY lots.
Thank you for help.
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
  #1712 (permalink)  
Old 04-06-2009, 02:10 PM
Junior Member
 
Join Date: Jan 2009
Posts: 10
musical is on a distinguished road
Code that outputs Account Balance

Hi,

I'm trying to code a simple EA that will output Account Balance values to a *.csv file. Purpose is to keep a record of real time drawdown of open positions etc

It should output account balance as well as corresponding date/time each time a new bar forms. Able to add to existing file contents each time EA is restarted.

Anyone has any ideas how to do this?
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
  #1713 (permalink)  
Old 04-06-2009, 06:13 PM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 297
ralph.ronnquist is on a distinguished road
Quote:
Originally Posted by musical View Post
Hi,

I'm trying to code a simple EA that will output Account Balance values to a *.csv file. Purpose is to keep a record of real time drawdown of open positions etc

It should output account balance as well as corresponding date/time each time a new bar forms. Able to add to existing file contents each time EA is restarted.

Anyone has any ideas how to do this?
A search for EquityLogger might give something.
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
  #1714 (permalink)  
Old 04-07-2009, 01:36 PM
Junior Member
 
Join Date: Jan 2009
Posts: 10
musical is on a distinguished road
Quote:
Originally Posted by ralph.ronnquist View Post
A search for EquityLogger might give something.
Thanks for the hint. I managed to write my own code before I saw your reply.

Nonetheless, thanks for your help once again
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
  #1715 (permalink)  
Old 04-07-2009, 06:08 PM
SPACECHIMP's Avatar
Member
 
Join Date: Feb 2006
Location: West Michigan, USA.
Posts: 86
SPACECHIMP is on a distinguished road
quick question on opening orders

Want to open 2 orders ONLY when within a specific number of bars after an MA cross.
I have NOT found the best way to code this without getting Additional orders opened that I don't want.

The MA cross happens and 2 orders get opened within X number of bars..after 2 orders open then NO more orders in that same direction. MA cross opposite direction then same deal.

Any Tips or information on how best to code it?
any EA's i might look at for example?

THANKS
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
  #1716 (permalink)  
Old 04-07-2009, 06:39 PM
Junior Member
 
Join Date: Jan 2008
Posts: 7
domick is on a distinguished road
change of color

Hello,

I based my question in this file because I think it will be in a better place.
After pusieus trial without results, I would like to change this indicator to get a color change with the change of trend.
if trend is positive then couleur1
if trend is negative then couleur2

Thank you in advance for your help
Attached Files
File Type: mq4 DigitalFilter.mq4 (3.8 KB, 12 views)
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
  #1717 (permalink)  
Old 04-08-2009, 10:08 PM
Junior Member
 
Join Date: Feb 2009
Posts: 9
todonnelliv is on a distinguished road
My stochastic EA needs fixing if fixed will make tons of cash

I have a Basic Stochastic Level Expert from IBFX. The way I use it is I determine the direction of trend on the 4h chart with trendlines and other standard methods. I then put my stochastic expert on the 1m chart and choose only long or only short on the common tab. It sells over 80 and buys under 20 (depending on if your allowing it to go long or short) I then watch it make money until I determine the H4 movement may end. I do this with no stoploss, very small lots, and a takeprofit of 5 -10 depending. The only problem I'm having is the EA closes trades for no reason, I set stoploss to 0, trailing to 0 and still it decides to close trades and I just don't get it. I would've made so much bank with thing if it didn't have a mind of it's own! (or at least less of a mind) so if anyone can make the thing not close trades unless a TP or a SL are hit, it would be beneficial to everyone. Now I just need to figure out how to upload it on here.
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
  #1718 (permalink)  
Old 04-08-2009, 10:39 PM
Junior Member
 
Join Date: Oct 2006
Posts: 26
bobfourie is on a distinguished road
Hi, the ea closes an trade if an new signal is giving in the opposite direction. I've added an option in the ea ,bCloseIfNewSignal, to turn this off or on, default now is off(false)
Attached Files
File Type: mq4 IBFX - Basic Stochastic Level Expert.mq4 (14.6 KB, 21 views)
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
  #1719 (permalink)  
Old 04-09-2009, 08:40 AM
Member
 
Join Date: Mar 2008
Posts: 56
sillykiddo is on a distinguished road
Need help in cross alert

Hii
I am trying to get things coded which is..
I have two EMA and .. when they cross I need an alert..

but.. problem is i don't need an alert when the cross and bar close.. I need alert when they CROSS only.. but problem with this is..

when the 5m bar is forming.. it can cross and recross and cross again..

I need to filter those recross..

for example if on current bar it first cross pop up and alert ( say buy ) and then when the price move it can recross and cross back up ( i need to ignore these cross uncross thing ) unless it cross from the top as a sell signal...


Can anyone help me out with this..

EMA is 5 and 20


thanks
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
  #1720 (permalink)  
Old 04-09-2009, 09:20 AM
Senior Member
 
Join Date: Dec 2007
Posts: 493
Enforcer is on a distinguished road
Use as valid cross only cross on previous bar.
__________________
www.signalcopy.com - Most advanced tools for copy Metatrader signals.
Free MT4 account statistics - advanced stats and graphs for MT4 accounts
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

Tags
#include, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, trading, volty channel stop


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
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 04:32 PM.



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