Download MetaTrader 5

MQL4 and MetaTrader 4 - page 996

To post a new topic, please log in or register
Hi there, I'm just getting started with MQL4 but I'm not new to programming. I've had fun setting up a few indicators preparatory to writing some EAs to implement and test trading strategies. Can anyone tell me how I pass array parameters? For example I want to take a mean of a range out of a time...
can any one make a program that if i want to close only the sell and close only the buy
Hello, can anybody tell me how to find the first Bar of a indicator? I want to calculate a the first value in a specific way, and afterwards calculate every new indicator value an basis of the previous. thank you for help
Hi, I am new to metatrader MQL but have heavy experience in programming. I am trying to change the color of a candlestick bar based off an indicator. For instance if stochastics or RSI is greater then 80 then i want the candlestick bar for that tick to be blue if it is less then 20 i want the...
FXCM is offering fractional pips, my EA stops working (it does not place orders) on FXCM demo. I don't know why. Anybody has an idea ? thanks
Do I have to restart the whole MetaTrader if I want to update my EA that is currently running on an account? Or, is it enough if I just copy the new modified EA the the experts- folder, and compile it?
how to carry out an OCO(one cancel the other) command in MT4? for example: i sell eur vs usd at 1.39500,then i set a sell oco,limitprice(takeprofit) at 1.4050,stopprice(stoploss) at 1.39000,how can i make system hit stoploss(stopprice) level while it automatic cancel another takeprofit order. how...
The function IndicatorCounted() is returning a -1, how do I resolve this issue? Thanks in advance, A
Is there a way to work out if say the last 10 hourly candles are in a trend up or down? What I want to do is find a trend when price nears major points like 1.1, 1.5, 1.6, etc. and then add some orders if the price action has been in an uptrend or downtrend directly beforehand.
Well, I spend like one month trying to write an EA. I spend days and nights trying to find out out the correct combination of different indicators, but with very little or no luck. Then I read few post on this forum regarding generic algorithm, so I decided to create something very simple. I believe...
Hello, I have an offline chart that I need to WindowScreenShoot() and then SendFTP(). The EA that I have coded this into will not work from an offline chart. SendFTP will not work from an indicator. I can run the EA from an active chart, but WindowScreenShoot does not accept a window handle to...
When is the release date for metatrader 5 client terminal, atleast give us an idea how long traders have to wait since the mql4 code will be different or can you guys release some documentation on the code.
I've posted this in response to the latest post which suggests that the going price for an EA is $20. I'm frankly staggered at the number of new members on this forum who either can't describe the precise specification of their strategy, or who can't cut code, together with those who can do neither,...
Hello. New to mt4. after typing 2009.06.24 15:00 (the desired time I wanted to check price closing), the chart immediately goes back to the current time. Please help. Thank you.
Hi, I am writing a custon indicator for MT4 and I want to set the height of the window it is running in from the indicator code. Can I do this in MT4?
I have coded this Basic EA, which works fine, except fot the second half, which will not close orders, or operate the trailing stop. I have spent many hours, no Joy. I have exhauste all my knowledge, and am at a total loss. It all works Ok, but will not operate anything below the "...
I found this ea and everything works except the trailing stop. The trailing stop moves once when hit but doesn't continue as the trade goes in profit. Any help would be much appreciated. or do you know of a similar EA. Thank You fxtrading24 .
I have been trying to use 2 of the solution on this forum but it's not working could someone please have a look at it and let me know where I have gone wrong. Regards Kiwi    //+------------------------------------------------------------------+   //| Variable...
Hello, I have a serious problem with my MetaEditor. I had 2 MT4 installed on my computer (Fxpro, FxOpen). After I installed a third one from InstaForex, the MetaEditor started to give me message like "could not launch the compiler". I first posted a thread here, and someone advice me to uninstalled...
I have programmed in few OOP languages, so I have general knowledge on programming, but I just need some expert to clarify few things for me + some concepts. 1. I like the way ZigZag marks the points and let’s say I want to use it as base for two of my custom indicators (want to get...
Hi all, I am a newby creating a width indicator based on Bolinger Band. What happens is that when I tried to run this indicator, BB_Max values of ArrayMaximum always blow up to 214783647 and therefore the values of BB_Percent will go to zero. How could this happen? Any comments is appreciated....
I am growing very tired of going to each currency pair chart and setting the magic number each time I compile my code on the test (not talking about tester) I am running. Is there a code snippet out there where I can count all the currency pair charts open with an EA called "bob" (for example) and...
  Your opinion please (12   1 2)
I have this EA program that I purchased. Have been running a test on it since about 5/26/09, so far it looks good, My Stats report, do you think there is enough testing on this to accept it as usable in live trading or should I run it longer before I got live?
I'm trying to find any datetime functions for calulating time differences. I want to run a script to check on the elapsed time that an open trade has been active. -Jerry
I have an EA that waits for a MACD to cross over, then it see's if the price action is above the top bollinger for a sell or below the bottom bollinger to buy, in the hope that as it reaches that level and bounces back. From here i check whether the next bar, within a user defined range has broken...
When I do Alert("Hello!"); I get nothing. Do I have to enable alerts somewhere? -Jerry
I would like to partner with a programmer to develop an ea based on my strategy.
The problem is that it's sending too many Alerts because the conditions are true for a long time. How can I get it to only send me one alert when it finds the conditions are true? Below is my code: total = OrdersTotal(); if(total < 1) { if(cnt_buy ==2) {...
Can someone please explain how i can pull live trade results into my website from mt4.
No Hedge....No Stoploss, No Limit Orders., FIFO...at this rate it'll be no MARKET ORDERS.... Thanks OBAMA..... SEND COMPLANTS TO THE NFA at jsunu@nfa.futures.org spendleton@nfa.futures.org squallo@nfa.futures.org edasso@nfa.futures.org lbrinati@nfa.futures.org forex@nfa.futures.org information@nfa...
1...9899909919929939949959969979989991000100110021003...1249