Alberto Tortella / Profile
Friends
181
Requests
Outgoing
Alberto Tortella
Added topic problem with OrderCalcProfit() function
Hi all, I'm using OrderCalcProfit() funciton but I don't understand how it works. I opened and immediatly closed a sell position on Gold (CFD-leverage). Size 41.13 Open 2.617,73 Close 2.670,60 The result is a loss for 1.021,46 Euros. Then I
Alberto Tortella
Added topic mql files for ordercalcprofit
Hi all, could tell me where I can find the .mql files described in this article? https://www.mql5.com/en/book/automation/experts/experts_ordercalcprofit They are indicated as attached files but I don't find them. Thank you
Alberto Tortella
Added topic Expired positions with Pepperstone account
Hi all, I have a problem with a Pepperstone demo account. For the second week in a row allo positions were closed on Monday @ 9.00 with "Expired" comment. Broker said that these positions were closed from mine or from my experts, but I'm 100%
Alberto Tortella
Added topic lost Comment with close partial function
Hi all, I noticed that using PositionClosePartial function the Comment in the remained open postion is lost. Is there a way to avoid this? Thank you
Alberto Tortella
Added topic magic number with trade.PositionOpen
Hi all, I seem it's not possible to apply the magic number with trade.PositionOpen, is it correct? Thank you
Alberto Tortella
Added topic Global Variable as datetime
Hi all, is it possible to save a global variable as datetime format? I'm trying with the following code, but I see it as a string. void OnInit () { string d = "TIME_BUY_"
Alberto Tortella
Added topic Are Global Variables deleted from MT5 updates?
HI all, today my MT5 platforms were updated and I lost all my global variables. Could you confirm that global variables are (or can be) deleted following a platform update? I never noticed this before
Alberto Tortella
Added topic Memory and CPU usage with many experts
Hi all, could you tell me if memory and CPU usage are the same between these two options? - run the same expert on 10 different charts - run the expert on a single chart, but in this case the expert can trade on 10 symbols indicated as input string
Alberto Tortella
Added topic problem when market is closed
Hi all, I have the following error when market is closed I tried to fix placing the followng code at the beginning of the expert, but it doesn't work. void OnTick () { if ( SymbolInfoInteger ( Symbol ()
Alberto Tortella
Added topic CFD expiration date
HI all, how can I recall CFD expiration date indicated in properties window? I tried with SYMBOL_EXPIRATION_TIME but I seem it's not correct. Thank you
Alberto Tortella
Added topic reason for error 4756
Hi all, I'm trying to open a sell stop order with the following parameters request_3.action= TRADE_ACTION_PENDING ; request_3.type= ORDER_TYPE_SELL_STOP ;
Alberto Tortella
Added topic Virtual alloc error with custom symbol generator
Hi all, I have a problem with an indicator that generates a custom Symbol . When I apply the indicator on a chart, in some cases I have the attached error. Could you explain what kind of errori is it? I didn’t find discussions or articles
Alberto Tortella
Added topic previous bar Sunday
Hi all, could you suggest a method to detect if previous bar is Sunday? Thank you
Alberto Tortella
Added topic avoid notification @ log in
Hi all, is it possible to avoid the mobile notifcation when I log in to mql5.com? Thank you
Alberto Tortella
Left feedback to developer for job Indicator drawing previous daily/weekly highs and lows with related buffers
Very competent and quick developer. Nice work.
Compliance with specification | 5.0 | |
Efficiency in resolving issues | 5.0 | |
Availability and communication skills | 5.0 |
Alberto Tortella
Added topic ORDER_TIME_DAY not respected
Hi all, I'm testing an expert on D1 time frame in which I wrote the following condition to open pending orders request_type = ORDER_TIME_DAY I see that in some cases pending orders are not deleted at the end of the day. What could be the reason
Alberto Tortella
Added topic error extracting session closing time
Hi all, with the following code I'm trying to extract the session closing time for DE30.pro (OANDA). int session = 1 ; MqlDateTime DateTimeStructure ; TimeToStruct (time_local,DateTimeStructure);
Alberto Tortella
Added topic Trying to import this daily .csv
Hi all, I'm trying to import the attached file. Daily frequency. When I click on OK nothing happens. Is there a problem in the format? Thank you
Alberto Tortella
Added topic buy and sell arrows colors
Hi all, is there the possiblity to distinguish the buy arrow color that opens a new position (or pending order ) from the the buy arrow color that closes as sell position? Thank you
Alberto Tortella
Added topic problem with bool input in tester
Hi all, in an expert I modified an input variable as follow (from false to true) Then I compiled the expert as usual. When I lauch the strategy tester in the journal tab I still see the variable as false. Where could be my mistake? Thank you
: