Hi all, could you give me some suggestions on how to check the condition "only position closing is allowed" before to open a position or a pending order with an expert? Thank you
HI all, I'm trying to attach this code to a daily chart, but it doesn't work. The code returns a different value than the one I see if I apply ATR indicator on a weekly chart. Could you tell me where is my mistake? Thank you
Hi all, I plotted an horizontal line as Object with an indicator, but I would like to change the level color, from black to white, for better viewing. Is there an option under ObjectSet functions to do this? Thank you
HI all, I loaded a daily historical series for a Custom Symbol. I haven't lower time frames. I would like to test a strategy on D1 time frame, because it only needs Open High Low and Close daily prices, but I seem it's not possible with MT5 strategy
Hi all, I'm testing an expert in strategy tester . Stop orders are correctly placed from the expert, but for some reason are not filled when price level is triggered. Parameters order are settled as follow, without slippage parameters or similar
Hi all, I'm trying to recall the attached indicator with the followng expert, but it doesn't work. Probably parameters settings are not correct. Could you check please? double Open_Line[] ; int Open_handle ; int Bars = Bars ( Symbol ()
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
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
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%
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_"
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
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
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 ()
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
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 ;
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