MQL4 and MetaTrader 4 - page 1375

Noob question,but useful. Do EAs and indicators run in its own thread?
[Deleted]
Does anybody know to combine Soet2StopOrder with trailing stop to get a perfect execution of pending Order and trailing stop.
Hello, TO THE MT5 DEVELOPMENT TEAM I am the developer for PositionSizer.com I have had a very large demand to develope for your platform. The indicator is just capturing screen prices in a series of click it then give your position size. The series is as follows. Engage my clicking on the...
Hi All, I am new with meta trader and I would like to ask if there is a way to change the currency pair spread parameter in the tester? the same question for the minimum stoploss parameter. thanks Assaf
my Ea uses some sleep () functions but they do not work in back testing, is there any way that I can get the sleep () to work in back testing ? thanx
I use a custom indicator that plots price every 10 pips in even increments on the right border of the chart. The chart also plots price points on the same border. There is too much information. Is there any way to delete just these latter price points without deleting the bottom time legend and...
Hello. I'm really new to trading and total newb to programming. All I need is some help with drawing lines. Could someone please take an indicator with 2 MAs crossing and write in part so when faster MA crosses down there would be a horizontal line drawn on close - custom value, of that bar. That...
Hi, I would like to have more control over SL/TP for two reasons: 1. I don't want my broker to know my real SL levels for obvious reasons 2. I would like to be more flexible than standard margin of 5pip between current price and SL/TP With single order open it is quite easy thing to do. Just two
[Deleted]
Hello, I am sort of new to forex trading and the Meta-Trader 4 client terminal. I have been using a demo account for a while to gather statistics and such on the market. I have seem to stumbled upon a scenario that works. So I was wondering if there is anyone that is a veteran in MQL4 Programming...
Hi, On the MetaTrader screen, when I right click and highlight Trading, I see the suggested Buy Limit and Sell Stop levels which are around 25 pips away from the running market price. Is it so that we can not set a pending order within certain PIPS from the market price ? Or is it that we can ? If...
[Deleted]
What are some of the fundamental resources traders use on a daily basis? I wanted to compile a list. This could include: websites to download fundamental indicators, major news sources that are tracked etc. Thanks for your help!
[Deleted]
i need someone good in mql4 programming to get something programmed for me. any1? dis is my email add. de1genius@gmail.com plz i will be glad 2 get a feedback!
[Deleted]
  MathsRound  (4)
Hello I am very new here and have been trying to round this value using MathsRound but can't get it to work. +DoubleToStr(AccountEquity()*LotsPercentage/100/1000,2), 10, "Times New Roman", LightGray); The value shows on the chart as 0.01, 0.02 etc but when you get to higher lot sizes it shows say 0...
[Deleted]
Hello, I don't know why but I have a bug with OrderClose() in the next function. I know the condition are meet because sound alert work, but order still open. Need help! Thank's pgforex //==== Function StopLossvoid MaxStopLoss(){   for(int i=OrdersTotal()-1;i>=0;i--)  {    if(OrderSelect(i...
Somebody should please help me with a nice indicator that can show volume or buying and selling pressure. My email address is edwinyoungedo@yahoo.com
Hi to all! I'm probably overlooking a simple bit of code for this, but missing it. How would I write the code an action to take place only when a new bar appears (like waiting for a bar to close at 11:00 and for the new 12:00 to appear)? For example, wanting two moving averages to cross, but since
Hi All, Anybody know why the error appear?? codes:              int ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,slippage,0,0,comment,MagicNumber,0,Blue);       if(ticket>0)        {          OrderSelect(ticket,SELECT_BY_TICKET);          Alert(OrderOpenPrice(),"   ",StopLoss,"   ",Point,"   "...
[Deleted]
hi there, i have a reliable trading strategy , due to require to spend long hours on computer and some times missed out some good trading opportunity in the mid night trend too, henceforth, i'd like to create an EA for my trading, can some one help to develop it or guide me thru how to develop it
i am trying to run a ma expert on daily charts but the buy/sell signal is triggered only on the first few bars i downloaded all the historical data
What do you think of the demo report? Working Orders: Ticket Open Time Type Lots Item Price S / L T / P Market Price No transactions Summary: Deposit/Withdrawal: 0.00 Credit Facility: 0.00 Closed Trade P/L: 3 393 973.85 Floating P/L: 0.00 Margin: 0.00 Balance: 3 403 973.85 Equity: 3 403 973.85 Free
Hi guys, I'm new to coding, I found this code on internet and would like to re-optimise it/forward test it, but before doing so I notice that it creates various errors in strategy tester. Thus I don't want to go through the optimisation process and prepare it for live, if I can't rely on the results...
[Deleted]
hi,I'm trying to get the open time for current order by using this code :int orders, total, j;datetime Open_Time;orders = 0;total = OrdersTotal (); for (j = 0; j < total; j++) { OrderSelect (j, SELECT_BY_POS, MODE_TRADES); if (OrderMagicNumber() == Magic && OrderSymbol()...
[Deleted]
hi guys!i need help from you guys to guide me, what is this mean :for (order = 0; order < OrdersTotal()-1 ; order++)what I don't understand is, what is the purpose of OrdersTotal()-1?why orderstotal minus 1?your help is much appreciated.thanks in advance!
  EA Programming  (35   1 2 3 4)
hi fellow traders, since I didn't find any forum rules which forbid this kind of offer I am gonna post it. However, if Admins consider this to be inappropriate just remove the thread. I've been trading quite a while (a few years) and been programming EAs and indicators (and other programs for even
Hi I have created a custom indicator that already uses 6 of the available indicator buffers. I want to set defaults for the following (from the indicator code): Chart Type = Bars bardown_color = Red Please can someone advise me how to default the chart type to bars AND make the bardown_color set...
  How strong movements are born  (172   1 2 3 4 5 ... 17 18)
I have always wondered how strong price movements come about. How it happens, what is the mechanism. Here is one of my observations. As you can see in the figure: you can see not only the beginning of a movement and its direction, but also future support and resistance lines. === Post your
[Deleted]
Suppose I have an EA (or an indicator) running on EURUSD chart can I get price data of other symbols like GBPUSD, USDCAD, NZDUSD, AUDUSD, USDCHF and USDJPY from the same EA. What I meant is eurusd = iClose("EURUSD", PERIOD_M1, 0); gbpusd = iClose("GBPUSD", PERIOD_M1, 0); audusd = iClose("AUDUSD",...
[Deleted]
hi all, can anyone explain, what is the difference, or what does on line do, what the other do not? sorry i'm not a coder, but very interested to understand. thanks in advance extern int LongEma=50; double LEMA1=iMA(Symbol(),0,LongEma,0,MODE_EMA,PRICE_CLOSE,i+1); double LEMA2=iMA(Symbol(),0,LongEma...
  Font Settings  (2)
How can I change Font Settings in MetaTrader 4 ?
  Box Break Out  (5)
Box Break Out