MQL4 and MetaTrader 4 - page 791

[Deleted]
Because I am still a little new to building with the Indicator code, I have some confusion on the shift format. I know that the i for bar code can be used in EA'S also, but needs to be for the placement of the indicator. I have put in a couple example to more easily explain my problem or...
I've been running back-tests some instruments and I decided to test my EA against volatile instruments, I started with what I thought was volatile e.g XAUUSD then I moved on to instruments I had never traded on before, these instruments turned out to be very volatile but the volatility differed and...
The easiest way for an EA to get information either from another chart or from the previous start was to use GlobalVariables. But they only exists and can take and provide doulbes: 8 byte. If you now want to save a long (int) 8 byte too variable its typ is casted and it may lose its exact value - so...
At the moment only one terminal b625 is running, 4 charts are open and no EA is applied!! Now I started my script in debug-mode: line by line. It shall start my test_EA to check how I can set and get the chart comment - an all of a sudden I there was a sell-limit order opened. The account is not
[Deleted]
My MT4 recently crashed while reorganizing profiles. From then on it keeps crashing on startup. Clean reinstall did not help (after uninstalling manually deleted installation folder in Program Files, Roaming/MetaQuotes, Virtualfolder, registry) resolve the issue. Looking at the crash log it looks...
http://gyazo.com/072bdf956466352aacf6478805a4389c Hi, I have a paid signals and I can not copy them to my metetrader 4. How do I have to do?
Dear All, here is a suggestion how one can call a MetaTraderScript from Excel VBA. Unfortunately the code doesnot compile any more with the Build 600. Is there a possibility to call the MTScript (build higher than 600) from Excel VBA? Thank you very much!
Hi everybody, I am looking for a script to enter a limit order in opposite directions right after I open a position or ea to reverse position right after the sl has been reached. Basically what I want it to do is: long x/y pair at 1.0000 with a sl at 0.9970 and tp at 1.0030. If the sl is triggered...
string Section="Trading";  string Key = "Slippage";  string DefaultValue="NotFound!";  string FileName = "c:\\Temp\\Trading\\settings.ini";  ushort buffer[4096];  uint read = GetPrivateProfileStringW(Section, Key, DefaultValue, buffer, ArraySize(buffer), FileName);  string str_res =...
Hi,Can somebody help me in prinitng the lines on last 50 bar??
It seems DRAW_COLORCANDLE available in build 600,but it is does not work in fact. When creates an indicator in Build600 as below: It looks like MT5 wizard including many Color XXX types. There are only Line,Histogram,Arror,Section in Build 610 as below: Will these Color XXX types be added in...
I have always installed MT4 509 and below in ( C:/ MetaTrader-Broker ) to avoid issues with UAC in windows 7, Does the MT4600++ cause UAC issues if it is installed in Program files ? Thanks
[Deleted]
Hello would anyone be willing to code an acceleration option to the ADX indicator where either of the three lines (adx,di+,di-) would turn a certain color after a closed candle- if line increases by x(%) based on (y) so many previous bars i think it would be a great addition for trading thanks
[Deleted]
This example not works... https://docs.mql4.com/en/constants/environment_state/accountinformation#enum_account_info_integer
here is a sample indicator. you can see that ++ does not work. the buffer should rise one integer for every bar over time.
[Deleted]
Hi, I'm wondering if somebody could share to me how can I put sell stop or buy stop orders just one click. Using the mt4 standard menu is time consuming. The program would be nice to include the parameters to set the stop lost, take profit, and which market you want to trade. Appreciate for your...
I have been trying a Logic to work. After starting, at the first Tick, the EA will execute 'One Set of Logic'. Then from the 'Second' Tick, it'll keep executing another 'Set of Logic'. To do so I tried something like this: int main(){int Choose_Logic;Choose_Logic=TRUE;if(Choose_Logic==TRUE){Execute...
Got into a bit of a game here, there's lots of moose. Who can tell me how to break it up ? Are there tactics
help me please i want to calculate all profit in order and if all position totalprofit all posotion >= 10 close; bool   result;   double price,OrderProfitCash,OrderProfitPoint,RealProfit;   int    cmd,error;   int    TradeTick;   double TimeOut;   for(TradeTick=OrdersTotal()-1; TradeTick > 0;...
example; Color getcol = White; ???? getPeriod = OBJ_PERIOD_M5; Thank you
  Multi-currency backtesting  (18   1 2)
I had read that multi-currency back-testing was not possible on MT4 so I tried to translate my currency to mql5, it was an interesting process however, mid way I found out that hedging was not allowed due to some sort of NFA change in regulations, I'm in the UK so this doesn't really apply to me and...
Hi,my EA stops after 2014.03.25 12:04:50.800 Access violation read to 0x0ABB5000 in 'C:\Users\cas\Documents\MT4\mt1\MQL4\Experts\myEA.ex4' This EA is installed by a script 8 times. 7 time without any problem but the last crashes with the a.m. error (no line??) It reads it parameters from an...
Alert(SymbolInfoString("EURUSD", SYMBOL_PATH)); I expected this return "MajorFX" folder but it returns a blank string. Same for all symbols.
Dear Community, how can I get the value ofthe last line in the CSV file? I have tried to write this code, but it returnsme not the correct value. I have found some older post in the forum, but they don’thelp me. Thank you very much!    int file_handle2=FileOpen(InpDirectoryName+"//"+FileName...
I decided to test my EA against some indexes and I noticed the movements were quite strong when compared with currencies. One notably volatile index is Nikkei, the market itself was relentlessly choppy and each movement had a sizable effect on capital. Is this typical of the index are is this a data...
[Deleted]
i need help for extract my archives logs from my iPhone 5 i dont know how to make it can you help me? thanks
Hello, Would like to know is it possible to make custom indicator based on these calculations: Buf_0[i]=(((iADX("EURUSD",PERIOD_M1,28,PRICE_CLOSE,MODE_PLUSDI,(i-5)))-(iADX("EURUSD",PERIOD_M1,28,PRICE_CLOSE,MODE_MINUSDI,(i-5))))-((iADX("EURUSD",PERIOD_M1,28,PRICE_CLOSE,MODE_PLUSDI,i))-(iADX("EURUSD"...
I've read several threads re: OrderCloseBy and I'm sorry to be thick about this but I still don't get it. And I have found the documentation to be no help beyond syntax. - forex.com at least, does not allow "hedging", opposite positions for the same pair in the same account. If they see both, they...
[Deleted]
Hi, Today i opened my MT4 platforms and i'm getting this pop up alert that says "Unable to open log file" How do i fix this? Thanks!
Hi to all. I am a newbie to this forum. But have been stumbling through trading since 2007. I have had a few ea's programmed for me in the past and have made a few simple ones myself. I've had a go at combining elements and the ea's have worked in the past. I have been trading my strategy on 4...