| New signals service! | |
|
|||||||
| 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 (2) | Thread Tools | Display Modes |
|
|||
|
Quote:
|
|
||||
|
Quote:
![]() Anyway, all messages are stored in log file int the expert log directory (experts/log) but that messages are not stored there in the real time. I mean the metatrader stores there all messages when u close it. If he is still running he will store there the last x lines (not all lines). I think there can be 2 solutions from this situation: 1) Make a ea that will write your alerts into an external file (by the standard file functions) then, make a program (eg. in c++ or any other language) that will read that file every 30 seconds and check if there was added a new line, if yes then it will send u this line. OR 2) u can use for eg. mysql library and connect to database, then write all alerts to database and read it from any place on earth, in any time u want to. Hope it helps u ![]()
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
|||
|
is it possible to ask for an ea to be made?
i have a strategy thats simple i just need somebody to code it for me. im just not very familiar with coding and programming. should i ask it in here if not please guide me to where i need to ask it and to who thanks |
|
|||
|
Quote:
while using the crossalert on a considerably large timeframs, such as M30 and H1, it happens to the MA's to cross several times temporarily before the bar finishes, wich makes a lot of signals for the same breakout(wich is not yet 100% formed) , is there a function in MQL that limits the alerts to only one?, or a code that makes alert only when the bar finishes. i will really apreciate your help, as i'm trading the breakout with several pairs, this will help me a lot. thank you all. |
|
||||
|
Quote:
if(Bars>alertBar and other conditions) { Alert("ALERT ME!!!"); alertBar = Bars; }
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
|||
|
How to READ (not WRITE) alerts ?
Quote:
and this EA writes some alerts into the alert window: what is the easiest way to get these alert messages into a string variable in realtime ? (The question is not how to WRITE an alert, that's what the alert() function is good for. I need to READ the alert. Also to write the alert message to a TXT file and read it from there is no solution, since exactly this message I do not have, so how should I write it ?) |
|
||||
|
int start()
{ int Live_accnt = 16540; //<-- type the user LIVE ACCOUNT here before compiling int Demo_accnt = 1180321; //<-- type the user DEMO ACCOUNT here befor compiling int accnt = AccountNumber(); if (accnt != Live_accnt) // || Does not work!! if (accnt != Demo_accnt) { Alert ("Wrong owner account (" + DoubleToStr(accnt,0) + ")"); etc. etc. How do I get the program to do a logic statement for either or? In this case above the security needs to accept either the Live_accnt or the Demo_accnt. How do I accomplish this. The " || " does not work as an or. I really need your expertise on this! Thanks in advance. Dave <><<< |
|
||||
|
Quote:
if (accnt != Live_accnt && accnt != Demo_accnt ) { Alert("Wrong Account"); return(0); } or if (accnt == Live_accnt || accnt == Demo_accnt ) { //do my things } else { Alert("Wrong Account"); return(0); }
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
![]() |
| Bookmarks |
| Tags |
| histogram, forex, ZUP_v1.mq4 |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
|
||||
| Posted By | For | Type | Date | |
| OzFx System:) - Page 639 | This thread | Refback | 06-21-2008 10:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 12:46 PM | |