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: ... &&
Alberto Tortella
Registered at MQL5.community
Alberto Tortella
Added topic Number of bars from the last Fractal Up
Hi, I need an help in writing this indicator, it doesn't work. I must find the last bar that formed a Fractal Up. The indicator will return the shift from the present bar, to reach the Fractal bar. For instance, if the Fractal Up is formed 3 bars
Alberto Tortella
Added topic doubt about Fractals
Hi, I have a doubt in using fractals . I loaded the indicator “fractals” on a graph and I see that there aren’t external variables to set. I see upper and lower arrows. I write, for instance Print ( iFractals ( NULL , NULL , MODE_LOWER , 2 ) ) ;
Alberto Tortella
Added topic NormalizeDouble function
Hi, I’m watching the NormalizeDouble function. I know that the function, with 2 digits, works as follow: 0.017 is rounded to 0.02. Is there the possibility to round the number to the lowest level? If the number is 0.017 I’d like to round to 0.01
Alberto Tortella
Added topic Avoid editing of Comment
Hi, is there a way to avoid that the field OrderComment () is modified from the platform? Thank you
Alberto Tortella
Added topic Avoid Sunday evening...
Hi, I need an help in editing the attached indicator. The indicator plots previous day High and Low levels. The problem is that if DayofWeek()==1, the indicator plots Sunday night levels. I'd like that if it's Monday the indicator will look to Friday
Alberto Tortella
Added topic Trades on terminal window
Hi, is there a way to distinguish the trades opened from different experts in the terminal window? If I have many positions at the same time on the same cross, it’s difficult to know immediately the expert that opened that position. May be there is
Alberto Tortella
Added topic Help with .mqh files
I wrote the attached .mqh files and I wrote in my expert the following int start() { #include <punto.mqh> #include <decimali.mqh> #include <Lots_Long.mqh> #include <Lots_Short.mqh> .... } I'm not sure if I this is the right
Alberto Tortella
Added topic strange problem with Point
Hi, if I write in an expert Print(Point) I obtain 0 as answer in the expert advisor tab. When I apply the expert to EUR_USD I expect that point is 0.0001. What is wrong? I'm using an Alpari demo account . Thank you
Alberto Tortella
Added topic Avoid Sunday evening...
Hi, the attached indicator works fine for brokers that do not include Sunday evening bars. If I apply the indicator on a platform that include the Sunday session, then I need to make refer to the previous Friday bars. I tried with this condition
Alberto Tortella
Added topic Convert indicator from 1H to daily graph please...
The attached indicator was created to work with 1H graphs and I don't understand why it doesn't work on daily graphs... Could you help me? Thank you very much!!! Alberto