MQL4 and MetaTrader 4 - page 365

To post a new topic, please log in or register
Solid mu fu joins a floor board and common sense of choose and buy: When consumer is bought should pay attention to the following aspects: 1, the building materials supermarket or advice to the formal professional market buys a floor board, in general, the quality of the WPC Fence...
Hello guys !I am a web developer and I have a good sense of logic programming . But I do not know much of MQL .Based on other indicators , developed one that gives great results in Binary Options , and would like to market it. However , I can not do the following:- Set password from decompiling- Set...
I'm trying to convert a whole number of pips to the correct price value. For example I want to be able to enter '50' and the function output 0.0005. To do this the maths is simple - 50 / 100000 (this is for a broker giving prices accurate to 5 decimal places of course) now the output is technically...
Hi, Is this even possible or am I doomed to reading them by FileReadString ? If it should be working then please look at my little test-code for this purpose below: string FileName = "Readfromfile.csv"; double FileDouble; int LastMinute; int cnt; int Handle; int init () { return(0); } int deinit...
Hi guys,   There are a way to define and change trailling stop manually via mql4 code ?    I need to put the trailling stop on orders created on my EA.
Hi everyone, I am using this function to return today's profit for a specific pair and specific magic number for today only.  but it seems to be totaling all magic numbers Does anyone see where I might be going wrong? double CCIDailyProfit(){  double CCIprofit = 0;   int cnt4 =...
I'm using the 'while' statement with great success for some recovery work. Embedded is a counter (for # of tries) and after such # of tries there are checks/balances before looping back to the counter such to ensure things don't take too long and take a loss will be taken if things get out of hand....
marcus179
hello friends, i need coding help for these both inidcators. in the link is a description and the source code from annother trading software. can someone translate the indicators in metatrader 4. thank you for help. dear marcus   http://www.vtsystems...
I'm losing the connection to my demo account, are you using the beta version without problem?
  Mql4 Report (1)
Hey, I've tried to search for a solution to this but I have been unable to find a solution, even with a broad google search. Recently I've been making detailed reports on my performance, the EA has been functional for well over a year (perhaps 16 months), but my report only goes back 10 months. When...
Hopefully someone can help me out of this. In the following code opening a long position if the current price is higher than the previous candle's High. Then I set a profit target, and a stop loss. The profit target is static, so that works fine, but the stop loss is variable. I have set it to look...
Hi Guys, I've got a below standard piece of code for reading from a file with the following format: YYYY.MM.DD HH:MM; integer What I get returned for MD (date) is 1970.01.01 00:00:00 instead of the actual date on file. Do you have any solution guys? Thanks! int Handle, Number, Number2;string...
Hello,    For learning purposes I'm looking at this simple indicator called test2 (basic ma cross) #property indicator_chart_window#property indicator_buffers 3#property indicator_color1 Aqua#property indicator_color2 Purpledouble Uparrowposition[];double Downarrowposition[];double signal[];int FEMA...
Hi everyone, I wish to know if this is the correct way to calculate indicator's value in a for loop (throughout all the available bars): int OnCalculate(...) { //...  ArraySetAsSeries(SignalLine,false);  //...  for(int i=0; i<Bars; i++) {     double ma=iMA(NULL,0,MaPeriod,0,MaMethod,MaPrice,i); //....
Hi guys.   I am making a Binary Options Expert  for a customer, and need to block the Order Creation when the payout is below 70%, like in the image below because is only 65% not 70% or greather.     I try to get the payout information using the MarketInfo function, but not found the option. Can you...
Two years to double the price of heavy wood ants wood prices have been rising, and prices of the gathering, the amplitude and frequency are unprecedented, two years ago, the hottest selling mainstream Merbau wood species, due to the strict control of timber exports The reasons of wood plastic...
For my systems, I need to draw objects past bar zero, so my shift is set very far to the left, or center of the chart window. Every time I draw an object past shift, even only a single bar past (anything less than bar zero), the objects either do not draw, or are stretched to infinity. How are...
Hello, I am desperate need of help with getting my Forex Hacked EA to work on my live account. Below is the description of the issue I'm having. My broker is Forex Place (4xp). I do not have access to the code for this EA since it was purchased with rights. I will provide any information you...
New article How to Make Money from MetaTrader AppStore and Trading Signals Services If You Are Not a Seller or a Provider has been published: It is possible to start making money on MQL5.com right now without having to be a seller of Market applications or a profitable signals provider. Select the...
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...
turny
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...
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...
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...
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...