MQL4 and MetaTrader 4 - page 359

Hi guys, Forgive me I've just started coding in mql4 last week....I have also tried searching the forums and reading the reference materials but am so confused. My question is: How do you change the source of a moving average to be something other than 'PRICE_CLOSE'/'PRICE_HIGH' etc. For example
Hi , I am working on this indicator with the goal to multiply the RSI value with the (body) size of the current candle (or the equivalent of what was the current candle for the previous bars). It works in mt4, but when I add property strict the code still compiles but no longer outputs the buffer...
Hi all I have modified the below MQL4 code so I could transfer values from MT4 indicators to excel and I am struggling to obtain values from this indicator Casino_HAS_PIN_v3 which I have attached because it keeps putting 2147483647 in all the cells. I would be grateful if anyone could please help me
Good moring, I'm trying to trasform my EA in a Grid system. My EA opens sell and buy orders but I'd like to ass some code to do this: -EX: I had some orders opened on EURUSD sell and buy. I'd like the EA close all orders when a certain level of profit is reached (suppose 1€ of profit) Can someone
I would like to open an order at the price of the close of the previous candle, is it possible to do that in some way? When I try to do it, mt4 gives me error 138 which means that "the broker replied with a “Requote” signal to your expert advisor’s OrderSend() function. That means that the price...
My vps server restarted and upon booting up the text on my computer changed, desktop icons became smaller and worst of all MT4 resolution is now crap. Any ideas?
I am currently implementing an EA that pauses after it has closed a position, and the code is down below: if (OrdersTotal() == 0 && TimeCurrent() >= OrderCloseTime() + 1200 ) {            if (iRSI(Symbol(), 0, 14, PRICE_CLOSE, 0) <= 30 )                ticket = OrderSend(Symbol(), OP_BUY, 0.01, Ask,...
I am not very familiar with coding I have a script to force open 2 position or make 2 pending order on certain price Problem 1 : I can't use that script on broker with suffix, eg : eurusdb. That script make looping, so my position become more than 2. but i can use on broker with symbol like, eg :...
I'm experiencing the problem of 'echo' when placing an order... I try to set one stop order but the EA always set a lot of orders... Very weird. I assume it will be the fact that the ticks come very quick after each other and there needs to be some kind of delay after placing the first order, but I...
I have developed this indicator which generates Arrow buffer... i want to check if last buffer call was before 5 candles ... see my attached screenshot... what i want is to check if previous generated buffer was > last 5 candles... how do i check that
Hi, I'd like to test an own expert advisor using several timeframes. Parameters would be: Shorter_Period = (ex.M15), Longer_Period = (ex.H4). So the strategy will run through all of the periods between. So then, we're going to consider this is for example applied to MACD indicator: double...
  System Sync  (1)
This systemwill give you profitable signals on any markets. It works on alltimeframes. You will need the free MetraTrader 4 software and copyall the following indicators and templates into the software. Youwill also need the free QChartist software. We will buy dips onuptrends and sell peaks on...
I have been coding and realized that at some points the Highest High of the time periods fluctuate in interesting manners.  To make my question more understandable:  double d1highest = High[iHighest(_Symbol,PERIOD_D1,MODE_HIGH, PERIOD_D1, 0)],   //The Highest Point that the price has reached in the...
Hi everybody, Please , I need your help. How to read Atr value in Pips? For example on USD/JPY I see : Weekly ATR value = 1.3931 Daily ATR value = 0.7832 What is ATR value in pips in each case? Thank you in advance
I've been programming and testing strategies in my spare time just for fun, but lately a problem with MT4 has made it impossible. When I run a backtest, change the parameters, and run a backtest again, the second backtest frequently uses the parameters from the first one and so it gives me the...
hi sorry i need a help regarding mq4 code, i have a problem with the arrow of an indicator, it always appears before the candle closed (i mean like appear and dissaper till the condition met). i have set to appear when the candle closed, but it's not work. all i want is only appear after the...
Thanks in advance, I have two questions about one-click-trading window: 1. Is it possible to open and close the one-click-trading window from an EA code? 2. Is it possible to modify the volume on the one-click-trading window from an EA code?
[Deleted]
Hi all, I came across a order entry management software called 4xspinner (Google as I don't know if links here are cool) and they require you to add your MT4 account number for licencing purposes. Given my live account number makes me think twice but they don't have my password so I think this is ok...
I have a 3rd party indicator which generates alerts. I don't have access to its code. How can I create an EA which trades from these alerts?
Hello, I'm hoping to find some help here. I've been researching and trying to figure out how to combine two indicators MACD and Stochastic Oscillator into one indicator but haven't had any luck. I'm not looking to overlay them on top of each other in the MT4 chart window but actually combine the...
Hi friends. I hope you are enjoying a good day. I found an indicator from the developer Kaleem Haider from this link (https://www.mql5.com/en/code/15563). I find it helpful to my strategy. When I want to make an EA based on my strategy and this indicator, for Buffer Index number I have a problem....
Hi guys, A coding question. Is it possible to make an MTF indicator, for example the one attached, do the following (with only 1 attached indicator to the chart): on a M15 chart show only the H1 lines; on a H1 chart show only the H4 lines; on a H4 chart show only the D1 lines; on a D1 chart show...
Hey all, I'm trying to display EAs on my MT4 through my Oanda live account... All indicators (like moving average ) show up no problem, but no EA shows up (like the MACD sample). No samples, no downloads show up. in particular, what i'm trying to get working is this: I downloaded the order book EA
How could I place the smiley face and EA name to a different location, say the lower left corner, of the chart?
Hi All.  First time posting on this forum.  So I just set MT4 and for some reason my Candlesticks won't show up on my charts even though (1) I've clicked on the candlestick button above the chart and (2) I've clicked on candlesticks under the properties tab (or F8).   Any advice or suggestions?...
Our System: Using: Mozilla Firefox Windows 7 OS MT4 " not" loaded in Program files (Not a UAC issue) Downloading: Email attachment with the .ex4 file,When I click on " Download ",Browse (Program to use to download the file), I use metaeditor.exe . Should I be using something different ? File Looks...
Hi All, Is there any efficient way to create a relationship between two (or more) Arrays that contain different data types? For example, I have an Array of data type string that contains several pairs (e.g. AUDUSD, EURUSD , EURGBP etc) and another array of data type int that contains the Magic
Forex Strategy Builder v2.2.1 http://www.forexstrategybuilder.com Using Forex Strategy Builder (FSB) you can quickly create and test a trading strategy for the internet FOREX market. You can also get better understanding of the technical indicators without writing scripts or using formulas. All...
bool Max_Loss_Daily (double PercentageLoss) {   //datetime startTime = TimeCurrent() - Hour()*3600 - Minute()*60;    double netProfit = 0;    int total = OrdersHistoryTotal();    for(int i=total-1;i>=0;i--)    {           if(!OrderSelect(i,SELECT_BY_POS...
Hi there... So, I developed a very good EA (IMHO), comprised of 5 algos, back tested it for 14 years (using tickstory, even though my algos are not day-trading), run it on a live account for the last year... I like the results. Anyway, I'm finding some investors and will need to open a joint account...