MQL4 and MetaTrader 4 - page 256

input string symbol = NULL ; input int timeframe = 0 ; input double lotsize= 0.1 ; input int stoploss = 0 ; input int takeprofit= 0 ; input double Martingale_multiple_value = 2 ; //+------------------------------------------------------------------+ //| Calculation of volume martingale
Hi All, I'm not a great programmer so was looking for advice. I am using the Resource function to include my indicators in my Expert Advisor but I cannot get it working correct.. can someone help? In my code I am using this: #resource "\\indicators\\heikenashi.ex4" After the OnTick section I use
Hi, I'm new in this industrial. I have one error regrading the close order. My EA is using indicator crossover to open an order, and my condition to close an order is when iClose is greater then indicator it will automatic close and order after the specific bar of candlestick closed. But I having
Hi there brothers. I think I opened a thread in the wrong forum, I am opening here then, which is the right place. I have this indicator here which I found at forexfactory called zigzag counter, which displays the total volume of each leg of the zigzag. What I wanted was for it to show the AVERAGE
hi is it possible to have 2 mt4 platforms running from the same broker on one laptop
Hi Guys, I need some help please, im a newby to mql. Im trying to combine two indicators into one but have hit a brick wall. I can get an arrow to print using "is not equal to" for one indicator. But for the second the arrow is printed on the pervious candle. what is the best way to do that? so
hi everbody, i use the ea pending order, and i need a simple modification, open orders when the market lateralize too, because after close order, the ea not repeat, and i like to repeat because if market lateralize, no have opened orders thanks for help #property copyright "Copyright 2016
[Deleted]
  New API MetaTrader 4 AVAILABLE  (200   1 2 3 4 5 ... 19 20)
Hi, Folks! We developped a dll capable of handling several instances of client terminal MT4 in background, allowing login in several accounts and multiples brokers simultaneously(MAX. 32). Mainly goal, we kept in mind, when developing this API was permit handling orders in MetaTrader brokers from
Hi guys i have this script , but why with iMAOnArray not create a chart till the end ? thankz //+------------------------------------------------------------------+ //| | //|
Its very difficult for me to explain it in English but I hope u guys can understand me: example: candle0 open=1euro close=1euro low=1euro high=1euro candle0 open=1euro close=2euro low=1euro high=2euro (price rises to 2 euro) candle0 open=1euro close=3euro low=1euro high=3euro (price rises to 3 euro)
Hi All, I've trend Indicator it has 3 inputs, I try to use it in EA with iCustom Function when i test it successfully load But it's not working , I think there are other parameters not shown in the indicator inputs. My question: is there a method to know the full parameters of the successfully
hi guys , i ask at expert , if is possible calculate iMA of open-close and result recalculate iMA ???? i ask this because in manual iMA want like parameter only int enumerator PRICE_CLOSE but is not possible combine thankz
Hello i want to create a trendline on 4hr Timeframe and access the starting point price of the trendline (or any shift of the trendline) on all the other timeframes. From 1min to Daily timeframes i get the correct price but on weekly and montlhy the price i get is 0 How can i get the correct price
Hi everyone I am trying to plot a price range with ATR and MA indicator. Here is my code and I receive no error or warning. But lines do not appear in the chart. Anyone has a clue? int Countrd_bars=prev_calculated; for ( int i=rates_total-Countrd_bars- 1 ;i>= 0 ;i--) {
Hi all, Hoping someone can assist with my issue. I have a custom indicator which I created with 7 buffers: int start() { int counted_bars=IndicatorCounted(); int limit= Bars -IndicatorCounted(); int k; if (counted_bars< 1 ) for (k= 0 ; k<limit- 1 ; k++) k= Bars -counted_bars- 1
hi as you know . mql4 library has not function about rate od change ( ROC ) and therefore i can not use it like ima or istoch ... and i write a function for calculating ROC and save it namely iRoc. how can i use it like internal function in mql4 ( iMA, iCCI,...)
Hello, I currently have this indicator that I modify with some parameters by watching tutorials (I am not a programmer) this indicator marks the high and low in an hour range from 23:00 to 14:00 but what can I do so that the lines that draw the high and low fully extend? #property copyright
I would really appreciate if one could advice how to write a code that executes, if "All Open trades are OP_BUY" or if "All Open trades are OP_SELL", then no OrderSend
Hi, I'm looking to buy a 10" tablet to use MT4 mobile app. My preference is Android. However I have seen many examples of iPad displaying multiple charts at same time on the screen, but I've never seen that on an Android device. Can Android tablet also display multiple charts? Or is the app less
Hi, I will be very thankful if someone helps me with this. I'm not a coder, I use only *** software for creating my EA. I need MACD divergence and I use the below code with icustom Indicator . When this indicator creates an arrow the divergence happens and the number of each buffer (mode0 and
Hello everyone .Good day. EURUSD AND USDCHF correlation is around -70 and -80 . How can calculate this correlated value in mql4? Thanks
//**************************************************************************************************************** Transactions from RESULT screen whereby 49 2020.10.09 18:45 buy 5 0.07 1.18193 1.18051 1.18248 0.00 1006.69 50 2020.10.09 18:45 modify 5 0.07 1.18193 1.18051 1.18322 0.00 1006.69 51
hi guys i try to do an oscillator in separated windows but it draw only a line , where is the error ? thankz at all
Hi all, could you help me with this approach, i need to code a signal that opens a trade n days before the end of the month or n first days of new month. Could you help my with pseudocode please?. Best. 
Hello, I currently have this code that shows the high and low of the previous day but I need it to show the high and low of the previous day but at a specific time it would be from 23:00 to 14:00, how could I do it? I have no knowledge of programming! const string h0="H0", h0S = "H0Str", h1="H1"
Hey, so I have a custom indicator that does all the logic behind the strategy and it send an arrow whenever it's to buy or sell. And on my EA I what to check if the value of the index buffer is empty or not. Here is my arrow setup on the Indicator: SetIndexBuffer ( 0 , SlowDnPts); SetIndexBuffer
Hi All, I am a newbie in programming. I am trying to build an expert advisor based on Engulfing Pattern. That is, I want the EA to open a long position after a Bullish Engulfing is formed in an uptrend (50 EMA is above 200 EMA) and to open a short position after a Bearish Engulfing is formed in a
The MetaTrader 4 platform update will be released on Friday , July the 24th, 2020. This version provides enhancements for built-in MQL5.community services, as well as error fixes and platform stability improvements. The update will be available through the Live Update system
Not open order ineed return my money back
Hello, I want to know how to pass an array which is in another array struct to a function by reference. struct SRLines { string name; double price; }; struct CiCSupAndResLines // Support and Resistance Line from SmartLine Indicator { string symb; SRLines M1[]; SRLines M5[]; SRLines