Getting to Know Empty4 Inside Out

Post Reply
garyfritz

Re: Getting to Know Empty4 Inside Out

Post by garyfritz »

Many of Steve's recent EAs use an "infinite loop" model, where they enter the start() function and never leave. EAs like that don't respond to parameter settings.

Some of his EAs are written to pay attention to the "Expert Advisors" button. Click on that to disable EAs, then your EA might respond to the parameter request.

Steve says you shouldn't change parameters via F7 / right-click anyway, but instead you should drag a new copy of the EA onto the chart and set the new parameters there. I don't know why. That method has the big disadvantage that the EA might not "adopt" open positions properly.
shr1k
Posts: 7
Joined: Sat Jun 23, 2012 9:40 pm

Re: Getting to Know Empty4 Inside Out

Post by shr1k »

one little thing that I could not find online. The color of the line at an open orders price is the same as the color of volume in properties. I know its a little thing but it was driving me crazy I like a dark grey background and I could not see any of my open orders. :roll:
User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Getting to Know Empty4 Inside Out

Post by NeoTrader »

hi shr1k,
shr1k wrote:one little thing that I could not find online. The color of the line at an open orders price is the same as the color of volume in properties. I know its a little thing but it was driving me crazy I like a dark grey background and I could not see any of my open orders. :roll:
have you tried the properties (right click on the chart and then properties). There you can set the colors ... also for volume...

hope this helps...

happy trading,

NeoTrader

-
daveM
Trader
Posts: 34
Joined: Sun Jun 10, 2012 3:52 pm
Location: Toronto

Re: Getting to Know Empty4 Inside Out

Post by daveM »

Many of Steve's EA's place some information on the screen which is quite handy.... I would like to increase the size of the font as I find the font a little small to read.

Can someone enlighten me as to how to increase the font size.

Thanks


daveM
jjasper7
Trader
Posts: 87
Joined: Mon Mar 19, 2012 11:44 pm
Location: Mesa,AZ (near Phoenix)

Re: Getting to Know Empty4 Inside Out

Post by jjasper7 »

please help me get my ordermodify and orderclose commands to work. i have tried several configurations, but always get back result==0 (failure, but listed as no error), and the action is not executed. i've tried several configurations (shown below), but all give the same result, and i cannot find what is wrong.

//bool rslt= OrderModify(OrderTicket(),0,Bid+0.0040,0,0,Red);
//bool rslt= OrderModify(OrderTicket(),OrderOpenPrice(),stop,OrderTakeProfit(),0,Red);
//bool rslt= OrderModify(OrderTicket(),OrderOpenPrice(),Bid+0.0040,OrderTakeProfit(),0,Red);
// bool rslt = OrderModify(ticket, OrderOpenPrice(), stop, take, OrderExpiration(), CLR_NONE)
//bool rslt = OrderModify(ticket, OOP, stop, take,
bool rslt = OrderModify(ticket,0,stop,0,0,Blue);

&
{
// result = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 1000, CLR_NONE);
// result = OrderClose(OrderTicket(), 0, 0, 1000, CLR_NONE);
result = OrderClose(OrderTicket(), OrderLots(), 0, 1000, CLR_NONE);
Alert(Symbol(),TradeComment," r",result, " Closing ", OrderLots(), " lots of ",OrderTicket(), " at ", OrderClosePrice());
garyfritz

Re: Getting to Know Empty4 Inside Out

Post by garyfritz »

daveM wrote:Many of Steve's EA's place some information on the screen which is quite handy.... I would like to increase the size of the font as I find the font a little small to read.
Can someone enlighten me as to how to increase the font size.
I don't think you can. I found one discussion where someone was bemoaning the small fonts and his old eyes, and he finally said the best answer he found was Windows Magnifier. It's a tool that magnifies parts of the screen so you can see small type better. Type "windows key" -> Magnifier.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Getting to Know Empty4 Inside Out

Post by SteveHopwood »

daveM wrote:Many of Steve's EA's place some information on the screen which is quite handy.... I would like to increase the size of the font as I find the font a little small to read.

Can someone enlighten me as to how to increase the font size.

Thanks


daveM
Gary is dead right, much as it pains me to admit it. :lol:

It is impossible to change text sizes in the screen feedback that my bots offer.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Getting to Know Empty4 Inside Out

Post by SteveHopwood »

jjasper7 wrote:please help me get my ordermodify and orderclose commands to work. i have tried several configurations, but always get back result==0 (failure, but listed as no error), and the action is not executed. i've tried several configurations (shown below), but all give the same result, and i cannot find what is wrong.

//bool rslt= OrderModify(OrderTicket(),0,Bid+0.0040,0,0,Red);
//bool rslt= OrderModify(OrderTicket(),OrderOpenPrice(),stop,OrderTakeProfit(),0,Red);
//bool rslt= OrderModify(OrderTicket(),OrderOpenPrice(),Bid+0.0040,OrderTakeProfit(),0,Red);
// bool rslt = OrderModify(ticket, OrderOpenPrice(), stop, take, OrderExpiration(), CLR_NONE)
//bool rslt = OrderModify(ticket, OOP, stop, take,
bool rslt = OrderModify(ticket,0,stop,0,0,Blue);

&
{
// result = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 1000, CLR_NONE);
// result = OrderClose(OrderTicket(), 0, 0, 1000, CLR_NONE);
result = OrderClose(OrderTicket(), OrderLots(), 0, 1000, CLR_NONE);
Alert(Symbol(),TradeComment," r",result, " Closing ", OrderLots(), " lots of ",OrderTicket(), " at ", OrderClosePrice());
Fantastic to see you getting deep down and dirty with this stuff Jasper. I cannot encourage you enough to keep going - you are starting where I once did and now we are both here in my own forum. Who knows where you might go?

Re your code, you gain information from failed modifications by calling error reporting. CrapMq4 will not do this automatically. Study my shell code to see how this can be done. My methods are far from perfect, but the work for me.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
jjasper7
Trader
Posts: 87
Joined: Mon Mar 19, 2012 11:44 pm
Location: Mesa,AZ (near Phoenix)

Re: Getting to Know Empty4 Inside Out

Post by jjasper7 »

steve, thanks for the encouragment.
the error reporting is already attached to the code, (the base program is your pivoty slope) and the getlasterror code reads a 0, from which i learned nothing, and so tried several configurations of the ordermodification. but i have not found a configuration that worked. i am using fxcm, i thought if the values i gave the call was 0, ordermod would use what it has and so was the safest values to use. but i tried the call with a change of only the stop and it also fails and returns error code 0.
any suggestions of what else to try? that is the error reporting you referenced, isn't it?
User avatar
lazypips
Trader
Posts: 16
Joined: Sun Jul 08, 2012 4:01 pm

Re: Getting to Know Empty4 Inside Out

Post by lazypips »

Sub Window level zones colors

When you want to set a different background color for the chart, that color is also applied to sub window(s). What i should like to find is how to set a backgrond color for the positive values (above 0 level line) and a second color for the negative zone (below 0 level line).
Looking at the ini files, i cant see how to tweak these colors.

Googling about something new , i've also found an amazing project named Autograf4 and working with Empty4.
http://translate.google.com/translate?u ... pair=ru|en
Post Reply

Return to “Know your MT4 platform”