Download MetaTrader 5

MQL4 and MetaTrader 4 - page 431

To post a new topic, please log in or register
Tradeing Trader
Hello, can i send a weblink with the MT4 Push Notification Messages to my Smartphone and click that link then also? Must the MetaTrader Application run all the time when you want to receive a Push Notification Message? Is there any other better way how i can send a message to my smartphone? Sending...
Hello, Does anyone understand this weird behaviour bellow: int init()  {   double LotSize =1.11611;   int pres = -1*Logb(10,0.01);    Alert("LotSize = " + LotSize + ", -Logb(10,0.01) = " + (-1*Logb(10,0.01)) + ", pres = " + pres +  ", norm = " + NormalizeDouble(LotSize,pres) );   return(0);  }...
Hello, If my strategy requires frequently using the Fibonacci tools with different levels each time, what is the best way to make the process quicker? I'm thinking of writing a script that takes the price/time extremes as input, then computes the relevant levels and draws lines on the chart. Does...
I want to a account history report for mt4 . But not perform. error: TemplateFile: cannot open the template file
Hello I need your help in programming a (pre determined initial and ending dates) linear regression channel with (sound alert, notification and send email) in all cases of crossing the mid line of the channel or moving outside. thanks in advance
It's for an Ea. For example I want the EA to count the amount of bars(starting from 0) that appeared since an MA crossover. I just don't understand the logic that will 'BarsSinceMACrossover++' every new bar. - Regards
Hi, it works fine in the Stretagy-Tester if I enter Objects placed in the 'future' of the modelled time. But would that work on the real market chart as well:    ObjectCreate(id, OBJ_TREND, 0, iTime(Symbol(),PERIOD_M30,0)-1, BuLim, iTime(Symbol(),PERIOD_M30,0)+(30*60-1), BuLim ); iTime(Symbol()...
Hi guys, Just starting to build my EA after some months of research, I came to a point where I need to get the close price shifted back, lets say 5 days ago. I know that Close[5] is good enough but this wont work in a simulation since it will take the actual date as the start. It's really important...
i have simple ea . how can i putting a incresing sl and tp. some one help me //+------------------------------------------------------------------+//|                                               100 pips a day.mq4 |//|                      Copyright © 2005, MetaQuotes Software Corp....
Hi! Is it ok to place two stop orders (buy and sell) at the same time,I mean will the broker allow me?(with the help of an ea ofcrse) For example 1 above the high and 1 below the low of "candle[1]" once its closes? Thanks
hi all i am currentley using windows 8 and i am having some issue in my back test results what i did was manually back tested and then use the ea to confirm my results. this has worked for 2 currency pairs (eur/aud and gbp/aud) but not on the eur/usd (Back test came up with 102 and the ea came up...
I'm not returning any value for this iCustom function. I am trying to get the following value of Momentum //====================== // Indicator Setup //====================== SetIndexStyle(0,DRAW_HISTOGRAM,EMPTY,3); SetIndexBuffer(0,Pos_Diff); SetIndexStyle(1,DRAW_HISTOGRAM,EMPTY...
Is there any tool or software that can convert an EA MQL4 to .EX4
Hi, I have calculated in my MS Excel sheet many values for different forex symbols such as: Stop Loss, Take Profit, Lots() etc... How can I import data from MS Excel into my Expert Advisor in order to set for example Stop Loss as value from my excel sheet("source"), cell(A3) ? Regards,
Feel free to ignore this if you want, it's a little simple, but I hope someone can explain this aspect of programming to me? I tried to find the number of points between 2 prices (i.e. an integer like 10 points, or 2 points).       int    origSLpoints = (SLprice-askprice)/Point;      double...
Hello, I wrote EA using 2 different timeframe.eg. 15m and 4hr. but when i backtest nothing doing. Forward test works fine where i opened 2 timeframes on chart. Question is: Is this possible to code to test backtest also? if yes how it will be done? I saw someone wrote ea using multi timeframe.which...
I'm trying to get the exp moving average of the TSI buffer in this code and then draw the EMA on the indicator. However, it does not draw the value correctly as the red and yellow lines are very far apart, they should be crossing over each other. Any ideas where I have gone wrong?...
how could i transfer quotes and other data to dll??? wat is the function used for ttansferring---->from mql to dll???
Using this thread as a guide (https://www.mql5.com/en/forum/121681) I put together the below indicator as a way of indicating the FTSE Open and Close with some vertical lines on the chart window. I was hoping that as the server time passed through 00:00, the indicator would draw in more lines for...
Hi, I wrote a code, for trial purpose, which: 1>, draw a line showing zigzag swing high/low price, 2>, and print out price of peak1, peak2, peak3 and peak4 (from right to left). The code is like: ......   for(int i=0; i<limit; i++)   {   ExtBuffer[i]=iCustom(NULL,0,"ZigZag",.....,i);   }int k=0;...
how hedging is useful manully. means what is the strategy use.
  Need help squashing a bug (12   1 2)
Hello, I have no idea what is wrong with this piece of code bellow:    bool Remainder = (MathMod(LotSize, MarketInfo(Symbol(),MODE_LOTSTEP)) > 0);  ///bug here        if(Remainder||           LotSize > MarketInfo(Symbol(),MODE_MAXLOT) ||                 LotSize < MarketInfo(Symbol(),MODE_MINLOT) ||...
I am a new trader. I didn't get trading statement for everyday. Those days I didn't get the statement, there was no trade opened or closed. Is it possible that when there is no trade open/close, there will be no statement for that day? I know how to generate history report from the platform. I'm...
  Closing out half lots. (181   1 2 3 4 5 ... 18 19)
So I managed to incorporate a loop that deletes the pending order and re-applies another one on the basis that the stop is synced with the moving average. The lots would be calculated based upon the pip distance of entry to stop. Not only this, but I have managed to work out how the profit target...
I really need to know a way to set a buy limit higher than the market peice or a sell limit lower than the market price is there any way to do so ? if there is any I would sharr with u my trades .. more than 2000 pip last month ...
I want to know how to get the closing price of 9th later bar. which function should I use?
I'm trying to get a values from different arrays in the same indicator but I already have the icustom getting values from a different indicator. I need them both.
Hello, If Math*() functions that come built-in are not enough for my purposes, are there any math libraries I could #include? Otherwise, would it be possible to obtain source code of the math.h that is used in C languages and somehow use it in mql4. Otherwise, I will have to code a few math...
Hello people, I would like to find out, how do you avoid selling low or buying high with an expert advisor, and which indicator is suitable to use in such an environment?? I ask this because I have my expert advisor, but in many instances and in volatile pairs such as XXX/YEN OR YEN/XXX i end up...
1...424425426427428429430431432433434435436437438...1250