MQL4 and MetaTrader 4 - page 28

hello guys i need your help i am recently learning mql4 coding and maybe my problem is easy for you. I appreciate you for helping me i want to write a trailing stop EA based on risk reward ratio for each order.(orders stop loss are not the same pips) i know i can store order information like stop
Hello, I have this now: OrderSend ( Symbol (),OP_BUY, 0.01 ,Ask, 3 , 0 , 0 , "My order" , 16384 ); so right now I have no stop loss, however I want the stop loss to be in points, for example half a pip or 5 points. I know the stop loss must be put in as price, but I do not know how to calculate it
Sir, I unmarked this "Skip Useless Results" in Optimisation Result tab. I marked this Genetic Algorithms but I want to Mark this Genetic Algorithms because There is a lot of parameter in Input tab for My EA Robot Trading. I checked this Journal tab in Strategy tester Optimistion . What does mean
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
[Deleted]
Hi, guys! I've got a brilliant (hm...) idea how to make money. Now i'm looking for the worst forex-trader on this forum. Somebody, who had a bad luck everytime he started trading. The real money-killer, that man I need! ;-) I'd like to set an automatic deal-copier at his account with a reverse...
Hello, i have this problem Running ten Mt4 platforms on a Windows Server 2012R2 VPS, the platforms locks and stop responding. A friend of mine told me that he had the same problem on a WS2012 VPS and don't have the problem with the WS2008 VPS. Did someone noticed my same problem in the Windos Server...
Hello all. I've been on this forum for a few Months now, and am using EAs from the talented programmers on demo and in live money accounts. I wanted to give a little something back, even though I'm not able to write my own EAs. So here's some instructions I put together for people not so familiar...
In backtesting I get the following error: ERR_LONGS__NOT_ALLOWED 4110 Longs are not allowed! OK, longs are not allowed (that part of the message is clear) but why? I haven't been able to find a solution by searching the forum. Who can help? Thanks in advance!
I'm currently backtesting one shown to me. And I'm testing on 99.9% quality data MT4, just like I've tested many previously. But the results on this EA even with the 99.9% data. Are really good way over average returns for example $100 account to $7k in 4 months, no martingale. And results are
I notice today across all my VPS servers that I can login to the MQL5 community via the tools menu and it connects displaying the market and items purchased. However when i try to install any of the purchased items i get an authentication failed message, with a pop up asking me to re-enter my
I have just done my EVERY TICK WFO backtesting ( 50 hours+), I have some doubts about the following questions: 1.Does anyone know what Walk-Forward Efficiency, Consistency, Drawdown means ? 2.What is the "passing rate " about WFO TEST? Can this backtest performance be implemented in the market
Quick question, My `NormalizeDouble()` function is rounding prices to an incorrect number of digits. I have a five digits broker and because the `NormalizeDouble` function is rounding prices to an incorrect accuracy, the TP and SL are out of whack. I have the following code: double price =
Hello developers. When I create a panel in MT4 using "CAppDialog" and when I save a template while the dialog box is active and then I load the same template in a new chart the dialog box becomes double and not working the way it should work. Please help me fix this problem
Does anyone encounter the above mentioned bug per subject? Thank you Example: Intent was to manually partial close 109818499 ( 0.01 out of 0.03 position) , but trade gets closed completely and concurrently reopens a new 109818508 at 0.02 sizing at current price (87.23). It happens either using PC or
Hello I am trying to copy and paste an EA file on the MT4 platform that I downloaded on my Mac OS. When I go to application and select Show Package Contents, I only see Contents, but not the drive_c nor the wineskin I've tried uninstalling and reinstalling the app several times, but don't see
Hello, I have some issues loading historical data. I want to test an expert advisor for which I need lots of 1Min Historical data. 1. When I keep pressing the home button on the 1 min chart to load more historical data, there is only a few weeks back I can go to. After that, pressing the home button...
  Lost code  (4)
So, I have this MQL4 code of an EA that I have. I've created everything, it's working. But, it has a time function that after a certain period of time, like 4 hours, is going to close the open orders which work. But the problem is, whenever I set the time function to, like, say 20 hours, the code
  Grid entry  (2)
Hello everyone below is my grid code though it's not functioning as per my logic. The grid orders should only be triggered once the original buy and sell conditions have been met within the specified grid distance. What my code does it only triggers grid orders at the specified grid distance without
  Esignal  (43   1 2 3 4 5)
Can anyone please help me to code an indicator or script that display candlestick's wick as thick as esignal candlestick. I really love their candlestick but I don't wanna waste my money each month just to look at it.Please help me, guyz. thanks in advance.
Hello! I was going to backtest using tickstory, but unfortunately my version of MT4 is not compatible. Could someone help me with a 1384 version? Thanks
any help? i get this message during validation when i run the same code in my mt4, it places the trades without errors errors is there any issues with my code? bool tradeManager( string orderType, double orderEntry, double orderSL) // manages trades and orders { bool result = false ; double
  Undelivered EA  (1)
I paid and i have not received my ea and i have a financial operations limited message
  Corrupt System  (2)
The system in MT4 is wrong, when you open a pair position for example AUD/JPY automatically to manipulate your MT4 entry it opens the USD/JPY pair in my case I close it and open it automatically to spoil my operation. I don't know why I leave only the AUD/JPY and trading the USD/JPY appears
bool tradeOn= false ; for ( int pos= 0 ; pos< OrdersTotal ();pos++){ if (! OrderSelect (pos, SELECT_BY_POS)) continue ; if (OrderType()< 2 ) {tradeOn= true ; break ;} else continue ; } if (tradeOn){ for ( int pos= 0 ; pos< OrdersTotal ();pos++){ if (! OrderSelect
  Mql4 structs  (3)
Is it possible for values of variables store in a struct to just change itself, all by itself. I'm working on a project, and I noticed a bug come from a bool variable inside of a struct that is true suddenly turned false within tick to the other in backtest no function called or use of the struct
  Calendar in mql4  (10)
Is there anything similar to calendar functions in Mql4? If not how do you handle news with mql4
HI  I have installed meta trader 4 app on iphone SE with APPLE'S Latest IOS. I have entered my Broker, User, and password.  Can login fine.    I have placed trade on my desktop as I can not place trade on my iphone Meta trader 4 app. In the app I can not OPEN NEW TRADES and I CAN NOT CLOSE EXISTING...
Basically the error is like this and it spreads across many, many clients after recent update of Win 10. I am not yet sure which one, since on some clients with Win 10 it works , on others not. A client has an .ex4 file with resources inside. Suddenly it stops displaying any images or working at all...
//+------------------------------------------------------------------+ //| CANDLE_HIGH_LOW.mq4 | //| Hariprasath | //| |
Please help to create simple coding in EA below: extern int MagicNumber= 10001 ; extern double Lots = 0.01 ; extern double StopLoss= 100 ; extern double TakeProfit= 80 ; extern int TrailingStop= 50 ; extern int Slippage= 3 ; extern int MAPeriod= 60 ; //I want to use this parameter to change the MA