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

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

simplex wrote:
mobthehop wrote:Moin, Juergen,

pls check here http://www.stevehopwoodforex.com/phpBB3 ... 214#p49214, Baluda provided code to internalize the RSI call and calculation...

Gruss Mop
Moin!

Great - thx to Baluda! Anyway - I'm going to post my stuff now. Maybe MrLong has already done the proper RSI integration.

Jürgen
RSI integration, will be in V1.09
Author:  MrLong [ Mon Mar 25, 2013 3:09 pm ]
Post subject:  Re: v1.08 code optimization

simplex wrote:Hi MrLong & all,

Time to post my optimized version of 1.08. Goals of my modifications: lower cpu usage by eliminating redundant calculations and simplifying mainenance of the grid by an alternate method of drawing the cells and placing the columns within the cells.

Multi_10_4_EAv1.08rsi_stoch_JM.mq4
modifications here:
  • split func DisplayGrid() in two for runtime optimization: CreateGrid() and UpdateGrid()
  • replaced redundant function calls in CreateGrid() and UpdateGrid() to further optimize cpu usage
  • declared extern int GridMethod to switch between original code and simplex code (temporarily)
  • simplified positioning of columns in grid by arrays
  • simplified drawing of grid background: drawRectangle()
  • functions LabelCreate() and LabelSetText() to simplify object management
  • On my display grid columns of open trades and corr. pairs were intermingled. Fixed this.
  • patched functions CloseAllButtonBeenHit() and DeletePendinglButtonBeenHit() for a flexible positioning of close buttons
  • changed some color settings, just a matter of personal preferences without public value
List of new functions:
  • drawGridBack: draw the grid
  • drawRectangle: draw a rectangle consisting of labels
  • LabelCreate: name says it all ...
  • LabelSetText: name says it all ...
  • CreateGrid: replace DisplayGrid in init()
  • UpdateGrid: replace DisplayGrid in start()
List of modified functions / code sections:
  • global declaration section: new var GridMethod
  • global declaration section: several new declarations - look for the comments
  • init(): changed some colors and coordinates to my personal needs. Called CreateGrid instead of DisplayGrid.
  • start(): Called UpdateGrid instead of DisplayGrid.
  • CloseAllButtonBeenHit(): replaced hardcoded coordinates
  • DeletePendinglButtonBeenHit: replaced hardcoded coordinates
NO changes were applied to trading decisions, etc. - just cpu optimization and gui stuff.

Some remarks:

When reviewing my modifications browse for the string simplex - I marked any change / new function I placed in the code (hope so, at least ;) ).

By switching variable GridMethod to values 0, 1 or something else you can switch between MrLong's original version and mine. This is thought to be a temporary measure to help MrLong integrating my stuff. Settings: 0: simplex runtime optimized and simplex GUI / 1: simplex runtime optimized, MrLong GUI / else: MrLong original

function drawRectangle: replacement for drawCell(). I created this because drawCell sometimes changes horizontal and vertical positioning coordinates when changing height / width settings. Extremely hard when it comes to code maintenance.

bool useWebDings: function drawRectangle has two different methods of drawing a cell implemented. The default method is called when useWebDings == true and works based on the TrueType font Webdings. If you don't have this, set useWebDings == false. Then the alternative method base on WingDings will be called. Rectangle heights and widths of both methods are not compatible! You cannot set width / height on pixel granularity, but on character granularity. Will not fit every possible use, but should be sufficient for creating text oriented grids.

Arrays gridCol1, gridCol2, footCol1, footCol2: supply one single point in the code for changing horizontal column coordinates. No inline patches necessary.

I set grid size to fit the 1366 pixel wide display on my elderly test machine. These are subject to your personal changes.

I set columns positions to allow for long strings under correlated pairs.

@all: this version is meant primarily for MrLong to integrate in his v 1.09. That's why there are several if statements to switch between his version and mine. And I set my preferred colors in init() because I did not want to mess up his code too much. So if you don't want to bother about this just stand by until MrLong uploads his next version.

@MrLong: any question that might appear during integration is welcome!

That's it! Have fun testing & integrating!

Cheers, Jürgen
Thanks Jürgen,

Very kind of of you to help with this EA.

Andy
Author:  MrLong [ Mon Mar 25, 2013 3:11 pm ]
Post subject:  Re: Multi 10:4 Trader EA

fx8000 wrote:
mobthehop wrote:Quick thanks to MrLong and simplex for sharing their respective version!

Cheers
I will second that. Great work.

I am switching my Cowboy IBFX DEMO over to the new version.

In the mean time, V.1.07 is also doing well today.

Cheers,
peter
Wow!!, next move it to make sure we keep the pips we have harvested.

Andy
Author:  MrLong [ Mon Mar 25, 2013 3:15 pm ]
Post subject:  Re: Multi 10:4 Trader EA

sponn wrote:Do we have to install some indies/scripts ? Stupid question I know ;)
Check page 1, 2 indicators.

Be sure to add the indicators to your indicators folder, or the EA WILL ERROR:
NT TMATrue SlopeHisto MTF
10.4 RSI2_on_NT_TMA
Author:  veeyem [ Mon Mar 25, 2013 3:36 pm ]
Post subject:  Re: Multi 10:4 Trader EA

Today in 10.8, the TP TP didn't got executed at WS1 or even WS2 on EURCAD and EURAUD. Anyone having the same issue? In 10.7, it used to TP@ WS1. Thx.
Author:  simplex [ Mon Mar 25, 2013 3:40 pm ]
Post subject:  Re: v1.08 code optimization

MrLong wrote:
Thanks Jürgen,

Very kind of of you to help with this EA.

Andy
Very kind of YOU to start this thread and share your EA!

Jürgen
Author:  MrLong [ Mon Mar 25, 2013 3:42 pm ]
Post subject:  Re: Multi 10:4 Trader EA

veeyem wrote:Today in 10.8, the TP TP didn't got executed at WS1 or even WS2 on EURCAD and EURAUD. Anyone having the same issue? In 10.7, it used to TP@ WS1. Thx.
Can you send me a screenshot of your terminal, with the trades, or the history tab with the closed trades.

Thanks
Author:  TraderDesk [ Mon Mar 25, 2013 3:47 pm ]
Post subject:  Re: Multi 10:4 Trader EA

Today 1.08a worked great... Had it set to close out my orders when 3% profit was reached and it seemed to work quite well....

Love the new releases.... :D
Author:  MrLong [ Mon Mar 25, 2013 3:53 pm ]
Post subject:  Re: Multi 10:4 Trader EA

TraderDesk wrote:Today 1.08a worked great... Had it set to close out my orders when 3% profit was reached and it seemed to work quite well....

Love the new releases.... :D

I like the 3% also, that way we are banking as we go and the percentage number is better because it would be relative to any size account.
Author:  TraderDesk [ Mon Mar 25, 2013 4:06 pm ]
Post subject:  Re: Multi 10:4 Trader EA

Hmmm....I went and installed Simplex version 1.08a and it just garbles the screen. The error log for the EA says "1;39;;;Function "log" is not referenced and will be removed from exp-file" if that helps. Problem is now the 1.08a Andy's EA is not working either. I did nothing else... Any idea's?
All times are UTC Page 35 of 160