MQL4 and MetaTrader 4 - page 1016

To post a new topic, please log in or register
Hi I'm new to the MQL4 community and platform. Can an EA be programmed to scale in and out of positions? Say buy three contracts, then have multiple exit conditions for each contract etc. Thanks.
The best investment I ever made as a trader! pricebreakout forex
I am having some trouble coming up with a way to control the drawdown. I am not a believer in using stop losses, but I have one built into my program just for those who may want to use it. I have 2 passive methods that just pause the ability to open more trades, and they work to some degree. This...
Hi... Please advise how to identify that a custome indicator is changing color? This is the code, underneath the code is the picture : #property copyright "Copyright © 2006, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_chart_window #property...
Hi, Guys, when trying to compile my custom indi I get these errors: 'Highest' - variable expected 'Lowest' - variable expected Have I got something wrong? In my opinion I can't do more than giving a variable a data type and a name and a value...I did all of these 3...why is it not a variable then?...
Please excuse my ignorance....I've got some custom indicators and experts from a friend,in the form of mq4 or ex4 format.How can I insert these studies to MetaTrader? THANKS A LOT a.a
  EA Analysis (1)
Can someone do EA analysis on this?
Hi, this is my first EA and it's very simple and I'm stumped as to why it does not work. Can someone point me in the right direction. The EA is intended to flash an alert message when the two MAs cross: //+------------------------------------------------------------------+ //|...
HI I've got nice EA and I would like to test it with Martingale system how to write the code lines for that?? ------------------------------------------------------------------------------------------------------------------------------------------------------ Szukam kogoś kto nauczyby mnie...
fftremblay
Hi, Let's assume that we have a forex account in Eur, Yen or GBP. The Money Management to calculate the position size is the following. MaxRisk = (MmRiskPercent * AccountEquity()) / 100; Lots = MaxRisk / (StopLoss); In that case, the lot size is in the currency of the account ? If I want the...
Hello, I'm looking to VPS hosting. I'd like to know if 100 GB data transfer per month is enough. I have 1 demo and 1 live account. And does MT4 work with Windows Server 2008? Thank's pgforex
Hello....i am looking for someone to code DigiStoch to the Tradestation platform. Must be familiar with TS. Can pay something reasonable. thanks
I have an existing file thath I open with both WRITE and READ rights to be able to update it. I want to update 2 values that are somewhere in the file. I first go tothe correctpositionbyreading the data before. But then should I just write the new values (does it overwrite the old values or will it...
I've been looking for Alpari UK M1 EURCHF data, about 5 years back. Anybody know of a source for this?
Hi all, I want Open, Close, High, Low and Volum of multiple currency pair. It is possible? I am using the below expert code. I run the code in chart USDJPY,M5. It is printing the values in every 5 minutes when the bar is added. Now i have to open many charts for other currency pairs. Is it possible...
Hello. I would like ask a question . First of all, please suppose a case that Ask price and Bid price are the same price like the trade in a broker which offers the trade with no spread and only paying a commission per order (for example the trade in Broce investment limited .) As long as I...
1. if (bid-OrderOpenPrice()) //openorder vs 2.if( bid > OrderOpenPrice()) //closeorder vs 3. ordersend( symbol(),op_buy,lot,ask,5,0,orderopenprice()-100*point,"buy",0,0,Red)); //stoploss why?? diffirent result? reply!! please
I have some codes: =============================================== int start() { int songrecord; songrecord=FileOpen("_record.csv", FILE_CSV|FILE_WRITE|FILE_READ,','); if(songrecord<=0)return; int FA_id=1114444; int myFA; FileWrite(songrecord,"1114443",0); FileWrite(songrecord,"1114444",0);...
hello frds 1: idea multi time frame moving average moving average of data high+low/2 4 time frames 30 MINUTES/ 4 HOURS/ DALY /WEEKLY DATA time period of moving average must be flexible and imputable example 9 / 21 / 144 / 456 the indicator draw a chart with 4 lines different colors each for each...
Hello,  I have a problem on my indicator that I have noted in the case of achieving Profit target and stop loss. How to modify code that notice was displayed only for a time? For example: every 10 seconds  I tried using function : Sleep (), unfortunately without success. Thank you for your help...
Name: Glory-Pips Breakouts TM Author: Opengates Link: www.forexgates.blogspot.com, Email: opengate8170@yahoo.com Hello, I am new to mql4 codes programming, i have tried this several times but couldn't get it right at all. Please, can somebody help me generate mql4 codes for my trading system to...
Hey, I have a major problem with metatrader that I noticed a few weeks ago and it seemed so serious that I tried to pretend it wasn't happening, but it is, and I can't avoid it any longer. If you plot a high period MA, such as 600 EMA, from an EA, and use Print() to give you the value of that MA...
Hi, I am a new user of the MQL4 programming. For a starter the function PRINT is very important in order to debug the program. The problem is that I dont know where this output is presented in my screen ? Can someone help ? Thanks
Selectively takes trade at optimal times and days. Back testing for 1 year shows $10,000 grow to more than $120,000. How does one attach a file?
hey I have heard it happen to someone else and now it has happened to me as well.When you ask for your money back guarantee after buying a system some people conviently ignores you .They got your money they don't need anything else from you.I bought a mecanical scalping system said to be 90%...
Is it possible to get three forex pairs on one chart? Specifically, I need EUR/USD, GBP/USD and EUR.GPB or the spread between the first two. After that I need a bollinger bands on each and a moving average on each. Am I asking too much? If that cant happen is if possible to sync the three charts...
Gday! I tried searching for this in the forum but no results... Lets say bar[2] is 60 pips from Low to High, how would you code an automatic way of making the EA calculate the volatility of that bar (in pips) and use that information to connect with different aspects of the EA? Cheers, mank
Correlation Strategy. Hello Everyone!! I have been trading for several years but have never posted in a forum until now.I am not soliciting to sell a strategy nor am I soliciting for members to joinany group. My correlation strategy is simply trading more than one pair at a time and viewing all the...
I have a function that checks only open trades on current symbol to see if they exceed a specific pip value provided by user called "CashCollectInPips". Let's assume 10 pips. The problem here is that although I believe the code to be correct, I sometimes see wrong orders being closed or once in a...
It'd be useful to have a flat alphabetically ordered list of standard functions at the end of the Documentation for quick reference. Each index would be a link to the definition of that function. If it already exists somewhere, would you please share the URL. Thanks