MQL4 and MetaTrader 4 - page 434

Hi...i am new in the system... do anyone knows about KPL swing (breakout trading system)...can anyone convert this afl into mt4... //---- heikin ashi HaClose = (O+H+L+C)/4; HaOpen = AMA( Ref( HaClose, -1 ), .40); HaHigh = Max( H, Max( HaClose, HaOpen ) ); HaLow = Min( L, Min( HaClose, HaOpen ) );...
[Deleted]
Hello guys. I need help in coding my EA, so it can avoid news. I tried ti do it myself and what happens, is that the EA opens trades (inside news time), and closes them immediately. Here is the code: Externs: extern bool AvoidNews=true;extern int MinimumImpact=1;extern int...
Hy guys... There is a way to initialize an external datetime variable with the current time ?   I'm try something like this:  extern datetime fundamental = TimeCurrent();   But returns me the following error: 'TimeCurrent' - constant expected   I need to show the current time, not  1790.01.01 00:00
Hi, I am building a mql4 code where I'm trying to open EA property dialogue of a particular chart and click allowlivetrading button in a common tab. Could someone show me a specific code to do this ? I'm a pretty much newbie mql4 builder ! (Also not very familiar with Win32API either.)
Hi, I would like to have a line appear on my chart that would match a variable value so I could follow the EA visually. (MT4 please) similar to a Trailing Stop mouvement. I would also like to change the color of some lines in comments if possible. Any help or advice would be appreciated. Thanks.
Hi, guys I need to learn what is the code for set up the stop loss as MA or for example  fractals or highest or lowerst, one or them less atr example is correct this code? double MASTOP= iMA(NULL,PERIOD_M5,34,0,MODE_EMA,PRICE_CLOSE,0); double STOP=MASTOP; THEN IN THE ORDER SEND: OrderSend(Symbol()...
[Deleted]
Hi, I modified Custom Moving Average to draw in two color, but in displays a gaps when changing direction. How to fix it?
Hi Guys, I cant start this thread saying I'm a noob programmer even though I really want to because this is a silly question :) and it makes me feel like a noob lol. Coming from the C# world this is simple. I have the need to have a string array (string MyString[]) and at a certain point I want to
Hi Is there a way to color a horizontal part of the candle, i.e. different colors at different price levels with in the same candle? either in mql4 or mql5. Any idea how to by example? Thanks
[Deleted]
Hi Everyone, I'm looking please for a simple indicator/ EA able to add a sound alert (plus eventually a popup alert) when a Horizontal Line placed on a chart is being triggered at a certain price. Any suggestion, please? Thank you! Paully
Hello!  Could someone help me by saying how can I move objects without selecting them? I saw a video recently and found it very interesting, but it's been days and I still have not made any progress.  https://www.youtube.com/watch?v=4VyC1TahLRo  --->  how can you move the equal object it does at 1...
I hope you find this as amusing .. If you are looping order pool for open orders, if you count down you are reading orders most recent to oldest? Okay If you want to close all orders opened most oldest to most recent you would be counting orders up? Visually void CloseAllOrders() { bool...
  GoldWarrior02b  (423   1 2 3 4 5 ... 42 43)
GoldWarrior02b EA. M15 timeframe. 4 main pairs. -------------- GoldWarrior is very famous EA which was originally developed by 3 persons from different countries. It is really legendary development: it was started before Metatrader 4 was created, and no one believed in that time that it is possible
I'd like to store values with up to a precison of 4 decimal places.  I've investigated some of the functions available that handle precision but all of them perform rounding. Is there are way of preventing this, or a way of only rounding down? double numberTest = 1.16906;void OnStart()  {...
Dear Sirs! I would like to offer you the VPS Virtual Server rental service. Hosting VPS or Virtual Private Server allows Forex traders to use virtual space on the server of the hosting company in order to keep Expert Advisors for MetaTrader platform up and running 24 hours a day, 7 days a week. VPS
I have many grayed out items in my Market Watch due to my broker not supporting the symbol, how do I remove them? My broker uses AUDUSD-5 instead of AUDUSD for example. Thanks
Hi guys, Looked through the archives of the coding database. I am looking for a script which does the following: As soon as I open a trade and it reached X amount of profit it need to move the SL to BE immediately and automated. Is there already a script available for this matter? Kind regards, Mark
  MQL5 VPS  (1)
When using just one MT4 terminal how many accounts with MQL5 VPS servers (Using only 1 bot on each server) can I have on it?
Hola, I have some trouble finding the correct Logic. With this indicator I want to get a candle body that is X amount bigger than the previous (Works so far) and draw a line at the open price (also works). Now if the price crosses any of the lines, i would like to change its color and stop it from...
int i=0;          if( .... ) //"when new day"     {     i++;     dPriceHighAll=High[Highest(NULL, 0, MODE_HIGH,(iBarShift(NULL, 0, StrToTime(TimeToStr(dtTradeDate-(86400*i), TIME_DATE) + " " + sTimeBegin)))-(iBarShift(NULL, 0, StrToTime(TimeToStr(dtTradeDate-(86400*i), TIME_DATE) + " " + sTimeEnd)))...
Hi I draw a rectangle on the screen and want to call a function if price touch the rectangle. Is there an elegant way to do this?  if so what is it? Thanks
hi, Please help me, i have problem when i want to delete all pending order outside the range working time, my coding not work to delete pending order ,please help for this problem working timeextern   int      HourStart   = 9;   extern   int      HourEnd     = 11 //-----if(OrdersTotal()==0)...
Hi guys, Ive went through every material on error 4107 for EAs. I have this Expert that constantly returns this error, but Ive made all adjustments to prevent this - stopleve, normalize double , but still nothing. im adding the code and hope someone has ideas. thanks         double...
Hi, I'm not sure if this will work GlobalVariableSet(_ticketshort,OrderSend("XAUUSD",OP_SELL,PositionVolume,Bid,0,0,0,"",0,0,clrNONE));and later,if(OrderSelect(GlobalVariableGet(_ticketshort),SELECT_BY_TICKET)){etc..} Can I make the ticket number a GlobalVariable?
  about for()  (2)
want  value "TimeOpenFirstOrder" to use how to fix int TimeOpenFirstOrder;       for(int k=0;k<=OrdersHistoryTotal();k++)       {          if(OrderSelect(k,SELECT_BY_POS,MODE_HISTORY))          {             if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)             {...
hi all,  im new to programming and trying to modify a free  EA. what code do i need to complete the below, to show codes from https://book.mql4.com/appendix/errors  {       HandleSendError(GetLastError()); // implement this custom functon on your own.       return;    } many thanks
Hello everybody. I have a very simple piece of code that calculates candle size (current and previous). Then, based on the simple panel sample, I created a panel with 2 labels. I searched, but I was not able to find how to get the variables on the panel. I'm sure there is a way......
Can anyone help me by providing an example of how the following function is used correctly.. #import "user32.dll"   long CreateWindowEx(uint dwExStyle,uint lpClassName,uint lpWindowName,uint dwStyle,int x,int y,int nWidth,int nHeight,int hWndParent,int hMenu,int hInstance,uint lpParam);#import...
Can you include a way to pause/slowdown the backtester after it has reached a certain time or date/time? MT4 tester does not currently have ability to pick HH:mm time of day to start backtest.  So you always have to start at the beginning of the day, even if what you need to obverse is near the end...
Hi, I'm trying to open a buy and a sell order then delete them if they don't open in 40 seconds. The loop is decrementing, but only the sell stop order deletes. I can't figure out what I'm doing wrong. Here's my code: double sell_ticket;   double buy_ticket;      int TotalNumberOrders =...