MQL4 and MetaTrader 4 - page 510

  OrderSend Problem  (11   1 2)
hey i am a rookie in programming, i have the following problem: Compiler says: 'OrderSend' - declaration without type What i should do? Code: // BUY ORDER DEFINITION OrderSend(Symbol(),OP_BUY,LotSize,Ask,Slippage,BuyStopLoss,BuyTakeProfit,"Buy Order",MagicNumber,0,Green);   // Sell...
Axctually I am a amateur in expert programming, I have a so many errors after compiling  (9errors) and that expert in MT4 after compiling not loading . somebody can help me? The indicator using for expert is "solar wind joy :)"
Dose anyone know what the input 'slippage' means for the order in the function OrderSend()? It is an integer, but in the MQL4 Reference, it says : "If the requested price is out of date, but present in the thread, the order will be opened at the current price and only if the current price lies...
Halo fellow coder, I'm trying to use function call DoubleToStr(f0_8(), 0) in this way for my chartinfo panelbut the function is not working. This code only showing "Total Orders = 0 ". The function value is freeze.Any other way that can works perfectly  with applying font, color and position of the...
In other platforms, there is an eaasy way to calculate time remianinig till market close , or time passed after market_open... how to do with mql4
Hi friends, I'm going to create a function to put some values in 6 different arrays simultaneously. I want to know whether it is possible to use a loop to get the name of the array and put the name of the mentioned array as the function parameter and make change in it and then again by using the...
  OBVIOUS BUG  (9)
I use the simple code: #property indicator_chart_window #property indicator_buffers 1 double test[]; int OnInit(){   SetIndexBuffer(0, test,INDICATOR_DATA);   return(INIT_SUCCEEDED); } int DaysGone = 0; int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const...
Hello, i looked for an answer in previous topic but i didn't find it. Is it possibile in mql4, with a command line in an expert advisor, toggle the Automated Trading (like Ctrl + E) ? Thanks in advance
Hi all, I have a function to store some daily data and this need to be refresh once a new day starts. My EA is put on 1H chart How to go about doing so? Thanks
I am not a advanced programmer, but I have written an EA that I use to open trades for me automatically when an anti-trendline is broken in a certain way. The problem is I cannot test this EA in the Strategy Tester since it requires human intervention to draw this anti-trendline and then put the...
  Ichimoku  (9)
Hi,  I am creating this EA, will open an order when the two lines cross SenkouSpan A and SenkouSpan B.The problem is that it does not open when I cross 26 times forward.It opens the position when the crossing is above or below the y-axis of the current price.place the code maybe someone can help me...
It is so hard to code to make the line (i.e. MyBuffer1) to have different colors while some conditions change... How to do that? Is there any update?
i downloaded an indicator that on a demo made 140% in one day, this is the best indicator i know, but because it is a demo version it stop working and now it is lagging 6 bars with the yellow star signal, can anyone fix the code. thank you.
Hello everyone, I am experiencing problems applying variables "points" and "Spread" to a decimal values. What does the value shown in points mean? How do I get Spread to show only 2 places after the decimal point?     I have attached the values that I received while I was debugging the code. void...
hi,friends: I download an indicator,when it works for a period of time,it will have a rest or not work at all .when reload it or turn the chart from m5 to m1,it works well again,the sign appears!! it is very strange, may you help me solve it ? thanks #property indicator_chart_window #property...
When I call ChartReDraw() on a chart, it increase my memory usage 5.5MB. If I have 10 charts, then it is 55MB. ChartReDraw() is also called by CCanvas::Update(). So if you have a CCanvas Object, then you just waste 5.5MB on nothing. WindowReDraw() does not increase memory usage. Is it memory leak?
Hi, is it possible to make script currency converter what i can change as i want like making 100$ into 1 somthing or opposite, so i can moddify values myselfand it shows it on open chart
[Deleted]
Hi there example like picture below,does anyone have or can create indicator something like this idea.It will calculate every pip either positive pip or negative pip we gain while trading ( US dollar) to any currency.We can adjust the currency rate in that indicator.The rate you can get from XE -...
I downloaded tick data from true fx , how do i impor them to tick data suite The only option i found is importing from dukascopy
Hi, Using GBP/CHF, I have an EA that created a buy stop order: 2017.02.03 11AM , Price 1.24673, SL 1.24354, TP: 1.24873 At 2017.02.03 11.14, the buy order was executed. but when I look at the past chart, the price did not go up to 1.24673 at 11.14. Any idea?
When "Show object descriptions"==True then descriptions of all Lines, Channels, Gann, Fibonacci and Shapes are shown, but not for any of the arrows. Is it something usual or am i doing something wrong?
I am interested, I import custom indi - https://pastebin.com/raw/wB52rc5c then in another indi i call it with iCustom(NULL,0, "MyIndi1", 2.0, 2.0, "day", 0, 0); and mt4 becomes spoilt and int needs full uninstall to make it working again.. * P.S. here , in this article, in the example code given
I have an EA that worked perfectly in the Strategy Tester before but suddenly stopped working in MT4 the last few days. There were NO changes made! It still works in demo or live mode. Has there been any changes to the Strategy Tester lately?
Hi all I want to make a custom indicator which detects the pressing down of multiple keys. I have looked around and think you need to download user32.dll. But I haven't found anything which was particularly helpful in how to use it :S. I would need some code like: if(CTRL + TAB) { Alert("CTRL + TAB...
  Object Problem  (2)
Hi there, I´m just getting insane of it... ObjectCreate(NULL,"Put",OBJ_TEXT,0,iTime(NULL,0,1),iClose(NULL,0,1),0,0,0,0); ObjectSetText("Put","US",0,NULL,clrNONE);          string test1 = ObjectGet("Put",OBJPROP_TIME1);    Alert(test1);    string test2 = ObjectGet("Put",OBJPROP_PRICE1);...
[Deleted]
We struggle, we write strategies, and virtually any expert is capable of generating profits with certain parameters on the final trading interval. Meanwhile, relatively little attention is paid to the selection of parameters. Frankly speaking, I got interested in this topic at because of another
In one of my indicator, i calculate values... double a = 0.005403564271234229; double b = 0.005490378598028686; MyBuffer1[i] = a/b;   // <---- If i execute this line,  whole  indicator stops functioning completely on chart MyBuffer1[i] = NormalizeDouble(a,10) / NormalizeDouble(b,10) ;    // <----...
  Forecasting  (109   1 2 3 4 5 ... 10 11)
This topic can look at algorithms and forecasting methods
Hi, is there a way to get a return value (other than 0, 0 could be a value of the indicator), if the file does not exist, if I call the file with iCustom? double val=iCustom(NULL,0,"SampleInddoesnotexist",13,1,0); Warm Regards Burkhard
Hi folks, for some kind of backtesting I would like to know, if it is possible to get the price for a certain past time, including the seconds. For example I took a trade at 4:35:42 with 5 minutes expiry on BO I would like to know the price of 4:40:42. So not the close or open, but the correct price...