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
  #111 (permalink)  
Old 06-21-2007, 11:51 AM
Junior Member
 
Join Date: Apr 2006
Posts: 2
zanlin is on a distinguished road
EA that opens lot and time specified

I am looking for an EA that we can set lot and time ( based on server time).

If anyone knows where to find it, kindly drop the link here. appreciate so much.
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
  #112 (permalink)  
Old 06-22-2007, 10:23 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 398
iscuba11 is on a distinguished road
Smile Need coding to close out positions created by EA on Friday just before close of week!

1) Can anyone help to provide the ea coding to close out all positions just before the market closes on Friday.

2) Also, coding needed to put each ea to sleep at the same time on Friday PM (So it does not open up any new positions) until Sunday PM when it will allow the ea to trade again.

My time zone is GMT -6.

Many thanks to your generosity in advance!

Dave
<><<<
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
  #113 (permalink)  
Old 07-13-2007, 06:32 PM
Junior Member
 
Join Date: Jun 2007
Posts: 8
Sean0 is on a distinguished road
Error 65 & 128 explanation

Hi, I was hoping someone could help me and explain a couple of errors I received while testing an EA I am writing.
I ran the EA through the night to see if it was working properly and when I woke there were a couple of errors that I can't find an explanation for.

Error(65) : Invalid Account
Error(128) : Trade Timeout
Error(129) : Invalid Price

I've never run into these errors before. Does this mean that I was trading on OFF market hours?

Please help, thanks
Sean

EDIT:
Never Mind. Didn't realize that the demo account was for only 30days, and just so happens last night was the 30 day mark.
my bad

Last edited by Sean0; 07-13-2007 at 09:57 PM.
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
  #114 (permalink)  
Old 07-20-2007, 04:13 AM
diskus's Avatar
Junior Member
 
Join Date: Nov 2005
Posts: 14
diskus is on a distinguished road
Opend Order - Splitting

Hallo,
gives a way or code for closing smaller Lots - from opend position?

example: open 1 - close 0.5 ... or close 0.3 - from this position?

Thanks
diskus
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
  #115 (permalink)  
Old 07-22-2007, 07:18 AM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Exclamation MQL4 Learning

subtracting the counted_bars from the total count of the bars on chart.

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
  #116 (permalink)  
Old 07-22-2007, 03:03 PM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Does anybody know what this means? I need help with it.
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
  #117 (permalink)  
Old 07-22-2007, 03:10 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
Michel is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
subtracting the counted_bars from the total count of the bars on chart.

Thanks.
Take a look to the mql4 help file:
Quote:
int IndicatorCounted( )
The function returns the amount of bars not changed after the indicator had been launched last. The most calculated bars do not need any recalculation. In most cases, same count of index values do not need for recalculation. The function is used to optimize calculating.

Note: The latest bar is not considered to be calculated and, in the most cases, it is necessary to recalculate only this bar. However, there occur some boundary cases where custom indicator is called from the expert at the first tick of the new bar. It is possible that the last tick of the previous bar had not been processed (because the last-but-one tick was being processed when this last tick came), the custom indicator was not called and it was not calculated because of this. To avoid indicator calculation errors in such situations, the IndicatorCounted() function returns the count of bars minus one.
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
  #118 (permalink)  
Old 07-22-2007, 03:39 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,079
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I think it is the number of the bars which was not changed after the last indicator's call.
For example we had 300 bars. Then EA may call indicator for the signal or to open the order. For example: H1 timeframe. So we still have 300 unchanged bars. Because 301th bar is open bar and this bar will not be counted.
Because many indicators and EAs are calculated using i bars so using this function we may be sure that this i number of bars was unchanged and indicator will not re-paint and everything will be on close bar.

It is example in help file:

Code:
int start()
    {
     int limit;
     int counted_bars=IndicatorCounted();
  //---- 
     if(counted_bars>0) counted_bars--;
     limit=Bars-counted_bars;
  //---- 
     for(int i=0; i<limit; i++)
       {
        //---- 
        ExtBlueBuffer[i]=iMA(NULL,0,JawsPeriod,0,MODE_SMMA,PRICE_MEDIAN,i);
        ExtRedBuffer[i]=iMA(NULL,0,TeethPeriod,0,MODE_SMMA,PRICE_MEDIAN,i);
        ExtLimeBuffer[i]=iMA(NULL,0,LipsPeriod,0,MODE_SMMA,PRICE_MEDIAN,i);
       }
  //----
     return(0);
    }
But, sorry, I am not a coder so may be wrong.

Last edited by newdigital; 07-22-2007 at 03:42 PM.
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
  #119 (permalink)  
Old 07-23-2007, 04:58 AM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Thank You guys, I have one more question please:
I spent many hours, and I cannot solve the problem to this code:


if (MODE_ASK==121.10)
{
ticket=OrderSend(Symbol()..............

I want the USD\JPY to trigger a buy at this point. What's wrong with this code?

Can somebody tell me a code syntax that will trigger a buy at a certain time?

Thank You. God bless You.
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
  #120 (permalink)  
Old 07-23-2007, 06:15 PM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
MQL4 Learning

I spent many hours, and I cannot solve the problem to this code:


if (MODE_ASK==121.10)
{
ticket=OrderSend(Symbol()..............


I want the USD\JPY to trigger a buy at this point. What's wrong with this code?

Also, can someone tell me a code syntax that will trigger a buy at a certain time?

Thank You. God bless You.
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
automated close order, close, eas, forex, learn mql4, learn mql4 video, learning mql4, mini std lotsize risk, mql4 ima, mql4 learning, mql4 video, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4


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
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 07:04 PM
Learning to code for autotrading GoatT MetaTrader 8 01-10-2007 09:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 06:29 PM


All times are GMT. The time now is 10:52 PM.



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