Download MetaTrader 5

MQL4 and MetaTrader 4 - page 819

To post a new topic, please log in or register
Hello, I programmed a custom indicator int start()  {   int    limit;   int    counted_bars=IndicatorCounted();    //---- check for possible errors   if(counted_bars<0) return(-1);   //---- last counted bar will be recounted   if(counted_bars>0) counted_bars--;   limit=Bars-counted_bars;...
Hi, I have a few questions: 1. FileOpen can only open files in the terminal_directory\experts\files folder Is there any possibility, that I can open files directly from Drive C:\ or D:\ . 2. I want to read-only the same CSV-file with many differents metatrader accounts at the same time. Is this...
Have you ever been frstrated from trying to establish a trading trigger and for some reason, it still seems to break through and place a bad trade? I wanted to take few moments and offer you this little tidbit I have come to develop an understanding about. As I am sure you know, this trading...
hello every one.. i have this indicator, but don't know to input it to ea.. this is my indicator code: extern int period = 15; extern int method = 1; extern int price = 0; double g_ibuf_88[]; double g_ibuf_92[]; double g_ibuf_96[]; int init() { IndicatorBuffers(3); SetIndexBuffer(0,...
So, i just found some possible issues with the function OrderClose :  I placed an order with this line of code : ticket = OrderSend(Symbol(),OP_BUY,1.6,Ask,10,0,0,DoubleToStr(1.6,5),MAGIC,0,CLR_NONE); Next i closed partially this order : OrderClose(ticket,0.5,Bid,10,CLR_NONE); Firstly, i verified...
Hello, I am searching for an EA which is a trend follower. The EA should detect the last high and low and then start to detect every new high and low. In the case of an up trend: Every new relative low has to be higher than the last low > then the up trend is intact and the stoploss for my running...
One machine run one EA in multiple currency seems slow. i would like use multiple machine running it. it works? actually i haven't test environment . Thanks xinfang
Hello, Im running a robot that I develop that gives good results, but im testing it on two PCs, that is two separated PCs with demo accounts, for some reason i dont understand, the trading system will follow the same strategies that i outline working OK, but sometimes the demos on each PC will do...
I am using NST 5.5, Can I set backtesting and predicting days by myself? The start date was set automatically. I want fixed start date that I set. I cannot find any help about it. Thanks
I am interested in using my EAs in a signal provider situation. I have looked into Rent a Signal, but does anyone else have any suggestions on who I could look into?
https://www.mql5.com/go?link=http://www.mt4i.com/users/d03198933/stats if anyone has a forward test please post it. Please don't hesitate to email me if you like what you see, I am willing to sell, trade, and accept investors on my live account. Thanks. Subgenius at inbox dot com
Dear Friends, What is the function of Magic Number parameter on OrderSend function ? OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)...
Hello to all, I have found a EA which closely covers a system which I have been kicking around. By no means do I wish to copy without permission. But if this EA is listed in the Code Base on this site, is it permisible to do so? I have worked with it and have found that although it does compile, it...
Hello. I wonder if anyone can help me with the creation of a Trailing stop EA based on % instead of pips. The idea is that the trailing stop starts to modificate price after "x" number of pips by an "Y" percentage. This a way I use to trade explosive breakouts, but ints kinda of slow to...
I recently made my first EA by copying and pasting parts of a training EA from an MQL4 COURSE By Coders’ guru. Through trial and error, I finally got the code right and was able to perform a strategy tester in which trades triggered as desired. Unfortunately, the EA only initiates a trade if there...
what is the procedure do I open a demo account on my netbook then enter my live account details ?
Hello, I'm looking for Trailing Stop for MQL5. I have one but It is not working. Thanks FXMan77 input int Inp_Trailing_FixedPips_StopLevel =3000; // Trailing::FixedPips::StopLevel input int Inp_Trailing_FixedPips_ProfitLevel=30; // Trailing::FixedPips::ProfitLevel...
Hi everybody, I was trying to calculate a simple average of 3 periods of Awesome indicator, but it's never appears on the screen. I don' t know why it's happening. Here it is: //+------------------------------------------------------------------+//|...
I have a stockastic set up on my charts with an 80 on the top line and 20 on the bottom line . My problem is that the indicator lines do not show above the 80 line nor do they show below the 20 line.....each are cut off so you see nothing above the 80 or nothing below the 20. Any help is appreciated...
Hello, With do respect to all. Last few month, I try to create php code to convert mq4 to ex4. So I just wanna share what I've found. Php Code $directory = ""; // Directory to put ex4 if(!is_dir($directory)) { mkdir ($directory, 0777); } // Code to create mq4 file....
i want to get the close price on 2009.01.01 (jan. 1) 3:55 . but i do not familiar with time funcution and cannot calculate the shift,anyone would help me ? thanks. iClose( "EURUSD",PERIOD_M1, shift)
i test ordersend function on an ECN plateform,nomatter which price i set,it always been excuted . i want to know why ? thanks. my code as follow : int start() { OrderSend(Symbol(),OP_BUY,0.1,Ask-0.00005,0,0,0,"",0,0,Green); return(0); }
Back testing in "every tick" mode is extremely slow if the EA calls a bunch of different iCustom() functions. I have been trying to figure out a way to reduce the number of calculations without sacrificing precision. So far I have only been able to come up with one method: This works for EAs that...
  Highest High (2)
int     M1BarShiftOfTradeOpen     = iBarShift     (symbol, PERIOD_M1, Order_Open_Time, false                       );     int     IndexOfHigh               = iHighest      (symbol, PERIOD_M1, MODE_HIGH      , M1BarShiftOfTradeOpen + 1, 0);    double  HighestValue              = iHigh...
Hello, lets do this: I am new to MQL and want to make a simple indicator. Just draw an arrow over a Candle which mathAbs(Open - Close )>0.70 ... This is in USD / JPY This is what I have and doesnt work:...
Hi there, How could I draw a vertical line but keeps its position *related to* the screen? So when dragging the candle lines this special line won't get moved and will stay at it's original drawn position. Thanks.
I really want to find out if i can trade based on whether 4 other ea's are currently in trade. Is there a way to access the order status of multiple ea's and trigger a trade based on that? I was thinking that OrderSelect could access other ea's trade status, but I am not sure. Thank you very much in...
  error 4051 (2)
I’m trying to write an ea based on a change in direction of the Awesome Oscillator. I am using the “MACD Sample” ea that is comes with the MT4 platform and changing the indicators from MACD to iAO. When I back-test it fails to trade and gives the error as 4051 ERR_INVALID_FUNCTION_PARAMETER_VALUE...
hi topic title says it all. i want to place a new order once a previous order reaches +10 pips. heres what ive got so far: if(2>1)      {         ticket_11=OrderSend(Symbol(),OP_BUY,Lots1,Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,"comment",10001,0,Green);...
Hi, I try to compile a mq4 script, it finishes with zero errors, but i get no final "verify" button on any toolbar, so executable is not created. Maybe i miss where to look? Please help? Thank you.
1...812813814815816817818819820821822823824825826...1250