Alberto Tortella / Profile
Friends
182
Requests
Outgoing
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
Alberto Tortella
Added topic Gain Indicator
Hi, I wrote the attached indicator but it doesn't work. The indicator would work as a cumulate sum: if( Close[0]>High[1] ) { Gain[i]= "Previous Gain" + (Close[0]-High[1]) ; } if( Close[0]<High[1] && High[0]>High[1] ) {
Alberto Tortella
Added topic Lowest low after 8.00
Hi all, I have an expert that runs on a daily graph. The expert contains this condition: Hour()>= 8 && Hour()<=20. I need to write the following condition. The Low after 8.00 is < High[1], where High[1] is the previous day highest
Alberto Tortella
Added topic bool variable to check opened orders
I’m trying to write a boolean variable that is true when no orders are opened on the current Symbol(). I receive the error “too complex expression”. Bool Opened = for(cnt=0;cnt<=total;cnt++) { OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES);
Alberto Tortella
Added topic #include function
Hi, I wrote the attached file to calculate the number of lots. I save the file in "Include" folder, with .mq4 extension. Then I wrote #include <Lot Size.mq4> in the destination file. If i Write int start() { LotSize_Long();
Alberto Tortella
Added topic Bid Cross...
Hi, is there the possibility to write a condition like this? If (Bid > High[1] && prevoious Bid < High[1]) { .... } instead of an indicator that check the opened positions? Thank you! Alberto
Alberto Tortella
Added topic How to check for opened positions?
Hi everybody, is there a predefined way to check if an expert is trading on a Symbol(), or if a position is actually open on a Symbol(). Actually I’m using an int variable to check this, but I’d like to know if there is a specific function such as
Alberto Tortella
Added topic New rows on Expert Advisors page
I have noted that when I apply an indicator to a graph, then I see new rows on the Expert Advisor page (in terminal). Is there the possibility to avoid the creation of these new rows that are not so important ? I prefer to see only the rows produced
Alberto Tortella
Added topic Metatrader and Excel
Hi, I’m searching for a manual or a guide to understan how to link the MetaTrader platform whit Microsoft Excel, through DDE server. Could you help me? Thank you
Alberto Tortella
Added topic How to avoid entry gaps?
Hi all, I have this entry condition: Bid > High[1], were High[1] is the highest bid of the previous daily bar. I need a condition to avoid the trade if the Bid price forms an up gap with High[1]. How can I proceed? Thank you
: