MQL4 and MetaTrader 4 - page 659

To post a new topic, please log in or register
I am running my own ea (which is .mp4 not .ex4) on couple charts. But every time I open strategy tester, the settings I set on every single chart go back to original setting. That makes me have to reset all of them again. That is painful!!! Any ideas to deal with my situation that will help me a lot...
Hi, I wrote a little M1-indicatior (here simplified): int start()   {  int limit,i, n=0, b=-1;  static datetime lstQts=0;   //---- last counted bar will be recounted   int counted_bars=IndicatorCounted();   if (counted_bars>0) counted_bars--;   if (TimeCurrent() - lstQts > 60) { // more than 60 sec...
hello everyone, I face another problem with Fractals, I want to draw support and resistance lines on fractals lower and upper levels, however.. it draws only when candle opens up.. and then price changes. Any chance to figure out how to draw on high and low prices of a fractal candle? Thanks...
MODIFIED AND MADE SOME CORRECTION, MAY BE YOU LIKE IT AND CAN HELP YOU, ALSO YOU NEED TO USE MA, BOILINGER BAND, ETC
Hi, I'm beginning to focus EA .. If I run my EA, you run the code in the function start ()? how often the program runs?
//execute alerts/trades on breakdouble tlprice=ObjectGetValueByShift("name", 0);double pricebreak = High[0];double pricelow = Low[1];if(pricebreak > tlprice && pricelow < tlprice){//Alert(Symbol(), " Long Breakout");OrderSend(Symbol(),OP_BUY,.10,Ask,30,Ask-250*Point,Ask+500*Point,"My order #2",777,0...
Hi, Does anyone have a Heiken Ashi (Not smoothed) EA they are willing to share? If anyone does, many - many - thanks. DaveFx
Hello there, I have another weird issue with MT4 b432. I have allowed dll calls but the platform keeps on telling me that "Dll calls are not allowed". Has anyone experienced the same problem? Any clues? Is there any "security mode" that disallows Dll calls no matter what? Thanks in advance.
Hello I need to know 'Are there Forex companies Allow hard and fast scalping with takeprofit 1 pip and spread 1 pip? Can someone earn money with EA open and close trades in just 2 or 3 seconds? Thanks
for(int i = 0 ; i < MACDLevel ; i ++)     {       if(iMACD(Symbol(), MathPow( 2, i) , 2, 4, 1, PRICE_CLOSE, MODE_MAIN, 0) <           iMACD(Symbol(), MathPow( 2, i), 2, 4, 1, PRICE_CLOSE, MODE_MAIN, 1) )         {           SellIndex += iMACD(Symbol(), MathPow( 2, i), 2, 4, 1, PRICE_CLOSE,...
//+------------------------------------------------------------------+ //| VoulumEa.mq4 | //| | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "" #property link "http://www.metaquotes.net"...
I've an ea using "buy and sell stop method" I think it's interesting. It works well to enter buy and sell order. but it does not take profits. i need a help to fix it by someone. I hope everybody to be happy in advance. I attach this ea as a text.
Hi all, In my EA I would to calculate fıbo levels automatıcly. I wrote the code below and altough I search a lot I coundn't fınd out how to determıne if it is a down trend or up trend. I appriciate if someone can help me regarding this. Thanks in advance. (I wrote "low bar is earlier" refers to the...
  set file (1)
Is there a way so that the specific set file name is displayed as a comment on charts that were optimised?
Hi, I want to import some functions from a dll. Therefore I had to include some *.h files. Is this possible, or do I have to write *.mqh instead of *.h? The dll if for a c-programming language. And there are functions with pointers and structs as datatyps. Is it possible to use that with mql4??
I am using a template with a large number of indicators. I notice that the indicators at the end of the list do not have their values shown in the data window in MT4. I have to delete indicators from the template in order to show the values for all indicators in the data window! Is there some...
Hello, It's a question about this forum. It seems that I am not aware when there are new answers on topics I have subscribe. Is my mistake ? Regards, Pierre8r
Hi, I’m new to mql4and new to programming. I was hopping, someone could help me with this littleproblem I encountered. I need an EA to determine bar shift since the last closed order. This is what I came up with … int BarsSinceLastOrder()   {   if(OrdersHistoryTotal()<1)      {      int...
Hi, I am trying to devveop a back test that trades at a specifictime of the day. I have downloaded and created tick data as per previous posts(many thanks) and am getting totally confusing results. I can only conclude it is my lack ofunderstanding of how time functions operate. Can someone point...
Hi, I am currently rewriting one of EAs, and I do lot of backtesting using internal MT4 tester. The problem is that I am using time functions to limit trading time to periods that I feel are good for trading, but while testing it seems that MT4 is using current time, and not time in past data? Any...
I'm new to this and I don't see what I'm doing wrong, When I run it it just keeps making trades. I want it to work just at the close of the bar, but its making a trade every tick. My code is double FastMA = iMA(NULL,0,5,0,MODE_SMA,PRICE_MEDIAN,0); double PrevFastMA = iMA(NULL,0,5,0,MODE_SMA...
Hello all. With VWAP reversion mentioned in more and more financial blogs/publications I was curious if anyone has made/knows of an EA that trades based off of a VWAP indicator. I did a search and came up with very little. I know that the guys at Dailyfx made one for marketscope.. It paints 3...
Hi all, I have download Meta trader 4 demo but in the items I can't found Ibex35 simbols. Please, Can you help me to can use spanish items?¿ Best regards
Say from the history data to excel ranging from one date to current period - basically a range of data showing opening, high, low, closing, volume of the currency selected. - to update excel every 5 mins a new set of data comes, considering I am looking AUDUSD 5min chart. There was an earlier...
I want to record spread,and input them to mysql,so I can do some statistics.The following is my code,but my problem is every time the new content will remove old content.So can someone tell me how to write new content without remove old content? Thank you very much! int start(){ int    handle;...
  Blank Screen (7)
Help!! When I pull up my EUR/USD chart no candles on 5m 15m 1h. I tried downloading new history in history center and it is still the same
Hello guys. I wanted to understand why I get different results using a multi timeframe indicator code to develop an EA. Basically I have written a quite simple code to check the Parabolic Sar over three different timeframes. The indicator seems to work fine in accordance with the logic, instead when...
Hi, all. Firstly, I am sorry with my poor English. I have created an EA that open many orders on many currency pairs. When the total profit of all orders (in $) have reached the defined profit, the EA will closing all orders one by one. But this execution sequence takes more times and sometime...
Hi, I want to check open orders (market) orders for special number in OrderComment. If order with same comment exsist do not open another order. Problem is that somethimes it duplicate order. Can you check for errors, please? int countbuy = 0;    for (int i=OrdersTotal()-1; i >= 0; i--)    if...
Hi All, I am looking for for help to see if this scenerio can be achieved in an ExpertAdvisor : 1. I have a text file(input_to_MT4.CSV) lets say: BUY,EURUSD,1.0,MAGICNUMBER001 //{Action,symbol,lot,orderIdentifier} 2. The ExpertAdvisor should: Loop { A. Read the File...