Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
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 10-10-2009, 06:28 AM
Junior Member
 
Join Date: May 2009
Posts: 9
Neo-Rio is on a distinguished road
Getting a signal from an indicator

I'm still learning how to program MQL4, so bear with me.

I have an indicator that gives trade signals (either buy or sell).
These signals appear after the open and before the close on the current bar. It is absolutely critical that as soon as the signal has been made, that the EA I am making opens a trade. If it misses and goes tot he next bar, we are too late.

This indicator actually displays alerts as well. If I could get the indicator to contact the EA somehow....

Is this possible? ...or it this as simple as looking at the IndexBuffer for the current bar?
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 10-10-2009, 08:25 AM
Senior Member
 
Join Date: Oct 2005
Posts: 455
Perky is on a distinguished road
it depends on the indicator


some arrow indicators return a huge figure when not active
ie 273444376 or something i can remember the number

you use the icustom command to read the indicator eg

double metro=(iCustom(NULL, 0, "metro",0,0));//current bar
double metrob4=(iCustom(NULL, 0, "metro",0,1));//bar before

the 0 after metro ties in with the color on the indicators color map - the one you set the colors on the indicator - thats the easiest way i remember it

now if the expert gets a huge number then i normally say
if (metro>200000) metro=0;
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 10-10-2009, 01:43 PM
xx3xxx's Avatar
Senior Member
 
Join Date: Sep 2008
Posts: 411
xx3xxx is on a distinguished road
Wink

just like using optical fibre or DVD burner


change everything into LIGHT SIGNAL as soon as voice signal is given


sorry to disappoint you , many signal provider does not WORK in practice -- even it is universaly truth


probably some build in mechanisum to let it finish in just 5 minute, rather than let it PROGRESS slowing and go to the desired direction within 50 minutes


so, you have to make sure, IT DOES WORK first, and overcome the pip spread, and outweight the chance that it does not go your way


hope that you do more research than me -- on this SIGNAL when it is FIRED


repost this indicator -- someone please study it, tell us WHAT YOU FIND OUT --- so far, any universal pattern, any false POSITIVE etc


called BS -- and post us back some ScreenCapture === finding like ..... (does it need to be double of the RATIO) or signal need to close to some border or first 6 min or a 15 min bar tec

heheheh
Attached Files
File Type: ex4 anchorfx_BS.ex4 (2.8 KB, 39 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
  #4 (permalink)  
Old 10-10-2009, 11:03 PM
Senior Member
 
Join Date: Sep 2007
Posts: 116
Ms_Mel is on a distinguished road
Quote:
Originally Posted by Neo-Rio View Post
I'm still learning how to program MQL4, so bear with me.

I have an indicator that gives trade signals (either buy or sell).
These signals appear after the open and before the close on the current bar. It is absolutely critical that as soon as the signal has been made, that the EA I am making opens a trade. If it misses and goes tot he next bar, we are too late.

This indicator actually displays alerts as well. If I could get the indicator to contact the EA somehow....

Is this possible? ...or it this as simple as looking at the IndexBuffer for the current bar?

I use an EA which has many parameters and one of them is called "Confirmed On Entry". When the EA a valid signal, if I put this to TRUE then it waits for the next candle to open a trade but if I put it to FALSE then it will immediately take the trade. So yes, it definitely IS possible.

Hope this helps,

Happy trading!

Ms_Mel
__________________
Profitable trading starts here:
http://forexleader-forexleader.blogspot.com/
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 10-11-2009, 10:19 PM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Some very cryptic answers so far, not least the one by xx3xxx which seems to have no relevance at all to your question

The simple answer is you'll need to use the iCustom function. Just search in the metaeditor help file to find it.

Good luck

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
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
Help with BrainTrend 2 Signal Indicator cgeorge Brain Systems 13 03-16-2009 02:29 AM
What best indicator to entry signal ? riskyachtar Indicators - Metatrader 4 17 08-24-2008 01:25 PM
show us your best indicator/signal jjk2 Indicators - Metatrader 4 8 10-13-2007 05:35 PM
Help with adapting 1 indicator to match another indicators signal f4mnect Indicators - Metatrader 4 0 09-16-2007 08:31 PM
Numeric SL vs. indicator exit signal cucurucu General Discussion 5 04-19-2006 11:36 AM


All times are GMT. The time now is 04:26 PM.



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