MQL4 and MetaTrader 4 - page 1406

so if you have made a custom indicator, and at the end of your code file you have . . . Buffer[i] = something; } return(0); } But instead of applying this Buffer[i] on price bars, you want to calculate it on the values of a different iCustom indicator. How would you do that? Other_Buffer =...
What I am attempting to do is to take the current stop loss value calculate a percentage like 5% against it to get the pinch of increase I want to apply to the current stop loss to set my next target stop loss in a trailing stop loss. Formula: NewStopLoss = CurrentStopLoss * 0.05 +...
[Deleted]
Hy every clever people of this forum, I'm new. I've a strange behaviour of the programm in my EA. I want launch an order by Ordersend function, when "isCrossed" mets the conditions (1 or 2). But when I activate my EA only first case (in this example case 2) is running. In other words if I change my...
[Deleted]
I've noticed IsTradeContextBusy() one of the most commonly used functions is now no more in MQL5. Is there a new way to test if the expert advisor can execute an order or not? There are also other depreciated functions that do not have MQL5 equivalents. Those are: int ArrayDimension() int...
Is there any tools help to transform mql4 to mql5?
  GOOD EAs ARE PRICELESS!  (15   1 2)
A PROFIT-MAKING/PROFIT ORIENTED STABLE EA IS NOT QUANTIFIABLE IN PRICE!
[Deleted]
Hi everybody, Maybe I'm blind but I can't find out how to change on object's name... Please let know! Thanks in advance. Dring.
hi community! can anyone help me with this error? i close an order with "orderclose", it works without any problems, on the same bar an new order is opened, also o.k., and then the EA tries to close the the same order again, it was closed before. of course now with the error output "unknown ticket"...
  MQL5...  (1)
Dear Mr. Stringo: I used your ChartInChart.mq5 as an example for testing and evaluating my own EA in MQL5 platform called Trading.mq5 and advanced very well sofar. However I apply many EDIT Objects in an EURUSD-Chart and need to set data into those Edit Objects by means of a Button function on...
It's a simple EA code that brings this error ( '\end_of_program'-unbalance left parenthesis) at copilation) in line(136,4).I have try to check out for this error but I can't find ANY.Pls I need some help,I'm A newbie!I have attached the EA to this text
I'm trying to export each final formed bar on the M1 period so I developed this script void start() { int i = 1; datetime current; string st, fn=Symbol()+"current.csv"; current = iTime( "EURUSD", PERIOD_M1, 1); while(i == 1) { if( TimeMinute(current) < TimeMinute(iTime( "EURUSD", PERIOD_M1, 0))) {
Hi, Using period_converter script I am able to create charts with non standard timecompression. Is there an easy or not so easy way to perform backtesting of suchnon standard time frames? Regards, Michal
[Deleted]
I need to add an indicator to an EA... I need a 3 EMA but I need to apply it to an MACD ! First is this possible? Second how do you do this? Thanks for the help
[Deleted]
Hi all how is it going? I have a script here I need help with what I want addid is a trailing stop input, and a input to lock in pips For example lets say I open a trade and go long and my take profit is 50 pips and my trailing stop is 20, and lets say the market reverses on me before the trailing...
[Deleted]
Hi, I am new to MT4 and just come across about the EA. Can someone advise to me where and how to select the time frame to test on the EA. Thank
[Deleted]
Using the iMA function I can get values for various period MAs just fine. The problem is that they don't match with what the value is on the chart when moused over. What I need are the values as displayed. Here's what I get--- (USDJPY) double fast_1=iMA(Symbol(),0,MA_Fast,10,MODE_SMA,PRICE_CLOSE...
  VOLUME CONFUSION  (1)
I have problem understanding the concept volume,there are like three definition i 've seen so far .I don't understand if volume represnt any of these definition:1 amount of ticks in a given time period (2)amount of contract transaction in given time period 3)amount of lot in a given transaction,...
[Deleted]
Hi, I was wondering if anyone knew of an indicator that placed the bar range (High and Low) of each candle for different time frames one top of the candle. Alternatively, anyone fancy writing one for me. You would save me from a lot of frustrations. Thanks
[Deleted]
  itime problem  (7)
Hi All i read in Forum for functions of iTime() and did not find what is needed. if somebody can help i have the EA starts the trade on opening of each Bar, 4Hour chart, 00:00, 04:00,............... i want to open trade one minute or 30 seconds after new Bar starts ( the reason is to have some time...
[Deleted]
here is No candles data from 12 October to 15 October any person faced the same bug it is Windows Vista in Japanese but on problem on Windows XP in japanese
[Deleted]
Hello coders, I'm trying to solve the problem of multiple orders realisation. In this article there's a description of how ordersend function works: " 4.Execution of the function OrderSend(): 4.1. The function formed a trade request for opening of an order and passed this request to the client...
Hi, I am testing my Expert Advision on an Demo Account and realized (with a Print-Message), that the MetaTrader is running the init-Funktion every few minutes, why? What can I do against that?! Lot's of thanks!!
[Deleted]
I am still learning to code and I wrote this basic indicator which graphs the difference between the closes plus the volume. The problem is I can't get it to load the historical chart data. I think I am just misusing the loop function but can't figure it out. Thank you for any help....
Hi, could someone pls show me a full, simple code example where he used a custom indicator on a custom indicator? Is it simply instead of PRICE_CLOSE, the name of the buffer e.g. firstiCustom_buffer[]? Or do I have to work with Arrays like this example using iMAOnArray and ArraySetAsSeries? The...
Hi everybody, Does anyone know how can I know if the order i've selected through its ticket number ? Currently i've this :       OrderSelect(GlobalVariableGet("currentOrderB"),SELECT_BY_TICKET);        if(OrderClosePrice()!=0){ But it doesn't work, ClosePrice seems to be always defined. Thank you....
Anyone have any code snippet that will take an array and keep it synchronized to the orders in the orders table? Basically, I have some custom values that I need to track based on the ticket number. I can add into the array with no problem, my concern is the system closes orders based on stop loss...
[Deleted]
Hi Would anyone be able to advise on how I can get email alerts setup for when I get a signal for the below: //+------------------------------------------------------------------+ //| SilverTrend_Signal.mq4 //| Ramdass - Conversion only...
I created a chat room for EAs, or any other discussion for real time. http://www.ircforex.com/chat/ Join the "EAChat" room, after you type in your alias.
On the current order screen one has to enter the stop loss as aprice, what would be good if one could enter the stop in pips, forexample 25 pips instead of the price, this would also be handy as a option under the trade tab the amount of pips per stop. Thank you
[Deleted]
Hi folks, I want to code a very simple indicator which will print out the result of the following sexy equations : FirstDerivative[i] = (indicator[i] - indicator[i+1]) / ( iTime(Symbol(), NULL, i) - iTime(Symbol(), NULL, i+1) ); SecondDerivative[i] = (FirstDerivative[i] -...
This website uses cookies. Learn more about our Cookies Policy.