MQL4 and MetaTrader 4 - page 646

[Deleted]
Hey, I would need help to offset Donchian Channel indicator (n) bars ahead or behind, because I don´t really know how to do it. Thanks, I would appreciate it! Rait
Hi,  I'm trying to optimize my EA but the mt4 tester behaves bad in the following situation...   In the OnInit() i have some check of passed parameters and if something is wrong, I return the INIT_PARAMETERS_INCORRECT.   int OnInit(){   int result = INIT_SUCCEEDED;         bool canSignal =...
I get the follwing warning message. how to resolve the issue? Warning Message: possible use of uninitialized variable 'ordticket' void ClosePctPartial(){    int orderstotal = OrdersTotal();    int orders = 0;    int ordticket[30][2];    double lots = 0;    for (int i = 0; i < orderstotal;...
when compared with tradingview, i find the qutoes on different platform is so different !!!
Hi I have a code with Buy & Sell Price both as a function of Bid if (Bid <= SellPrice1)   level=true;    if (level = true && Bid >= BuyPrice1 && total<2)            // Stoploss order 1 OrderSend(Symbol(),OP_BUY,Lots,0,0,0,0,NULL,0,clrNONE);  Since I'm designing it as pyramiding strategy I can't...
[Deleted]
Hi, I have this custom indicator which as shown in the image, is just a quick way to see higher highs and higher lows (based on open/close). The problem is they are a set length and I want to be able to choose how long they should be, something I can change in the editor depending on my needs at the...
[Deleted]
My Hail the reader, I stopped trading some years back due to personal health issues. Would like to restart and to this end have downloaded an MT4 platform from FXPro. I am looking to use my proprietary indicators coded for me long before build 600. As I have no Custom indicator folder showing on my...
I'm new to MQL4, although I have several years of classical programming experience. I have a profile with multiple charts - due to 1M, 1W, 1D, 4H, 1H and 15M periodicity requirements of the data for the indicators on each chart. My desire is to create one EA that will receive and/or process data...
[Deleted]
Hi Guys,  to practice my programming skills im writing a little EA at the moment which i want to place two pending orders at a specific time. Everything pretty much works but on the very first execution i always get an OrderSend Error 130. i am pretty sure that my stops are right though.  After...
Hello guys, this indicator does not update the MA. What he's doing wrong. can someone help me? thanks       //+------------------------------------------------------------------+//|                                          AG open position MA.mq4...
[Deleted]
Adam Rosales makes second pitching appearance | texasrangers.com CLOSENow Commenting On:Full Game Coverage Infielder Rosales pitches for 2nd time in 2015Rangers forced to call on position player for ninth inning during rout Email PrintInfielder Rosales pitches 9th 1:127/28/15: Position player Adam...
Hi all, I'm trying to see the stop level on my demo FXCM platform. I'm using   Print( MarketInfo(Symbol(),MODE_STOPLEVEL) ) ;   but the result is 0.  Could you help me? Thank you!   
  show bar shift  (2)
//+------------------------------------------------------------------+//|...
My M1 charts are losing their template settings - see http://screencast.com/t/KaLpidQ3FlZ In practice, - it happens more on fx than on indices charts - and if I never alter timeframe, there is no problem.  But as soon as I switch to say m5 and back again, on the next mt4 restart the M1 charts...
[Deleted]
I want to do my analysis at home and then have it synced onto a mobile device. Showing all of my trendlines & counter, support & resistance and fib's. I currently use Metatrader4 from Metaquotes on android. Is it possible on this app or is there another that will sync with my PC? Ta 
[Deleted]
Hi I wondering if any one can point me to the right direction. I would like to write an EA  where the user places lines on the chart and EA will pick up the numbers on the chart and the EA can be work dynamically.  For example EA request for the pending buy order with profit, buy price and the stop...
Hello everyone.  I am struggling to understand where I am going wrong with this code.   My goal is to every tick to have the EA totaling profit for all orders on a chart/symbol with the same magic number and when the profit target is reached, the EA should close all the orders under that same magic...
Здравствуйте   стало интересно, многие дц, не хранят историю котировок на своихх серверах и при загрузке, они скачиваются с сервера метаквотс. Вопрос следующий  а) Многие брокеры меняют свое время, на летнее/зимнее, происходит ли при этом переконвертация котировок метаквотс если были за историю...
[Deleted]
Hi guys, I just want to inform you of the latest scam binary options software called verified profits released into the market by those scam developers. Please beware of Daniel Walker and his fake software and take note that his main aim is to make you lose money not to gain it. Once you subscribe...
I haven't found special form for suggesting new features to platform developers, so i'm posting here. I use MT4 for several years an there is a list of my wishes which I can reccall for now   So first of all, Wishes form  where traders can suggest new features. Just link to the form in Help menu...
Okay, i'am just using profit amounts to place a stop if order profit is greater than or equal to half of  the expected profit in tester the resulting journal entry says OrderModify error 1.  what is wrong just using orderopenprice for stoploss? int OnInit() { sSymbol=Symbol(); iType=-1;...
[Deleted]
Welcome to5StarsForex We at 5StarsForex your bridge to the major banks of the world, we connect the clients with major international banks to execute the orders and trade directly with the Banks, The broker obtains liquidity from tier-1 providers (Major Banks), delivers it to its clients using the...
[Deleted]
Hi guys, I just want to inform you of the latest scam binary options software called 50k mission released into the market by those scam developers. Please beware of David Howell and his fake software and take note that his main aim is to make you lose money not to gain it. Once you subscribe to them...
What is number code of "Unknow ticket" ? Thank you
I was very surprised to notice that the catalogue <broker>/MQL4/Experts no longer have any value. None of the Experts residing in that directory is valid.  Instead all my EA's are located at the very obvious location: C...
make a point decimal from two integers? ive got two integer variables iMultiplier 100 or 10000 and iRange 4 i was hoping to divide the iRange by the iMultiplier to get the decimal of the price to add or subtract from a price but what was happening is 0 and not 0.04.. just try Print(4/100); the...
I have use FileWriteArray() succesfully in multiple EAs, but this time it just writes "0"s  - or it doesn't write at all, despite the msg: File Write =OK. As i'm using the exact syntax i used in other EAs i'm really puzzled and after a couple of hours i give up. Can someone take a look and tell...
[Deleted]
I've been trying to establish the cross above or below zero, on an indicator.  I am comparing the value of Bar #2 to Bar #1.   Not Bar #0.  If Bar#2 < 0 and Bar#1 > 0 then cross up.  If Bar#2 > 0 and Bar#1 < 0 then cross down.  Should be simple.  If below 0, number is negative.  If above, positive....
Hello! Is there any better/smarter way to increase/decrease lot size every 100$ by 0.05lot? For now I have this, but I don't like it. Any better way? Thank you! if(AccountBalance()<300)      Lots=0.1;  else if ( (AccountBalance()>=300) && (AccountBalance()<400) )      Lots=0.15;  else if (...
Hi guys, this is my very first thread here. I been building a program with MQL4 that I use to create various systems based on candlestick patterns and price action. It is based on filters that can be activate and deactivate and it contains around 7 filters. It includes a risk management subsystem...