Alberto Tortella / Profile
Friends
182
Requests
Outgoing
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
Alberto Tortella
Added topic web site to share the account
Hy everybody, could you indicate me the web site that allow to share the trades placed on a certain account? I saw it somewhere but I don't find it anynore. Thank you
Alberto Tortella
Added topic % risk on the account
Hi all, I usually trade by setting my stop to obtain 1% max loss on every trade. To do this, I recall double AccountFreeMargin ( ) but I'm not sure it's correct. May be it's more correct recall double AccountBalance ( ) because this double returns
Alberto Tortella
Added topic 2 experts on the same graph
Hi all, is there the possibility to run 2 experts on the same graph? Can I write an expert in which I recall 2 experts? Thank you
Alberto Tortella
Added topic Choosing time zone
Hi everydoby, I know that it's not possible to modify the platform clock. Is there an indicator showing the opening time for every bar with the desiderd time zone? For instance, platform is settled on GMT but the indicator shows opening time on
Alberto Tortella
Added topic Doubt with 5 digit broker
Hi everybody, I'm using a 5 digit broker. When I use the function Print (Low[ 0 ]) I see 4 digit, for instance 1.3147. If I write string value =DoubleToStr(Low[ 0 ], 5 ); Print( value ) ; Low[0] is 1.31467. My doubt is: when I write Low[0] in an
Alberto Tortella
Added topic FileRead function
Hi, I'm writing an expert on M3 offline chart. I need to recall a double from M3 offline chart. I'm trying with the following code but it doesn't work... int handle; double varray[1]; handle=FileOpen("EURUSDM2.hst", FILE_BIN|FILE_READ );
Alberto Tortella
Added topic Open time for the last bar
Hi everybody, is there a variable that returns the opening time for the last bar? Thank you
Alberto Tortella
Added topic Authorize dll call
Hi everybody, I usually trade with Renk Charts. When I open the platform, I must authorize all DLL calls on the charts. Is there a way to authorize all these calls without flagging all the requests? With a script, or other ways, could you suggest a
Alberto Tortella
Added topic Problem with off line charts
Hi I'm writing an expert that runs on M2 off line chart. Now I'm trying to recall a double from M3 off line chart, but it doesn't work. I would expect to write the following iCustom(NULL,PERIOD_M3,"Pippo",0,0) but I don't find
Alberto Tortella
Added topic Problem in bars counting
Hi, I need to obtain the distance from the last fractal , but I seem this code doesn’t work. Could you help me? Thank you! int start() { int u, Distance ; for(u=Bars; u>0; u--) if (iFractals(NULL,NULL,MODE_LOWER,u)>0) { Distance = BARS - u ;
Alberto Tortella
Added topic export stop price in Excel
Hi everybody, I'd like to insert in my expert a function that writes in an Excel file the initial stops of my trades. Could you help me? Thank you
Alberto Tortella
Added topic Problem with Interbank platform
Hi, my Interbank FX platform recently switched to 5 decimals, so I modified my Point() function as follow: double Point() { if
Alberto Tortella
Added topic printable version
Hi, is there the possibility to run a printable version for the articles section, like on mql4.com? It could be very useful! Thanks a lot
Alberto Tortella
Added topic Moving averages with same value
Could you kinldy explain the below situation? I write the following: Fast_Ema = iMA(NULL,NULL,9,0,MODE_EMA,PRICE_CLOSE,1) ; Slow_Ema = iMA(NULL,NULL,18,0,MODE_EMA,PRICE_CLOSE,1) ; In my expert I write the entry condition as follow: ... &&
: