Download MetaTrader 5

MQL4 and MetaTrader 4 - page 675

To post a new topic, please log in or register
Hello everyone, what is wrong with this logic? I want to open 2 positions. One will be closed with a target profit, the other one with trailingstop. If i knew how to close just half position and go ahead with trailingstop for the other half i would have done:) //--- Controllo numero ordini e send...
Greetings.I am able to locate the Parabolic SAR and exponential moving average. The problem is i am unable to enter the values that i require as i am unable to locate where to enter the values. Example; how can i change values on the parabolic sar to 02 and .2 acceleration factor and constant. C....
Can anyone give code for getting the market opening and closing time for all quotes? I am trying with Indexes like Nasdaq, FTSE etc.... For that market timing is very much needed. Any help or clue is apprecialted. Thanks in advance.
Hi, I am sorry for this rather ridiculous piece of code - but it drives me crazy. To save mainly backtest time I want to execute a function only once with in a bar not every tick so I wrote: // PERs[] = {PERIOD_M1, PERIOD_M5, PERIOD_M15, ...// pSET[per][sys] <= {0,0,1,0,..  => pSET[2][sys] = 1...
  Loop Question (3)
Hi, I am creating an EA from several custom indicators and am having a difficulty understanding loops. I need to count back x number of bars ( on an H1 chart) until I find the value of an indicator that is greater than 0. Once found, I need to return that value and compare it to the close of the...
is it just me or my tester or is there something i've noticed: whenever i test any of my EAs now on my MetaTrader 4 platform, i have noticed that if a SHORT trade is in drawdown for let's say a week or more on any chart, 1M, 1H or....well, those are the only two i use, if the trade would have...
Hi guys I want to move stop loss to profit using ordermodify, but I can´t write: OrderModify(OrderTicket(),0,Ask+100*Point,Ask+300*Point, 0,Yellow) Some alternative. Sorry for my bad english.
Hi all, I need a simple EA program. I'd really love to know how to tweak it myself. What is the going rate on these type of things? I don't care if it makes money(Hope it does), but I just want it to execute properly. My EA just requires if the market goes 100 pips in a direction (no matter the...
Hi, I have a simple indicator, the Guppy mma oscillator and I would like to convert it into R code. I really need it fast. Could anybody help me with this? https://www.mql5.com/en/job/3097
Hello, I have downloaded a Timebased EA, its working like a charm with Strategy test, But when i start it with a practice account i get 0 takeprofit and stopless instead of what i have applied, Im using OandA MT4 ... Here is the code :...
Forex Trading has become a new mode or method for earning easy & good money. Increased participation in forex market has increased the chances for earning good return from Forex Trading. If you don't know how to trade in the forex market then no need to get disappointed because there are some...
Dear traders I have installed custom indicators on the metatrader 4 platform, but it freezes the platform. Apparently, it doesn't do so on other people's pc. My pc's processoe is AMD 2.2 Ghz, memory 2GB, on Windows 7 professional. My mt 4 build is 402 Kind Regards Abie
Greetings.I am able to locate the Parabolic SAR and exponential moving average. The problem is i am unable to enter the values that i require as i am unable to locate where to enter the values. Example; how can i change values on the parabolic sar to 02 and .2 acceleration factor and constant. C....
  Error 130 (6)
Hi, I'm new to MT4 and I need some help with Error 130. I'm trying to use a very simple code to test how MT4 works with my broker (Forex.com). However, I'm stuck at the Error 130 for my EA. I tried to change the SL and TP, but it doesn't help. I also checked the STOPLEVEL for my broker is 10. But no...
  bar robot (1)
Hi all, anyone interested to create robot for me ? this is what i want from system (buy scenario): parameters upper price - UP lower price - LP time interval (bar duration) - TI risk $ - R buy/sell System would be only buying if parameter set to buy and low >LP and and price reached UP...
//+------------------------------------------------------------------+//|                                                        Igrok.mq4 |//|                                                   Andrei Andreev |//|                                             http://www.andand.ru...
Here is the code I used, just for checking. I am using GCI Demo Account. I get 0 as return value. Can anyone suggest alternate code or method to get the output? Output: "2012.03.13 13:40:30 test1 Crude_Oil,M15: Current Open = 0.00000000" void start()  {   double cur_open, cur_close, cur_high,...
I recently ran the script called Birt's Patch on build 409. After running the script, I ran an EA that prints to a text file tick volumes. The volumes I am getting are in decimals such as .00090. Is there anyone out there who is familiar with this and how it can be fixed?
In The ECN platform there are ' normal' charts, Avg and Ask charts. There must be a difference between them, so which one, avg- ask, can give the best results for an expert advisor?
Hi there, I am trying to program an custom indicator but I cannot manage to assign values to an array. In my example, I am just trying to calculate the average value between the High and the Low of each bar and assign to an array for subsequent calculations. I used the Alert() function to find out...
Hello guys, I have a problem..According to the logic, regarding the position ticketTL, the ea should move the trailingstop up. Instead, it remains a fixed stoploss. No errors in the journal.//+------------------------------------------------------------------+...
Hi My Name Is Jestin I Want Hourly Buy Automatic Buy TRade Order Then The Take Profit Is 25 pip And stop Loss Is 25 Pip If Not CLose THe Next Hour Then Close Automacly Script Buy HOurly FOr 24hours in a day anybody for script writter
I generated a offline chart with the indicator "RangeBarChart", but no expert in graphic works. How do I run the expert advisor? I read something about global variables ... Is there a tutorial on? Sorry my English ...
I am trying to place an order through which i can get profit / loss of 0.01 by the following code: OrderSend( Symbol(), OP_BUY, lots, Ask, 10, Ask- 3*Point, Ask+ 3*Point ); But it did not executed. If I increase my profit / loss to 0.06 it accepts my order. Why is it so ? Please help me out.
Guys: I use the optimization in the tester to do some reserch of my stargegy. I set one parameter to vary from 0.1 to 2.0, so there should be 20 results. But the testor only show 11 of them, which is profitable. or "significant"...... How can i see the other 9??? By the way, simplely lable...
The Volume Indicator is a double number but it shows only integer numbers (5, 12, 25..) Can I Take double numbers by volume indicator?? (5.23, 12.78, 25.36)?? Somebody can help me?? thanks..
I have tried to find a definitive answer to this query from codebase and e-books I have and am still uncertain about whether these two are functionally identical or if there is an important difference. High[1]  or iHigh(NULL,0,1) I am using High[1] because this is what Forex EA Generator writes but...
I'm new MQL4. I do not know where to post my question ... How do I create asimple command code to go up breaking the bar higher eight? Thanks with Greetings from Italy. Help me! Mauritius.
Hi Guys.. I am looking for a solution that could help very EAs. Also i want to code expert advisor that could limited opening new positions for Each bar. For example if we want to make new buy position by " if(High[0]>High[1]) ", then it allows to opening only 1 buy position for each Bar. On the...
Hi! I'm justin, My English is not well. You sympathize with me. as title, I'm looking for an indicator chart which is total 2 pairs or subtraction 2 pairs, ex, EURUSD = 1.3142 gbpusd= 1,4235 ==> Total = 2.7377, Subtraction = -0.1093 If you has got it, share me, please! Thank!