MQL4 and MetaTrader 4 - page 1385

  Box Break Out  (5)
Box Break Out
[Deleted]
I am seeking help from the users of MQL4. I am a new trader. Can I do equity (stock)trading or futures/commodity trading or both with MQl4 as my trading platform? When I downloaded MQl4, it is defaulted to support only Forex Trading. I would like to use "Brain Trading System", a...
Some languages don't work well when a function's value is returned from within a loop (in our case 'for' or 'while' loop). I have done some test scripts and I haven't found a problem with that in MQL4, but I'm not sure... Can I return a value from within a loop safely?
Hi everybody, as we know gpwr posted an indicator based on back-propogation neural network which was applied to moving average. I'm trying to build an EA using this indicator, but the problem was raised on backtesting. When you apply an indicator, the network only uses some amount of bars to train...
Hello, While this newbie still struggles to design the holy grail, if some experienced friends could share their thoughts on this question. I do not want to design something that works fine on demos but is bound to fail on real accounts. Appreciate your help. regards Sat
Hi, This is a MA indicator that is reading MA off a higher TF and used in a lower TF... In its current state the line appears as a staircase, drop it on a 15M TF and you'll see. I want it smoothed so that there is a distinct change for every low TF bar, iMA can be used as suggested in the code but I
[Deleted]
I am having no luck finding or understanding a way to filter out less than desirable trading hours. My brokers GMT is 0 if anyone can help me with a a conditional statement to add in hours filter. Also I have a signal that is highly reliable under certain conditions but dont want to open trade at...
[Deleted]
Hi, I'm fairly new to using MQL4. I've been trying to write an EA where a buy trade is opened if RSI(14) goes above 55, Momentum(14) above 100.2, sells if RSI(14) goes below 45 and Momentum below 99.8 with a take profit/stop loss of around 50pips. I've programmed this but I haven't been able to stop...
[Deleted]
I'm somewhat of a VB convert to MQL4 and am trying to figure out some demo code that I found. I'm running back testing with this piece of code, and have noticed that sometimes my stop loss doesn't seem to set at all.....it will enter into a position and just sit there, sometimes for days, and then...
Hello, my name is Andy and I'm a computer engineering student. This is my first meta4 expert adviser program, can anyone tell me whats wrong with it. Function. Its an EMA 9.33 program, its supposed to open only one position at a time and this happens on signal cross....
I'm sorry if this has been answered already,  I did look but didn't find it. I have coded a few simple indicators and scripts.  I have 2 platforms that I use and one shows an extra decimal pace compared to the other,  e.g. GU  1.5129  vs  1.51294  What I would like to do is be able to modify my code...
-
  FileRead problem  (3)
I wrote a small script to learn how to use FileRead and FileWrite. FileWrite works OK, becauseI can open the resulting CSV file in NotePad to see the data. The problem is reading the data back into MT4. The script has an Alert in it so I can immediately visualize the data read back in. Only some...
[Deleted]
G'day again. I'm wondering if someone could kindly add an MA cross to the following code: extern int TakeProfit = 155; extern int TrailingStop = 55; extern int StopLoss = 55; extern double Lots = 1; extern int magicnumber = 777; extern bool PolLots = true; extern int MaxOrders = 12; int prevtime;...
-
Hi, I am having problems coding my first custom indicator. ye i know this forum gets a lot of these posts, sorry =(. Basically, what I am aiming for is for this indicator to give me a certain probability, so to speak, of what the how the next candle will behave--based upon the data that I have...
When referencing terms, sometimes it is said "Line index must be from 0 to 7. What is "line index" and what is each number mean (0 to 7)?
I can provide further informations for developers. I happen frequently. So you can easily recreate problem. There has been a critical error Time : 2009.11.13 19:29 Program : Client Terminal Version : 4.00 (build: 225, 10 Jul 2009) OS : Windows XP Professional 5.1 Service Pack...
[Deleted]
I have just found what seems to be the solution to my Error 131 problem and thought I'd post to possibly help others. The details are as follows: The Robot uses a number of settings that seem to need to be adjusted as follows: 9this may help other people/robot settings): Acconut size - $100,000...
[Deleted]
  return(0);  (5)
Hello everyone, I'm still learning how to code, can somebody explain the meaning of the function, return(0); in an EA code.? and how does it affect closing of opened orders? any help will be highly appreciated. thanks.
[Deleted]
Hi everyone, Is it possible to get the original stop loss value for an order that has been modified several times (ie. trailing stop)? Thanks, Chris
I read that the files with historical info for metatrader5 are smaller. I am guessing the HST file header description changed. Would you mind and share the new format specifications? Thanks em
[Deleted]
Hi, this is my first post...this is a really great community..I'm news in MQL, but not in Forex. So i want ask if someone can tell me How I can tell to my expert, after the "8th" opened orders, don'open more orders, but i don't want that it close all the previuos one, all ordres have to reach stop...
New article Trader's Kit: Decorating Indicators is published: In this article you will find main tasks when decorating indicators, their solution and automation. Author: Андрей
Recently realised that the old tick error is quite often, anyone experienced that and any solutions to that?
  EMA-4-MTF-Strategy  (15   1 2)
EMA-4-MTF-Strategy Timeframe: 10 sec, 30 sec., 1 min, 5 min, 15 min, 30 min, 1h, 3h, 4h, 1 day, 1 week Currencies: all Exception to the rule: 10 sec TF - only EUR/USD Indicators: EMA: 9, 20, 55, 120 Enter/Exit: when bars crosses EMA 9 Hold: when EMA 9 20 (bullish) inoperative: Commencement of risk:...
[Deleted]
  MT4 RSI EA  (1)
I am using RSI Ea and needs a small modification. RSI EA sells whenRSI value moves over 70. This sells when RSI is over 70 till 99.99. Ineed to restrict this to a range like RSI value 70 to 71 only and BUYfor 30 to 31 only. I think the following line of code needs to bechanged. RSi is attached for...
[Deleted]
Hi, Im newbie in mql, can anyone help me to make indicator to show an arrow, if there is a bullish candle above an MA 20 and if there is bearish candle below an MA 20. Thanks in advance.
  Please help with Error 4107  (13   1 2)
Hi, I'm a newbie semi-programmer wannabe (have been playing with code for a while now, can do only as far as amend and create new entry/exit rules in a template that a friend has put together for me, but he is unavailable at the moment to help me with this error). I get the following problem (from...
PLEASE put SEARCH capabilities into MQl4BookEnglish.chm
[Deleted]
It can get a bit tedious in this forum you know. There are so many posts from people who can't code, can't use grammatic syntax (never mind programmatic syntax) and who just want others to "help me please" without spending any effort at all themselves to learn how to code and to read the docs. I...
I have a chart with this code on it. However, when I am on the 15min chart, it alerts me every 15mins instead of just the once per day that it is supposed to. Any ideas how I can get around the Time[0] variable?    //------------------------------------------------   //any TS/KS crosses on D1...