Download MetaTrader 5

MQL4 and MetaTrader 4 - page 679

To post a new topic, please log in or register
I do seek someone to help me out with a "hedging" strategy I programmed but I have a hard time making it work properly for some reasons anyways full details trough pm if someone skilled is willing to help me out with it. thank you
Hi I battle to get EA to work on IBFX Australia. I did an EA with just a print statement. It prints in IBFX USA but no reaction on IBFX Australia? Can someone help? Thanks
I can’t seem to wrap my head around this if someone could please help me. I have two prices that I calculate for both a long and short entry. I want the EA to follow price so that if it breaks my long price it initiates buy after a pip and if it breaks my short price it initiates a sell after a...
Hi I am trying to use the Slope Directional Line Indicator in an EA. It works great, but when it is in Bullish trend it returns the actual value of the indicator which is great, but when it is in a bear trend it returns the EMPTY_VALUE, which show the trend, but I need the value also in a bear...
hello, I 'm sorry for my english . my problem is the way to calculate the moving average of an other one : for example I ' d like to have the exponential moving average of MM13 the simple code is like this : double MM12[] ;double mm13 [];for (i=0 ; i<limit ; i++){MM12[i] = iMA(NULL,0,13,8,MODE_EMA...
Hi to All Before I disclose the problem, I wish to thank WHRoeder for the help with this problem earkier in the, but the problem has not been solved. A disclosure: A code I have been working on, does work. It is for experimenting so please, use it as such. I brought this code to the forum last week...
On the 20th of this month my live EA on a VPS did these transactions: TicketOpen TimeTypeSizeItemPriceS / LT / PClose TimePriceCommissionTaxesSwapProfit176808812011.09.20 20:14sell0.20audusd1.030223.029921.027922011.09.20 20:481.027920.000.000.0044.75176797702011.09.20 17:19sell0.20audusd1.030243...
HI MY NAME IS SONIA THIS IS MY PIC I AM FROM INDIA TRADING IN FOREX. SO I WANT TO BUY AND SELL SCRIPT FOR MT4 FOR LOTSIZE 0.01 TAKE PROFIT 0.10 NO STOPLOSS AND FOR LOTZIZE 0.1 TAKE PROFIT 1 NO STOPLOSS AND FOR LOTSIZE 1.0 TAKE PROFIT 10 PLEASE SEND ME THIS TYPE OF CORRECT...
Hi everyone. Im very new at writing MQL4 and i wanted to set an EA to call upon the BB_Macd indicator and buy and sell depending on the color of the dots or whether the last dot is < or > than the current one. I have tried to do both but i just cant seem to understand how to call on custom...
I thought I solved this a while ago, but while troubleshooting my code I thought it might be a good idea to validate all my assumptions, and iMAOnArray is one function for which the documentation is outright confusing. Say i have built an array tmp[1000], which gets filled left to right, i.e: [1,2,3...
hello, one of my friend ask me to create lite protection scheme on his EA... i put some online validation in the custom indicator... Now i would like to know about how EA workflow when it call iCustom in everytick: does init() triggered again ? does start() triggered again ? because if its triggered...
Hi, I'm working on an indicator which uses computationally intensive math in order to 'predict' the next future X candles. The result, which I have, is 4 prices, OHLC, for each future X candles which I would like to visually use as a candle inserted to the right of the current price candle. So,...
The scenario is pictured above. The blue square to the left had a signal that hit the stoploss. I need to use the same signal for an entry at a later bar (second blue square), if no new Trade Signals have come up. I have been looking at the code from this link to use last trade data, but that is...
I like the below indicator and want to use it with an EA I am writing. However I'm having a lot of trouble figuring out how to get the price values of the last or current set of lines the indicator draws. Everytime I add the indicator the last set of line names changes because of the amount of bars...
Hello there, I am just trying to create my own indicator, Idea for the indicator is I wanted to see Stochastic on my charts instead of separate window. For that I create indicator and attaching the code of it....
Dear Coders, After fully read and tried to integrate this article Articles -> Examples -> Error 146 ("Trade context busy") and How to Deal with It. to my EA, the solution really works nicely for OrderSend () but not OrderDelete() The full code of this paragraph is below - Please take a look and...
Hi everyone, I am using an EA which does not seem to have a very good exit strategy. Thus I would like to use my own exit strategy. Is there any way, after the EA has opened a trade to prevent it from monitoring and closing the position ? So the trade is no longer controlled by the EA after it is...
Hello, I need some help with this code I wrote using the MathMod function: double remainder; double value = Bid; double value2 = 0.0025; remainder = double MathMod(value, value2); When I complie my EA I get this error message: 'MathMod' - variable expected Thanks to all who can help out !!!
Hi everyone, I am a first-yearstudent which just enter the master school, and my professor ask me to do some researchabout use the “Back Propagation Network” combine some kind technical analysis skill”Channelor others” use on the mt4 program with EUR/USD, but I really no idea howcan I start, if...
I've come across a new system that allows you to set up your own trading rules quickly and easily. Use technical indicators to set up rules. Then back test and optimize. Looks cool. You can get try it out here: http://www.gowebtrade.com/robot/?gwt_ag=fora_01 –– curious to hear if you like it....
  CashBonus (1)
Has anybody traded with Gain Capital/Forex.com? I received this promo in my email for a cash bonus on their MT4 platform. When You Deposit* Cash Bonus$100,000+$5,000$50,000 - $99,999$2,500$20,000 - $49,999$1,000$10,000 - $19,999$500$5,000 - $9,999$250$2,500 - $4,999$100$1,000 - $2,499$50 Any...
Hi guys, I'm on the edge of insanity, my EA Print 3 things: initial_time max_price minimum_price Now, how can i wirte in my excel 3 columns like: Hour max price minimum price 12:31 1.3456 1.3423 etc... I need some advices or a mini-guide, i can't find anything...
https://www.mql5.com/ru/forum/114665 there dont seem to be much talk about FSB in here, as they do in Russian/china counterpart forums but is there anyone here who have tried this software? thx in advance.
Hi, I loaded the ROC indicator from the lib and it's works fine so far. The only thing which is a bit annoying that this ROC does not update automatically. Does anybody have an idea how to fix this. Thanks Bimbes
Hey guys, I went through the forums looking for help to see why I wasn't able to send email or text alerts from MetaTrader. I didn't find much but what I found on my own was that most ISPs or online email sites require that the "My Server Requires Authentication" box be checked. MetaTrader doesn't...
How is it possible to trade wrong prices in MT4, and how can it be avoided? Does anyone have experience with this that can elaborate on: - How this is possible - How to avoid it - What are consequences of trading wrong prices continually?
I have a 2-dimension array: double Data[5][2000]; The first dimension identifies 1 of 5 timeframes (0 = 1 minute, 1 = 5 minute, 2 = 15 minute, 3 = 30 minute, 4 = 60 minutes). For each timeframe, the array holds up to 2000 data points. I want to call the function iMAOnArray, using one of the 5 sets...
Is there any way send TWS Interactive Broker account's trade signals to MT4 account?
Hi guys, I was reading the forum and manuals but nothing... This is my code: for (int Count = 0; Count < OrdersHistoryTotal(); Count ++) { OrderSelect(Count, SELECT_BY_POS, MODE_HISTORY); if (OrderSymbol() == Symbol()) { double price_ini = OrderOpenPrice();...
Hope someone can explain this. I'm stumped. Look at this small example of the problem: int start() { string tt, tt_now; tt_now = "" + Hour() + ":" + Minute(); Comment("Current Server Time is: ", tt_now, " IsTesting: ", IsTesting(), "\n"); tt = StringConcatenate("Now: ",...
1...672673674675676677678679680681682683684685686...1250