Alberto Tortella
Added topic round number
Hi all, could you indicate a system to round the number 5142.37 to 5150 ? Thank you
Alberto Tortella
Added topic invalid integer number as parameter 2 for 'iCustom' function
Hi all, I created a simple indicator as the difference between the Stoch(5.3.3) and his signal line . //---- indicator settings #property   indicator_separate_window #property   indicator_buffers 1 #property  
Alberto Tortella
Added topic problem with offline charts on Activetrades
Hi all, I'm using Renko Live Charts v 3.2 to work with my Renko charts. This expert works good with Alpari, now I just opened a demo account with Activetrades. When I set the expert on a M1 graph, I obtain the usual "open offline EURUSDM2 to wiew
Alberto Tortella
Added topic how to find the round numbers
HI all, I need to build a control to find this situation   If (Bid contains 0.0010 or 0.0090) then (...)   For instance bid is 1.3810 or 1.3890. How can I isolate the 10 and 90 round numbers ?   Thank you
Alberto Tortella
Added topic my expert don't refresh the external variables
Hi all, when I change the value of the external variables and then I push the Compile button, the expert don't refresh these values. I print these variables and I see the expert is using the old values of them. Where could be the
Alberto Tortella
Added topic is there a problem with include files in the new build?
Hi all, I use an include file to calculate the lot size in my experts.   This file worked correctly with the old version of Metatrader 4. Now with the new build 600 it does not work properly.   In my expert I define the % risk with an
Alberto Tortella
Added topic return value should be checked?
Hi all, when I compile my experts with the new build version I often get the warning "return value of OrderSelect" should be checked ". How can I proceed to check this? Thank you
Alberto Tortella
Added topic cannot create interface of MQL compiler? Help
Hi all, after the update of my MT4 platform, I have this error when I try to compile my experts. Where is the problem? Thank you
Alberto Tortella
Added topic Problem with Renko charts in the new MT4
Hi all, I have a problem with Renko charts in the new MT4. I’m using Renko Live Chart v 3.2 in the OLD MT4 version, but I don’t see the M2 chart in the offline folder in the NEW MT4 version. I have read this article
Alberto Tortella
Added topic problem with OrderClose()
Hi all, I manually opened a sell order on USDCAD, size 0.10, order ticket 162078588. I wrote a simple expert that I attached on the USDCAD graph. int start()   {      OrderClose( 162078588 ,OrderLots(),Ask, NULL
Alberto Tortella
Added topic pending orders too tight?
Hi all, is there the possibility that the broker does not accept a pending order if the price indicated is too For instance, the ask price is 125.41 and I want to place a pending buystop @ 125.421, is this a valid request or not? I don't see
Alberto Tortella
Added topic ping failed
Hi all, is there the possibility to recall in an expert the situation "ping failed" that I see sometimes in the diary? When the connection is lost, I need to refresh my Renko graphs. Something as if (ping failed == true) ....  Thank
Alberto Tortella
Added topic IsConnected( )
Hi all, when the bool IsConnected ( ) is false, the bool IsTradeAllowed ( ) is also false? Is it possible that when IsConnected() is false, IsTradeAllowed() is true?   Thank you! 
Alberto Tortella
Added topic problem with GlobalVariableGet()
Hi, I have a problem with GlobalVariableGet() function . I define my variables in this way: string count_long = StringConcatenate("count_long_",Symbol()) ; GlobalVariableSet(count_long,1) ; The expert runs on different pairs. So I obtain
Alberto Tortella
Added topic round up & down
HI all, I need to round Bid to the highest and lowest value, as in this example Bid = 1.24231 I need to obtain 1.24300 (upper round) and 1.24200 (lower round). I’m trying to use MathRound() and NormalizeDouble() but it doesn’t work. Could you help
Alberto Tortella
Added topic MathRand()
Hi all, could you give a criteria on how to use MathRand() function to open orders? Something like this: if ( MathRand() ....) BUY if ( MathRand() ...) SELL Betterif these two conditions have around 50% probability each one. For istance, if
Alberto Tortella
Added topic closing time for last order
Hi all, I'm trying to recall the closing time for the last order executed on the account for a certain currency. What do you think about this code? Thank you! total_history = OrdersHistoryTotal ( ) ;       for (cnt= 0
Alberto Tortella
Added topic Round to the low
Hi all, could you help me with this problem? int start()   {            Print ( NormalizeDouble ( 0.09 / 2 , 2 ));   } In this case output is 0.05. I need to obtain 0.04. How can I
Alberto Tortella
Added topic avoid modifying in comments
Hi all, when an order is opened my expert writes a comment in the order. Can I avoid that the expert modifies the comment when half position is closed at target price? Thank you
Alberto Tortella
Added topic order split
Hi all, is there the possibility to split an order in 2 orders after it was opened? I'd like to give a take profit at half size, an leave the other half without take profit. I know I could open 2 different orders at the beginning, but I noted that