Download MetaTrader 5

MQL4 and MetaTrader 4 - page 693

To post a new topic, please log in or register
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: ",...
Hi Everyone, Does nayone know / understand the difference between ERR_INVALID_PRICE (129) and ERR_INVALID_PRICE_PARAM (4105)? I got the second one (4107) as a result of using OrderSend() to submit an OP_BUYSTOP order. Thanks, dennisne
Hello People, we are working on an automated trading system like the most in here i would say ;) The following is crazy.. We have a code structure, which should order a "buy", then do some things, an if some events are happening, it should execute a function which include the ordersend function. e.g...
sir how to use atomatice trading
Patrik Polak
Hi all. I need decrease lots after (every) loss to 0.1 lots. And after (every) win increase lots to 1.0 lots. How do it? Ty.
int start(){//----int action = 0;double loty = 1/100;int course = Bid ;int lastOpenTime = 0, Ticket = 0 ;double point = MarketInfo(Symbol(),MODE_POINT);double diference = 50*point;bool result;double price, Oprice;int cmd, error;lem //1------------------------------------------------for ( int i =...