MQL4 and MetaTrader 4 - page 194

To post a new topic, please log in or register
Hi I want to use iCustom function in my EA so at first I need to know what it returns . as today is Sunday I am using strategy tester. I wrote an Alert() to see what is coming out from indicator. and I saw this unusual fonts , how can I solve fonts problem ?
Hello everyone, Code below.    CurrentSymbol     = SymbolName       (Next_Symbol,TRUE);   CurrentSymbolLow  = iLow             (CurrentSymbol,TIMEFRAME,0);   CurrentSymbolHigh = iHigh            (CurrentSymbol,TIMEFRAME,0);   Spread            = MarketInfo       (CurrentSymbol,MODE_SPREAD);...
Hi... i am looking at documentation of CryptEncode function and there are a good example code... there are a function ArrayToEx that converts a uchar array to a Hexadecimal string... using StringFormat and "%.2X" as the output parameter. Well, i need to know how to do the opposite: Fill an uchar...
A dignified old software MT4, even without HLC Bar, really silent. Programming can not be achieved? If it can not be achieved, your garbage MT4 is simply too shame! Other trading software can be programmed to achieve the HLC Bar!
Hi  would like to know if with switch function i can use a range instead of a precise value switch(i)     {      case 1:         res=i;break;      default:         res="default";break;      case 2:         res=i;break;      case 3:         res=i;break;     }   Print(res); like this switch(i)...
I have an EA I have been customizing using the Ichimoku and I feel like I need to get some community help for back testing and such. I was looking for an Ichimoku EA to use as a base and found the one on the earnforex website; the Ichimoku Chinkou Cross. It looked promising as it was very well...
My trend lines or other objects for that matter don't save each time I create them manually on the chat, close the window and open the window again. What could be the cause?
hi, i got a broker called flatex for my forex trading in combination with mt4. i also copied a trade from mql5.com. the copying doesnt really work well so i asked the service desk who told me that by rule the brokers of me and the signal should be the same. does anyone here habe flatex? i cant find...
Hello, I need some help please, I have an indicator,which it create an object on the chart,which in the parameters it has a time value like this: 2017.09.20 12:00 1.I want to save in a variable the current date and time,which it will have value like this too:2017.09.19 17:00 Then i want to compare...
Hello everyone! For the life of me I can not figure this out. I'm trying to modify the take profit and stop loss of multiple trades in the same pair at different levels. Instead my EA updates all TP and SL in that pair. Can anyone figure this out? I'm giving you an example below.        for (int i...
Hello, Is it possible to get MT4 Server for developing MT4 plugins? So that one could develop plugins for MT4 Server, with a purpose of selling them to companies.
Hey guys could someone please tell how to activate both buy-line and sell-line indicators on the screen of MetaTrader 4
Hi guys!  Will someone please tell me how to instal my indicators/templet in this web terminal mt4 for Mac?  I just got back into trading after I took some time off and my desktop version I had installed on my mac doesn't seem to be working anymore.   Anything you can help me with would be so...
Hi Experts, pardon the pun! I have developed an EA that trades bank manipulation that is showing promising results during backrests. It uses dynamic lot sizes and does not use martingale or hold positions over weekends. It also trades longs only. Any further ideas to increase the effectiveness of...
who do I contact?
Hi, gus.  I watched test video , but I still don't konw how to testing , please help me. video link : https://www.youtube.com/watch?v=HAi6Q-jiONY 
Hi I was creating a simple indicator that will show High-Low for each bar but it doesn't do anything when I attach it to the chart. When I start debugging, debugging stops just after I press "Ok" for the indicator settings box....
  Nice code ! (9)
I would like to change this EA. The system should open a new position of 0,01 lot only if it reaches TP trading profit of 10 pips. Now the system recognizes the small profit position as the basis for opening a 0.01 lot (and that is the beginning of the cycle) A system starts from 0.01 flight and...
Hello everyone, I have had this on the back burners for some time now. I have removed some parts of the code so that it is hopefully easier to read. (note: Full code isn't functioning) void Market_Watch()  {   CurrentSymbol = SymbolName(Next_Symbol,TRUE);   CurrAsk       = MarketInfo(CurrentSymbol...
Hi Guys I'm having a slight problem with getting the backtester and even live trading to get an indicator calculated only after a bar is closed. Say we're looking at an MA or MACD cross system, like the EA's provided with metatrader, with each tick of a bar, the MACD or MA could go from crossing or...
  GMT to Server (54   1 2 3 4 5 6)
HI there! Im trying to get the difference from GMT to Server, but is the server shows midnight as 0 and GMT shows as 21, so of curse 21 - 0 = 21. 21 would be the wrong different between GMT and Server in my case. How do i calculate it the right way. Thanks a lot, Piero int start(){      datetime...
//+------------------------------------------------------------------+//|CLASS instrument                                                  |//+------------------------------------------------------------------+class instrument  {public:   string            symbol;...
I need some help to formulate a code which will close the order exactly at the bar's end.It is for a special scalper EA, so it needs pinpoint precision.Let me illustrate what i mean: Here you can see for example an M15 EUR/USD chart.Now imagine if i had any indicator that took me into a long trade...
Hi friends, I coded to close my order partially - for example close only 2 lots of a 10 lots order- and then I found out that after the partial closing (closing some of the order lots) the order number has been changed into a new number. I also tested it manually in other brokers and there was the...
Hi all, I'm wondering if anyone can help. I'm looking for a way to code in MQL4 that allows me to calculate the movement in price, as a percentage, from a recent high or low to the current price. I am aware if the iHigh and iHighest functions in MQL4, but the problem with these is time frames. For...
I usually do manual backtesting and use F12 key to forward the candlestick one be one. (F12 key in backtesting is mentioned at  https://www.fxdayjob.com/manual-backtesting-in-mt4) I want to speed up this, e.g., by pressing S key, 5 or 10 candlesticks are forwarded. I wrote the following code, but...
  Beginner Problems! (15   1 2)
Firstly let me start by saying I have no coding background (bar a small bit of HTML and CSS, not much use here). I have been trying unsuccessfully to code an EA for this strategy, using online guides and taking "inspiration" from other EA's. Needless to say, it hasn't worked very well. Before I go...
Hi  I'm trying to make an EA which check some conditions in all time frames . whenever conditions output was true in one of time frames  it must  send the position . my questions : 1- is it correct way to make it multi time ? 2 -  i don't know how to say if you sent a position don't repeat sending...
On testing an EA - Report - Mismatched Chart Errors.  On one computer I get 115 errors on another I get 813 with exactly the same Expert Properties.  This of course changes the profits significantly.  Would you explain to me how this occurs and suggest how I might reduce this number.