Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-2007, 12:18 PM
mikkom's Avatar
Senior Member
 
Join Date: Oct 2007
Posts: 285
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 12-22-2007, 12:50 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,079
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 12-22-2007, 01:00 PM
mikkom's Avatar
Senior Member
 
Join Date: Oct 2007
Posts: 285
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 01:12 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 12-22-2007, 01:09 PM
mikkom's Avatar
Senior Member
 
Join Date: Oct 2007
Posts: 285
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, 334 views)

Last edited by mikkom; 12-22-2007 at 01:41 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 12-22-2007, 01:33 PM
mikkom's Avatar
Senior Member
 
Join Date: Oct 2007
Posts: 285
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, 327 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 12-22-2007, 02:24 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 12-22-2007, 03:02 PM
mikkom's Avatar
Senior Member
 
Join Date: Oct 2007
Posts: 285
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 03:07 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 signal AmiBroker how insert indicators king forex Indicators - Metatrader 4 5 11-11-2008 09:30 AM
mode main ajk Metatrader 4 mql 4 - Development course 0 05-14-2007 12:58 AM
Scale 2 indicators in one window asmdev Indicators - Metatrader 4 1 05-10-2006 08:40 PM


All times are GMT. The time now is 07:55 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.