MQL4 and MetaTrader 4 - page 709

To post a new topic, please log in or register
Hi guys Im trying to find high and low of the last 10 bars then keep the value and wait until the price cross it up or down, but I'm losing the value of the high or low, can someone suggest me something please
#include <stdlib.mqh>#property indicator_separate_window#property indicator_minimum 0.00#property indicator_maximum 100.00#property indicator_color1 Lime#property indicator_buffers 2#property indicator_color2 Red#property indicator_level1 20#property indicator_level2...
Hi, how would I go about setting multiple TP/SL levels? I've finally managed to make my strategy work but the performance is awful. I would like to set multiple levels such as: if (trigger == true){     buy or sell}-------------------position == opentp = +50pipscurrent price = +49pipscurrent price =...
Whilst working with the MT 4 demoaccount I come upon a problem. Iuse Fibonacci Retracements with the numbers; 0.0 14.6; 27.2; 38.2;50.0; 61.8; 78.6; 88.7; 100.0; 114.6; 127.2; 138.2; 150.0; 161.8; 178.6; 188.7;200.0. To each number I have added the respective price leve, in MT4 (%$). The MT 4...
  "Charts" tab problem (12   1 2)
I am new to the forum so apologies in advance if I've done this in the wrong place. I have multi-screen and use three versions of MT4. One version works 100%. The other two will not allow me access to "Chart Indicator List" via the "Charts" tab. When I click on it to delete an indicator - or even...
I have one pair chart that opens at a seemingly random point in time when switching time frames. eg It always opens with the most recent data displayed in a daily chart, but for any other time, 5m, 15m etc it will open at anywhere from a few days ago to a few years ago, depending on the time...
hi when i'm trying to install MT4 i get this error: "A debugger has been found running in your system. Please, unload it from memory and restart your program" i have windows Xp 32 bit thx for your help :)
Hi, I tried to put them into my code but it seems is unable to open a position, anyone could help with this ? { res=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask - 0.005,Ask + 0.005,"",MAGICMA,0,Blue); //this code is not working. // res=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,""...
I have gained the courage to put my newly written EA on a live account after thorough testing on historical data. The past week it made NO trades, but when I run a back test on the same period there are 5 trades for the week. My broker is FXOpen and I have an ECN account. Why does my EA not make...
Guys: Recently, I started to use MT4 tester to test my stragegy on Futures data. Usually, forex price data are 1.****. But to keep the profit value in right scale, I use the price like 0.****. For example, the price of a contact of certain commodity is 3425.00....And I make it to 0.3425. The changed...
dear sir, how to transfer data metastock to mt4, plz guide me,
Hi there anyone could explain this issue: I am using a particular EA with many variables, on MT4 platform. This issue affects on all mt4 platform tried: alpari, avafx, gomarkets, fx-open, and many others. usually I use about 5 single variable to create my personal optimization Each variable can be...
int start() { int counted_bars=IndicatorCounted(); //---- int i,limit, top, k; int signal[]; limit=Bars-1; if(counted_bars>=1) limit=Bars-counted_bars-1; if (limit<0) limit=0; for (i=limit;i>=0;i--) { if((FullBody(i))&&(isShrinking(i+1))){...
Hello, could please somebody help me? I cant find a solution. The Problem: When i put some Charts with my own settings, like 5 Min with Bollinger Bands and two different pairs (just a sample) and close the MT4 the next time when i open the MT4 i have to start from zero again without any savings. I...
My EA used to take about ~ 4 minutes to optimize but since the 406 update takes ~ 18 minutes. This is on a live account and demo account with VantageFX and AxisTrader brokers based in Australia. Is this slow optimization coincidental to the update and something with the brokers or have you found...
Do the Right Thing” CCI Trade Without resorting to the mathematics of the indicator, please note that CCI is an unbounded oscillator with any reading of +100 typically considered to be overbought and any reading of -100 oversold. For our purposes, however, we will use these levels as our trigger...
  simple mysql wrapper (21   1 2 3)
Hi All, I wrote a small wrapper for fetching row and fields from MySQL. source and compiled dll in attachment. Futher more a mqh for including the goodies :)
HI need help to modify shockbar ea. added stoploss at -40 pips. if price touch -40 pips they are close all open trades example : 1 eur/usd sell -40 << now touch at -40 close 5 trades (once time) 2 eur/usd sell -22 3 eur/usd sell -18 4 eur/usd sell -15 5 eur/usd sell -12...
Recently I downloaded Dukascopy tick data and went through the Birt's EA Review script process to create HST and FXT files. Does anyone out there know what happens to the volume data? What I noted is that the true volume in the tick data is lost in the conversion process. What ends up in the tick...
Dear all, I'm having some issues using iLowest on timeframes higher than the current chart timeframe. On one currency pair (EURJPY) it allows me to use the function for the current timeframe, but only higher timeframes from H4 upwards. On the other hand, using the AUDJPY pair, it allows me to use...
Hello :-) This is a really silly question but I would like to "look into the inmediate past" of my indicator to see if a signal has been triggered. It seems easy but indicator iteration is backwards! Is there a way to do it without falling into an infinite loop with iCustom calling myself over and...
The load template icon does not work - the save template and delete template options work though.
  Edit the CSV (1)
Hello, I wonder if it's possible to edit a cell in a csv file. At first I insert values​​: Type | Execution BUY | 0 Then when the order is executed, I would replace the 0 with 1. Thank you in advance!
Hi everyone, I have been experimenting with strings in mql4 and have stumbled upon a situation I cannot solve: int myInt1 = 0xffa8b; //myInt1 contains an integer as expected int myInt2 = StrToInteger("0xffa8b"); //fails int myInt3 = StrToInteger("\xffa8b"); //fails Does anyone have thoughts on why 2...
New Build of Mata trader loaded 11/3/2012 - If I nowtry to use Right Click Chart Objects List It no longer works, I just get an error sound have to useEsc to get out. Using Charts – Objects – Objects List Also gives same problem I am Using Windows 7 SP 1 Using older version of Meta Trader works...
  Please check the code (23   1 2 3)
Could anybody please check the code I want it to draw a moving average based on the difference between Support of 1st bar and Support of 2nd bar. thanks, Jay
Hello, I use Expert Advisor which trades on Offline chart with no problem at all. However my Expert Advisor uses Global Variables and if terminal is closed all Global Variables are deleted! I have tried my EA on Standard chart and GV are NOT deleted if terminal is closed and re-opened. How to solve...
email me at alwaysincreasing1@gmail.com.... I looking for someone to build be an a.e. using price action and couple of candle patterns; If your good at coding really know what you doing I would like to hear from you...Today would be great.. I'd like to get started right away.
Hi Everyone. I have been coding for afew months now, however seem to be having difficulty with this. I have had a go at it for a couple of weeks now on and off, but to no avail. I simply want an alarm, to go off when the two indicator lines cross, every new bar, however I must be overlooking...
I've always believed that if I'm on say TF 5M, and measure the High on bar0 of a higher TF like 1D... I would get today's high as seen at the end of the day... IOW I would be looking into the future. But this is not what is happening. What I get is the running high of the day, between the start of...