Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #501 (permalink)  
Old 11-25-2007, 08:32 PM
kjhfdgjfhdghdf's Avatar
kjhfdgjfhdghdf kjhfdgjfhdghdf is offline
Senior Member
 
Join Date: Mar 2007
Posts: 666
kjhfdgjfhdghdf is on a distinguished road
Smile

Quote:
Originally Posted by Beno View Post
Gidday Wolfe

Attached is The Abyss EA it needs some work doing to it. I am still working on it but some more help By some one who knows what they are doing would be great.


cheers

Beno
One thing I thought id tell you, trendmanager is the same as Heiken Ashi, just once again with different settings like Heiken Ashi Smoothed has different settings than the standard Heiken Ashi in MT4.
It is a "MA cross" colored into the bars instead of lines.
So you have 2 MA crosses with different settings.
__________________
Dont worry, bout a thing, cos every little thing, gonna be alright.
The future has not been written.
There is not fate, but what we make for ourselves.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #502 (permalink)  
Old 11-25-2007, 10:05 PM
Beno's Avatar
Beno Beno is offline
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 249
Beno is on a distinguished road
Thanks for that kjhfdgjfhdghdf

Well my grandmother was right you do learn something new every day I did not think of that.

back to drawing board.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #503 (permalink)  
Old 11-26-2007, 12:36 AM
kjhfdgjfhdghdf's Avatar
kjhfdgjfhdghdf kjhfdgjfhdghdf is offline
Senior Member
 
Join Date: Mar 2007
Posts: 666
kjhfdgjfhdghdf is on a distinguished road
Yeh I didn't think of it either for a while.Then seen its the same thing just different settings.Many things on here you'll see look totally different but are the same as some old thing, with different colors and looks and settings.
__________________
Dont worry, bout a thing, cos every little thing, gonna be alright.
The future has not been written.
There is not fate, but what we make for ourselves.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #504 (permalink)  
Old 11-26-2007, 01:08 AM
wolfe's Avatar
wolfe wolfe is offline
Senior Member
 
Join Date: Jan 2006
Posts: 673
wolfe is on a distinguished road
Previous Tick Data?

Is there a way, more like what is the best way, to code into an EA access to previous tick data?

Just like you can access the high of the bar 3 bars ago by using High[3];

I would like to access previous ticks. Could you use the Bid for this? So you could have Bid[0], Bid[1], Bid[2] and so on?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #505 (permalink)  
Old 11-26-2007, 06:01 AM
antone antone is offline
Senior Member
 
Join Date: Oct 2006
Posts: 102
antone is on a distinguished road
Quote:
Originally Posted by MrPip View Post
Or maybe

if (TimeHour(Clocks) == 7)
{
switch (TimeMinute(Clocks)
{
case 15 : B = 1;
break;
case 30 : B = 2;
break;
case 45 : B = 3;
}
}

if (TimeHour(Clocks) == 8)
{
switch (TimkeMinute(Clocks)
{
case 0 : B = 4;
break;
case 15 : B = 5;
break;
case 30 : B = 6;

}
}

Otherwise 7:17 would also set a value of 1 to B.

Robert
Thanks again robert.. i am still learning to make an EA.. and what i made always turns out negative.. learn from mistakes that's what i say..

ralph.ronnquist, thanks also.. but it is not what i need..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #506 (permalink)  
Old 11-26-2007, 07:48 AM
Devil2000 Devil2000 is offline
Senior Member
 
Join Date: Dec 2005
Location: In front of my trading desk
Posts: 340
Devil2000 is on a distinguished road
What is "clock"? as far I know there's no "clock" function in MQL4.

You can try this
Code:
if(TimeHour(TimeCurrent())==7)
 {
   if(TimeMinute(TimeCurrent())==15) B== 1;
   if(TimeMinute(TimeCurrent())==30) B== 2;
   if(TimeMinute(TimeCurrent())==45) B== 3;
 }
if(TimeHour(TimeCurrent())==8)
 {
   if(TimeMinute(TimeCurrent())==0)  B== 4;
   if(TimeMinute(TimeCurrent())==15) B== 5;
   if(TimeMinute(TimeCurrent())==30) B== 6;
 }
__________________
Still learning..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #507 (permalink)  
Old 11-26-2007, 08:30 AM
MrPip MrPip is offline
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 551
MrPip is on a distinguished road
Quote:
Originally Posted by Devil2000 View Post
What is "clock"? as far I know there's no "clock" function in MQL4.

You can try this
Code:
if(TimeHour(TimeCurrent())==7)
 {
   if(TimeMinute(TimeCurrent())==15) B== 1;
   if(TimeMinute(TimeCurrent())==30) B== 2;
   if(TimeMinute(TimeCurrent())==45) B== 3;
 }
if(TimeHour(TimeCurrent())==8)
 {
   if(TimeMinute(TimeCurrent())==0)  B== 4;
   if(TimeMinute(TimeCurrent())==15) B== 5;
   if(TimeMinute(TimeCurrent())==30) B== 6;
 }
Of course I thought he had

datetime clocks = TimeCurrent();

in an earlier line.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #508 (permalink)  
Old 11-26-2007, 09:17 AM
Devil2000 Devil2000 is offline
Senior Member
 
Join Date: Dec 2005
Location: In front of my trading desk
Posts: 340
Devil2000 is on a distinguished road
Quote:
Originally Posted by MrPip View Post
Of course I thought he had

datetime clocks = TimeCurrent();

in an earlier line.

Robert
Really? I can't find it on the previous page.
That should be working. But in an hour, sometimes there will be some minutes missing due to your internet connection or server's lag.
__________________
Still learning..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #509 (permalink)  
Old 11-26-2007, 10:53 PM
slam slam is offline
Junior Member
 
Join Date: Apr 2006
Posts: 17
slam is on a distinguished road
Looking for Programmer to convert indicator to EA

Hello All,

I am looking for a programmer to convert an indicator into an expert advisor (or a stand alone EA that works with the existing indicator). It simply needs to either buy or sell where the signal is generated, and have the following in the abilities in the presets:

*Lot sizing
*Stop loss setting
*Trailing stop setting
*Money management lot sizing based on account balance.

Attached is a picture of the indicator.

Please PM me if you are interested in the project, or know someone who is.

Thanks in advance.
Attached Images
File Type: gif indicator.gif (22.7 KB, 136 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #510 (permalink)  
Old 11-27-2007, 01:36 AM
antone antone is offline
Senior Member
 
Join Date: Oct 2006
Posts: 102
antone is on a distinguished road
Quote:
Originally Posted by Devil2000 View Post
Really? I can't find it on the previous page.
That should be working. But in an hour, sometimes there will be some minutes missing due to your internet connection or server's lag.
sorry for the confusion this is the code for the Clocks so i can change with different GMT

Quote:
double Clocks = TimeCurrent() - (Broker)*3600;
broker is broker time in GMT..

another problem code i need guys.. sorry if i ask too much..

my problem :
i want that it will only open a max of 1 floating sell and 1 floating buy in a day.. but can open more than a lot of buy or sell in a day.. if the EA runs three days and everyday order conditions are met then it will have 3 floating buy/sell or 6 floating buy and sell..

example:
DAy 1 = open a 1 buy hits Tp and open another buy = 1 buy still open
Day 2 = previous buy still open and open another buy = 2 buys still open
Day 3 = 2 buys still open and another buy open = 3 buys still open


Quote:
for(int i=0;i<OrdersTotal();i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) == false) break;
if(OrderSymbol()== Symbol () && OrderMagicNumber()== Magic_Number)
{
if(OrderType() == OP_BUY) buys++;
if(OrderType() == OP_SELL) sells++;
}
}

if (buys < 1) it orders a buy
if (sells < 1) it orders a sell when the conditions are met

Last edited by antone : 11-27-2007 at 04:18 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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 04:22 PM


All times are GMT. The time now is 02:52 AM.