MQL4 and MetaTrader 4 - page 823

To post a new topic, please log in or register
Hi everybody, I'm just beginning to use MQL4 and i'm begining to like it!! I'm encoutering my first issue, i'm trying to set BUY and SELL order, but it don't work when i put stop loss and take profit values (if i put 0 it works). For exemple if i put : ordreb = OrderSend( Symbol(), 0, 0.1,Ask, 3,0,0...
Ok I've downloaded some indicators from a website for the mt4 platform. How do I transfer these files to the platform? Thank YOu
Hello freinds, I need your help. As I use the "Comment" to show data on the screen, I want to controle the wideness of the comment. For a better understanding I will give an example: I want to have a comment line on the screen of the Stocastic indicator value. Since it ranges from 0 to 100, and I...
Hi! I have one Expert Advisor operating on many charts at the same time, and I want that, if any of the charts reaches Stop Loss, no other chart can send new Orders (though I don't want to close the ones that are already in). Anyone knows how can I do that?
  Reversals (5)
What do you guys do for reversals? With all the awesome indicators being developed I'm surprised there is not more for reversals ( unless I'm using them wrong!)
as inscribe shows,my ea is an trend strategy,I wanna it could increase position when profiting,but now it doesn't work like that.pls gurus check my code,and point out how to deal with the problem. I know the line" if(CalculateCurrentOrders(Symbol())==0) CheckForOpen();" may stop the second...
Im a newbie and Im really stuck, I had tried many ways and combined with my programming inexperience, I just cant find a solution to this problem. I want the EA to count how many open and pending orders of each type are on the account, and store the result for each type in a variable. I have this...
Hi, is there a possibility to put an gif or png into an indicator or EA? With which function? Thank you, sunshineh
How can I get my EA to know the price of an open position buy MagicNumber? Thank You
I'm writing an EA to alternate buy and sell orders. I can code to alternate orderswhen there is a history, but not from first start of EA. This is the base simplecode. How do I code to alternate orders? if(OrderType()==OP_SELL) Buy=true; if(OrderType()==OP_BUY) Sell=true; Thanks, Wackena
Offers from experience programers needed to code 2 stradegies in MT4 platform stradegies are simple trendfolowing system please contact Johan Holt trancoinvest@inbox.com tel +45 30746057
hello plz help me how to change expert adviser If he should buy, he sells and if he should sell he buy thanks all
Hi all, I have this indicator which works very well and has made me humongous profits as well...but now I am very much interested to convert this indicator to an EA. Can any programming guy help me for this???? I have attached an indicator code here and want it to convert into an EA
Everyday I want to draw a trendline from an external file which will specify the dates/times for 2 candles and Up or Down Trendline. Then when the trendline is broken an expert would enter a trade.
I want very simple stuff for learning purpose. All the samples I found are too complicated to understand. I want to create my own samples. I wanna pay for that if necessary though I'm not (yet :)) rich with forex.
Some can help me to create a simple script for daily breakout? My idea is very simple if market price break the hight of the last day buy and set SL and TP if price break low of last day Sell and set SL and TP.
I wrote a little programcalculating volatility. Currently I use the"comment" command to display the result on my chart. The words OK andNOT OK. I'd like to replace thesewords with a green ore red square (or dot)) of about 1 cm size. I have difficulties to findthe right command and program exemplas...
helo sir,i want to know the best indicators in commodity (buy -sell and stop loss)plz refer it,thanks all
Hello Experts, I need your help. When I do double HighestPoint = High[iHighest(NULL,0,MODE_HIGH,200,0)]; then how can i find this bar number of the highest point. Thanks a lot.
Hi, Question 1 This is a question about whether a custom indicator which is called from an EA works "on its own" or not. (This might already be answered in the Book, but some sections are badly translated so it's still unclear to me.) I'll explain through an example: TICK 1: The EA (program) is...
LOT1 chart:daily basis how send buy order if the folowing condition is true: yesterday HIGH minus yesterday LOW>50pips ---> buy 1 lot thanks
HELO FRIENDS,ANY HAVING THE FISH TANK INDICATORS,FISH TFO
Hi, I am trying to compile EA, where fast EMA is crossing slow one as buy/sale signals. The problem I have is that sometimes even when EMAs are not crossing, but are close - it is considered as a signal. It is strange since I put everywhere in the code > or <, not <= or =>. Any clue how to fix this?...
Does any one now a easy way to find out what version of windows MT4 is running using just a windows API call. Can any one tell me how to make this work: #import "kernel32.dll" int GWINAPI GetVersionEA(_inout LPOSVERSIONINFO lpVersionInfo); #import http://msdn.microsoft...
Dear all, I have problem When i overlay two indicators rsi(2) and then cci(6) in one window manually (just add rsi(2) and then drag cci(6) into rsi(2) window, as graphical is ok. Look at the bottom of the chart. But I coding custom indicator for same purpose. the result is similar but rather strange...
Dear Members, I need a moving average indicator which draw average line only for the candles runs in when europe and us markets open, remaining candles moving average not necessary for me. How can i offset remaining time. Kind regards, Pavan 2843.
I would be grateful if anyone could point me to a simple EA that could close all trades on a platform when the floating profit meets a certain percentage target (profit or loss). Thank you!
Hi Guys, I am looking for a way to handle an array with multiple fields. Is there a command to establish an array like 'myArray [int field1, double filed2, string field3] Also, what is the command to 'push' the array 'forward'? i.e for an example if the array has 3 places.. then...
Hello, I was hoping someone could help me out. I've been using the SWBgrid with some other eas for my overall strategy. However, I wanted to increase the frequency of trades from "opening a brand new trade once the previous trade has ended" to "opening a brand new trade every candlestick."...
Hi all here! I dont see some error in code for this i want to ask for help. i have an indicator with following code included: datetime TimeArray[];int i,y;int limit;int counted_bars=IndicatorCounted();if(counted_bars>0) counted_bars--;limit=Bars-counted_bars;ArrayCopySeries(TimeArray,MODE_TIME...