Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum FAQ Members List Calendar 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

 
 
LinkBack Thread Tools
 
Old 12-22-2007, 11:18 AM
mikkom mikkom is offline
Senior Member
 
Join Date: Oct 2007
Posts: 170
mikkom is on a distinguished road
Question Can EA insert indicators to the main window?

Hi,

I'm programming a very complex visual indicator that combines many indicators.

Because of the (very, very stupid) limitation that indicators can only have 8 lines, I'm now thinking if I could use EA to plot indicators to the main window (Line objects are too slow, tried them too).

Is there any function that can be used to add new indicators to the main window?

Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 12-22-2007, 11:50 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,150
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Yes, it can be done.
Look at this page DECEMA - Xmas gift! (post #23 with article and indicator attached).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 12-22-2007, 12:00 PM
mikkom mikkom is offline
Senior Member
 
Join Date: Oct 2007
Posts: 170
mikkom is on a distinguished road
Thanks! This helps a lot.

I already started to reverse-engineer template files..

(they are ascii files if someone is interested, they can be generated by some other program - that was my next plan)

edit: DECEMA_v1 only seems to plot one line, that was not what I had in mind - I want to plot about 200 indicator values to the main window (don't ask why yet :-D - I'm working on a kind of visual layout that plots different things to the screen so that visual image shows a basic market mood)

Last edited by mikkom : 12-22-2007 at 12:12 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 12-22-2007, 12:09 PM
mikkom mikkom is offline
Senior Member
 
Join Date: Oct 2007
Posts: 170
mikkom is on a distinguished road
To clarify, here is an example of one of the things I'm working on:
Attached Images
File Type: gif resistance_levels.gif (47.1 KB, 256 views)

Last edited by mikkom : 12-22-2007 at 12:41 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 12-22-2007, 12:33 PM
mikkom mikkom is offline
Senior Member
 
Join Date: Oct 2007
Posts: 170
mikkom is on a distinguished road
Here is even better example but using line objects makes this unbelievably slow
Attached Images
File Type: gif resistance_levels_color.gif (48.6 KB, 247 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 12-22-2007, 01:24 PM
omelette omelette is offline
Senior Member
 
Join Date: Jan 2006
Posts: 983
omelette is on a distinguished road
Quote:
Originally Posted by mikkom View Post
Hi,

I'm programming a very complex visual indicator that combines many indicators.

Because of the (very, very stupid) limitation that indicators can only have 8 lines, I'm now thinking if I could use EA to plot indicators to the main window (Line objects are too slow, tried them too).

Is there any function that can be used to add new indicators to the main window?

Thanks in advance!
The 8 buffers is only a limitation if all buffers are used to display signals - many indicators 'waste' display buffers for general calculations, instead of using arrays to do this. Also, if display buffer shortage is a problem, split the signals between two indicators, and drop one on top of the others window.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 12-22-2007, 02:02 PM
mikkom mikkom is offline
Senior Member
 
Join Date: Oct 2007
Posts: 170
mikkom is on a distinguished road
Quote:
Originally Posted by omelette View Post
The 8 buffers is only a limitation if all buffers are used to display signals - many indicators 'waste' display buffers for general calculations, instead of using arrays to do this. Also, if display buffer shortage is a problem, split the signals between two indicators, and drop one on top of the others window.
I have about 300 lines per screen (see the screenshots), that would require me to use 300/8 = 37 indicators per screen that I would have to manually add to the graph.. so I'll rather create a different program in another language that can create templates on the fly if EA cannot add new indicators to the screen automatically.

By the way there is a real nasty reason why many times you have to use buffers for calculations, indicator arrays lost all the old data between redraws even if the array is global.

Last edited by mikkom : 12-22-2007 at 02:07 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools

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
mode main ajk Metatrader 4 mql 4 - Development course 0 05-13-2007 11:58 PM
2 signal AmiBroker how insert indicators king forex Indicators - Metatrader 4 3 12-21-2006 07:16 PM
Scale 2 indicators in one window asmdev Indicators - Metatrader 4 1 05-10-2006 07:40 PM


All times are GMT. The time now is 12:37 PM.