Forum

Only one trade per day

Hello everybody, i'am new with mql5 and i have some problems to write the function , which check for me if the EA already have trade on this day. I will be very grateful if somebody can have a look at my code. Thank you very much! bool DoWeHaveAlreadyOneTradeToday(){ MqlDateTime today; datetime

Newsletter for the http://www.metaquotes.net/en/metatrader4/news page

Hello, Is there a possibility to subscribe to a newsletter for the http://www.metaquotes.net/en/metatrader4/news page? Thank you very much! Kind regards

AccountBalance() and change of the account

Hello, I would be very grateful if someone could help me with my problem . I need the amount of the balance in one of my indicators . Which I get with the function Account B alance ( ). The problem is: when I change the Account in the MT4 (Login with an another account and the indicator is already

CButton problem with locking

Hello Dear Community, does somebody know how I can solve the problem with the "Locking" of the Cbutton? I have created a CButton on a chart with the following code. I would like to have a button which you can press , but the button should not have two states (like it is actually in my code, the

Last bar in the month

Hello, I try to verify in the strategy tester if the actual bar bool LastBarInThisMonth = false ; LastBarInThisMonth = CheckLastBarInMonth(Time[ 0 ]) is the last bar in the actual month. I tried to write these two functions. bool CheckLastBarInMonth( datetime MyTime){ datetime MyTimeArray[];

Named Pipe communication between two terminals

Dear Community, sorry for the double post. I ask the question at the www.mql5.com forum, but there nobody could help me. Maybe somebody here have an answer for me. I try using the Named Pipes to exchange data between two terminals. Unfortunately, I can not get it to work. . I've already read most of

Named Pipe communication between two terminals

Dear Community, I try using the Named Pipes to exchange data between two terminals. Unfortunately, I can not get it to work. . I've already read most of the entries in this forum regarding Named Pipes but found nothing suitable . I can not find the error or problem in my code . I use the script "

Panel outside of a chart

Dear Community, is it possible in MT5 to create a panel outside of a chart ? So you can move the panel over the whole screen . Thank you very much for your Help

StringSplit with two-dimensional array

Hello, does somebody know, if is there a possibility to use a two-dimensional array in the StringSplit function . If I use it like bellow, than I get always an error: ']' - expression expected, 'TradeValues' - array required I want to write the split strings in the second dimension of the array

Call a MetaTrader Script from Excel VBA

Dear All, here is a suggestion how one can call a MetaTrader Script from Excel VBA. Unfortunately the code does not compile any more with the Build 600. Is there a possibility to call the MT Script (build higher than 600) from Excel VBA? Thank you very much