MQL4 and MetaTrader 4 - page 460

To post a new topic, please log in or register
does anyone have pivot point indicators for quarterly and half yearly levels or can any programmer modify yearly pivot to quarterly and half yearly pivot dividing the year into four quarters the first begin at january and february and march and the second quarter include april and may and june and...
How can i get the index of a past candle -> iHigh(NULL, PERIOD_M1, index) -> if i only know the starttime of that candle?
I want Code .mq4 find total OrderProfit for Buy or sell Please help me...... EX:
Hello, I have made this program, but somehow I can't see my orders being executed, nor the alerts being triggered when the price has moved by 10 pips : int init()  {   return(0);  }  int deinit()  {   return(0);  }  double orderStartPrice = 0;double takeProfit = 0.001;double stopLoss = 0.001;bool...
Good Morning, Wondering if someone can help me out. I have been using the very useful attached script in my trading. I would really like for a few key actions to be added to it if someone with coding skills wouldn't mind? 1. I would like the pending orders to expire after a chosen period. This...
  help me with the code (44   1 2 3 4 5)
.
After 14 trades, the report says the Maximal Drawdown was 1942.60 (see attached file). However, based on the balances, I calculate only $1069.50. Can someone explain how the 1942.60 was calculated? I've already read and looked up the definition for maximal drawdown on a number of sites. What am I...
I'm planning to do a buy script for currency pairs which can set a SL and TP level FROM THE ENTRY PRICE which WORKS WITH 2,3,4,5 digits broker . Can someone help me to double check it, the SL and TP are not working . The way I do it was execute a trade FIRST, then only it will modify to add in the...
Please help me to understand why this is happening ? <TICKER>,<PER>,<DATE>,<TIME>,<OPEN>,<HIGH>,<LOW>,<CLOSE> USDJPY,1,20140121,101200,104.5350000,104.5470000,104.5000000,104.5400000 USDJPY,1,20140121,101300,104.5300000,104.5430000,104.4700000,104.4900000 USDJPY,1,20140121,101400,104.5060000,104...
Am using indicator buffer, which am not using for drawing graphs. I observed that one the indicator buffer is given a value, it cannot be over written. So in a for-next loop, even if I try to change the value, it is not changing Is there a way to force the indicator buffer to accept the new value in...
Hello, have an Expert Advisor and can't touch to chart. No error, no message, nothing. (Experts allowed -> others work). When i open the Editor and try to compile it, i get the message : "cannot open the output expert file ". Anyone knows what's going on ? Thank you
#property copyright "Copyright 2013, B.Y"#property link      "Boaz@UTrade.co.il"#property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Red//---- input parametersextern int       period = 26;extern int       histper = 26;double VID[];double...
the codes are as below: if(OrderSelect(OrdersTotal()-1,SELECT_BY_POS)){ if(OrderSelect(0,SELECT_BY_POS));     if( 2*Stop_Loss > OrderOpenPrice()+ Bid )..............} In the sentence "if(OrderSelect(0,SELECT_BY_POS));" above the codes, that the semicolon--";" is delete or not is obvious different...
Hello, I am having some EA's programmed that place orders on the brokers trading platform. After being stopped out the EA needs to place more orders. In other words it is designed to manage the current position and if stopped out it should re enter based on certain criteria. It seems that when I get...
Hi, may be s.o. here knows an intelligent way that an EA slows down its speed in the strategy tester. I know you can slow down the execution speed manually by the sliding bar beside the 'Visual mode' - but I want the EA to do this by it self!! (Why do I have a computer and a program if I have to do...
Sorry, for this possibly stupid question ... But as I am trading binary options sometimes, I really could use a candle clock timer, which shows the remaining time of a 15 minute candle in a 5 minute chart window ... I have tried modifying some existing indicators I have found on the net, but I...
I wanted to test out a simple closing condition if(accountbalance()<accountequity()) (then I use the close trade close after order select ect, I also used the for loop counting down) I used a guaranteed calling condition, if(60==60) because I am calling the function which contains the if statement...
We have had a problem now a couple of times where the MetaTrader 4 platform has reset after the laptop has restarted. We have now turned off automatic updates on Windows, etc, but the recent shut down occurred after a optimisation had run for six days and the laptop restarted, possibly due to heat,...
New article Creating Non-Lagging Digital Filters has been published at mql5.com: The article describes one of the approaches to determining a useful signal (trend) in stream data. Small filtering (smoothing) tests applied to market quotes demonstrate the potential for creating non-lagging digital...
Hi All, I have created a custom indicator. It has 5 indicator buffers But am seeing only the one indicator buffer in data window, which has index of 0 I want to see all the indicators in the Data Window. How to do that? Thanks Tahseen
Hi, I am trying to include a money management function in an EA (actuallly it shouldn't be called MM, as it should only calculates how many lots can I buy so that when I hit my stop loss I only loss a certain percentage of my account). I created the EA with a code generator, I`m not a programmer,...
I need to bypass the firewall restrictions at work. I've used a broker that uses "HTTP tunneling" that, in many cases, will bypass firewall or router restrictions. Is this an option in MT4? If not, what are my options? Thanks for your help . . .
I modified Heiken Ashi to be Yearly Candlestick Chart. But it use Histogram to draw the candles. I want to draw the candle like the real one candle ( not use histogram ), is there any way to do that ? Here I attach the indicator and the image.
When importing minute data into the strategy tester, there is a "SHIFT" factor option. What does this do? I'm importing Data from a broker who uses GMT time data... Daily open/close time... and my broker time is GMT +2 Can I set this "Shift" factor to "2" to have the strategy tester convert...
Hi I am wondering what is going on with my TP level with this ea I'm programming it returns me a tp error on the ordermodify sequence here is the code double takeprofit = 25;double stoploss = 50;double sl;double sldistance;double tp;double tpdistance; // within init      if(Digits==5)...
Good aftenoon, for cortesy help me convert file ELD TTRADESTATIO to EA MQL4 Thanks Cordially LORENZO
hi, i want to learn the construction of MetaTrader software. As i am newbie to computer programmes, please suggest me some easy language tutorials to follow so that i can understand the working of the software. thank for your time.
Hi Guys Is there any MQL code that i understand last trade is close by TP. I wrote below code but it is not work.Because sometime ClosePrice=TakePrice is not True. I attach picture that u understand that ClosePrice=TakePrice is not always true. How can i solve this problem. double GetLastTrade()...
Hi there, Firstly, thank you clicking on my post! I've previously tried my hands on writing Indicators (good enough for personal use, despite having no prior training in programming) but, please, assume that I have zero knowledge about programming when answering my queries. I'd like to get started...
hi, I have the problem...when i excute the EA. appear the error " ERROR: code=4059 - function is not allowed in testing mode" double StopLoss=500;double pips = 0.00001;extern double TakeProfit=1000;TicketNumber=OrderSend( Symbol(), OP_BUY, LotSize, Ask, 3, Ask-(StopLoss*pips), Ask+(TakeProfit*pips),...