Codes

1H EUR_USD for MetaTrader 4

The purpose of this EA is to find good entry in a well established trend. The EA was developed on 1 Hour EUR_USD graph, but I think that the similar concept can works in a good manner on the other crosses too. I’m happy about the drawdown

Forum

error on a weekly array

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 //+------------------------------------------------------------------+ //|

price color for a trendline

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

trendlines between opening and closing arrows

Hi all, could you tell me where I can read the code that draws the trendlines between opening and closing arrows for every trade? Thank you

how to run a test with daily bars only

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 tester , could you confirm? Is there a way to run

stop orders not filled in strategy tester

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. request_3.action= TRADE_ACTION_PENDING ;

problem with iCustom settings

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 (), PERIOD_CURRENT ); void OnInit () { ArraySetAsSeries

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 immediatly use OrderCalcProfit() function with same inputs

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

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

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% sure my experts didn't close these positions. Same