11-24-2007, 10:23 PM
Senior Member
Join Date: Aug 2006
Location: London
Posts: 515
Cheers Wolfe
I am going to try the 2 Ordersend option to see what happens. once I get this going I will post it.
11-24-2007, 11:11 PM
Senior Member
Join Date: Aug 2006
Location: London
Posts: 515
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
Last edited by newdigital; 11-26-2007 at 08:02 AM .
11-25-2007, 11:53 AM
Senior Member
Join Date: Oct 2006
Posts: 104
i need a little help.. how do i make it work? i tried but it won't read the mins? i i should use something else aside from TimeHour but what?
Quote:
if (TimeHour (Clocks) == 7:15) {B = 1; }
if (TimeHour (Clocks) == 7:30) {B = 2;}
if (TimeHour (Clocks) == 7:45) {B= 3;}
if (TimeHour (Clocks) == 8) {B = 4;}
if (TimeHour (Clocks) == 8:15) {B = 5;}
if (TimeHour (Clocks) == 8:30) {B = 6;}
11-25-2007, 12:02 PM
Senior Member
Join Date: Oct 2006
Posts: 297
Maybe you meant something like the following:
PHP Code:
if ( TimeHour ( Clocks ) == 7 ) {
B = MathFloor ( TimeMinute ( Clocks ) / 15 );
} else if ( TimeHour ( Clocks ) == 8 ) {
B = MathFloor ( TimeMinute ( Clocks ) / 15 ) + 4 ;
}
11-25-2007, 08:38 PM
Senior Member
Join Date: Mar 2006
Location: La Verne,CA
Posts: 560
Quote:
Originally Posted by
ralph.ronnquist
Maybe you meant something like the following:
PHP Code:
if ( TimeHour ( Clocks ) == 7 ) {
B = MathFloor ( TimeMinute ( Clocks ) / 15 );
} else if ( TimeHour ( Clocks ) == 8 ) {
B = MathFloor ( TimeMinute ( Clocks ) / 15 ) + 4 ;
}
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
Last edited by MrPip; 11-25-2007 at 08:39 PM .
Reason: fix typo
11-25-2007, 09:32 PM
Senior Member
Join Date: Mar 2007
Posts: 686
Quote:
Originally Posted by
Beno
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.
__________________
No
11-25-2007, 11:05 PM
Senior Member
Join Date: Aug 2006
Location: London
Posts: 515
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.
11-26-2007, 01:36 AM
Senior Member
Join Date: Mar 2007
Posts: 686
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.
__________________
No
11-26-2007, 02:08 AM
Senior Member
Join Date: Jan 2006
Posts: 816
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.
11-26-2007, 07:01 AM
Senior Member
Join Date: Oct 2006
Posts: 104
Quote:
Originally Posted by
MrPip
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..
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
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
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 09:16 PM .