stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Multi 10:4 Trader EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1619
Page 47 of 160
Author:  MrLong [ Wed Mar 27, 2013 3:01 pm ]
Post subject:  Re: Multi 10:4 Trader EA

theforexedge wrote:Andy

What are your settings for:

UseBothForPullback
CloseWhenMarketReverse

And are you using Stoch or RSI?

Thanks, JP
Hi,

I'm using the RSI.

UseBothForPullback < == if true, the EA will start entering stop orders when both the RSI has pulled back and the AO is below/above the zero line, if false only one of them needs to pullback or above/below the zero line.

CloseWhenMarketReverse <== if we are long and the AO turns red arter a green, then close the trade.

Andy
Author:  simplex [ Wed Mar 27, 2013 4:16 pm ]
Post subject:  Standard settings for grid output (simplex method)

simplex wrote:
MrLong wrote: Hi Jürgen,

Could we standardize settings, so members can just drop the EA on the screen, without having to change anything, we have the screen width and screen height variables already in the EA, any ideas would be appreciated.

Andy
Hi Andy,

sure, that should be one goal! I am going to work on my DrawRectangle function again. ...

Cheers, Jürgen
Hi Andy,

I took several hours to experiment with my DrawRectangle and with drawCell (found some description here: http://forum.mql4.com/13898). Generally both methods face the same problem: they do not show the same results on both my machines. :(

For my drawRectangle I found at least one setting that displays correctly on both (see screenshots below):

Code: Select all

int    gridCol1[]   = { 0,       85,     125,    175,   210,     260,   300,          360,  400,           500 };

...

int	symbCellLeft = 10,		// in pixels
		mainCellLeft = 85,
		cashCellLeft = 950;
int	headCellTop = 15,			// in pixels
		mainCellTop = -1,
		footCellTop = -1;
int	symbCellWidth = 4,		// in characters
		mainCellWidth = 46,
		cashCellWidth = 14,
		headCellWidth = -1;
int	headCellHeight = 1,		// in lines
		mainCellHeight = 38,
		footCellHeight = 2;
int   rFontSize = 14;			// for drawing rectangles
This might be a good configuration to start with. If you need space for more pairs or other adjustments, you will always fiddle around a bit with the parameters, bacause you can't scroll vertically in the chart window. ... As always: any feedback appreciated!

Scrolling ...

This particular keyword led me to another idea: is it really necessary or convenient to display the grid inside the terminal??? What could be the alternative?

It would be pretty easy to write some html code based on the grid data to a file. Then we would need a browser to display that file (I already have a browser installed :lol: ) and maybe a little script (which I don't have at the moment) in this browser to pull fresh data from that file every few seconds ... that should be it.

I don't think it would cost more cpu than manipulating those label objects in the terminal. And with some simple css and html table commands we would get an alternate way of dashboard output without the limitations of our terminal. Maybe not as a replacement for inside terminal display but as an alternative the user could choose from.

Just thinking publicly ...

Any thoughts or suggestions about this idea? Anybody around who has some experience about writing html files from within Empty4?

I'm going to leave now for about 3 hours (Badminton practice). Next post not before 21:30 CET.

Cheers, Jürgen
Author:  fx800 [ Wed Mar 27, 2013 4:27 pm ]
Post subject:  Re: Multi 10:4 Trader EA

MrLong wrote:New feature, trailing locked in percentage, closed a basket this morning for 1.18% and now we have 0.52% locked in this basket.

Fantastic, MrLong.

On my Cowboy IBFX hands off demo, a 2% floating gain last night turned into a 1% floating draw-down this morning. I intend to actively manage the ea, banking profits the way Bob manages his manual trades. I hate the idea of a winning trade turning into a loser.

Cheers,
peter
Author:  theforexedge [ Wed Mar 27, 2013 5:15 pm ]
Post subject:  Re: Multi 10:4 Trader EA

MrLong wrote:
theforexedge wrote:Andy

What are your settings for:

UseBothForPullback
CloseWhenMarketReverse

And are you using Stoch or RSI?

Thanks, JP
Hi,

I'm using the RSI.

UseBothForPullback < == if true, the EA will start entering stop orders when both the RSI has pulled back and the AO is below/above the zero line, if false only one of them needs to pullback or above/below the zero line.

CloseWhenMarketReverse <== if we are long and the AO turns red arter a green, then close the trade.

Andy
Thanks, Andy

I realised after posting the message the info is in the EA's comments section.

Thanks for all the hard-work coding this one.. :D

JP
Author:  MrLong [ Wed Mar 27, 2013 7:15 pm ]
Post subject:  Re: Standard settings for grid output (simplex method)

simplex wrote:
simplex wrote:
MrLong wrote: Hi Jürgen,

Could we standardize settings, so members can just drop the EA on the screen, without having to change anything, we have the screen width and screen height variables already in the EA, any ideas would be appreciated.

Andy
Hi Andy,

sure, that should be one goal! I am going to work on my DrawRectangle function again. ...

Cheers, Jürgen
Hi Andy,

I took several hours to experiment with my DrawRectangle and with drawCell (found some description here: http://forum.mql4.com/13898). Generally both methods face the same problem: they do not show the same results on both my machines. :(

For my drawRectangle I found at least one setting that displays correctly on both (see screenshots below):

Code: Select all

int    gridCol1[]   = { 0,       85,     125,    175,   210,     260,   300,          360,  400,           500 };

...

int	symbCellLeft = 10,		// in pixels
		mainCellLeft = 85,
		cashCellLeft = 950;
int	headCellTop = 15,			// in pixels
		mainCellTop = -1,
		footCellTop = -1;
int	symbCellWidth = 4,		// in characters
		mainCellWidth = 46,
		cashCellWidth = 14,
		headCellWidth = -1;
int	headCellHeight = 1,		// in lines
		mainCellHeight = 38,
		footCellHeight = 2;
int   rFontSize = 14;			// for drawing rectangles
This might be a good configuration to start with. If you need space for more pairs or other adjustments, you will always fiddle around a bit with the parameters, bacause you can't scroll vertically in the chart window. ... As always: any feedback appreciated!

Scrolling ...

This particular keyword led me to another idea: is it really necessary or convenient to display the grid inside the terminal??? What could be the alternative?

It would be pretty easy to write some html code based on the grid data to a file. Then we would need a browser to display that file (I already have a browser installed :lol: ) and maybe a little script (which I don't have at the moment) in this browser to pull fresh data from that file every few seconds ... that should be it.

I don't think it would cost more cpu than manipulating those label objects in the terminal. And with some simple css and html table commands we would get an alternate way of dashboard output without the limitations of our terminal. Maybe not as a replacement for inside terminal display but as an alternative the user could choose from.

Just thinking publicly ...

Any thoughts or suggestions about this idea? Anybody around who has some experience about writing html files from within Empty4?

I'm going to leave now for about 3 hours (Badminton practice). Next post not before 21:30 CET.

Cheers, Jürgen
Hi Jürgen,

Fantastic work, I'll include your code in version 1.09 and hopefully is should work across the board.

Thank you very much for your time and effort.

Andy
Author:  bshoe24 [ Wed Mar 27, 2013 7:40 pm ]
Post subject:  Re: Multi 10:4 Trader EA

deleted. issue resolved itself i see today after looking more closely.

Many thanks MrLong for all your selfless hard work.
Author:  MrLong [ Wed Mar 27, 2013 7:45 pm ]
Post subject:  Re: Multi 10:4 Trader EA

bshoe24 wrote:Mr Long i noticed that the pending are placed far out very often in this lastest 1.08a version i been running. I think i read that is a bug in a recent post in the thread. If it is will that be fixed in your next version? Many thanks for all your selfless hard work.

Hi,

Can you give me an example?

Thanks
Andy
Author:  McNish [ Wed Mar 27, 2013 7:50 pm ]
Post subject:  Re: Multi 10:4 Trader EA

@ Andy:The bug that slipshod spotted, in GetNextRes / Sup.

We will also need a Manual for this, may be by next week. :roll:


I get this message in my Experts Tab. This is from the Indi and not the EA. In general if some one can help me get around this or correct it." 2013.03.28 01:37:54 NT TMATrue SlopeHisto MTF AUDJPY.G,H4: unknown subwindow number -1 for ObjectCreate function"
Author:  bshoe24 [ Wed Mar 27, 2013 8:11 pm ]
Post subject:  Re: Multi 10:4 Trader EA

deleted. issue resolved itself i see today after looking more closely.
Author:  MrLong [ Wed Mar 27, 2013 8:36 pm ]
Post subject:  Re: Multi 10:4 Trader EA

McNish wrote:@ Andy:The bug that slipshod spotted, in GetNextRes / Sup.

We will also need a Manual for this, may be by next week. :roll:


I get this message in my Experts Tab. This is from the Indi and not the EA. In general if some one can help me get around this or correct it." 2013.03.28 01:37:54 NT TMATrue SlopeHisto MTF AUDJPY.G,H4: unknown subwindow number -1 for ObjectCreate function"
Hi Max,

That indi has gone now, Paul, sent me the code to plumb straight into the EA, manual wise, I'm on holiday next week, so I don't think my wife will be very impressed if I crank the laptop up, while we are away. :lol:

Andy
All times are UTC Page 47 of 160