MQL4 and MetaTrader 4 - page 1682

[Deleted]
i need to write some code that will close an order of the current close is x pointsless than the current high. or vice versa i tried if (close[0] + spike *point)< high[0]) where spike is an externaldouble variable. similar to a stoploss variable.
[Deleted]
Can you store the price in just a variable? So maybe at the end of the EA add aline of code like: int Previous_Price; Previous_Price= Ask; Can you store that for the next tick as the EA re-initializes? or does it get wipedout no matter what? Do I need to use an Array even if I ONLY need the...
[Deleted]
Hello, I have only the below code in the start() function of EA, but the problem is thatthe code always throws the error message - "Error". Could somebody giveme any advice? How can I open pending order ? Thank you. int Ticket=OrderSend(Symbol(),OP_BUYSTOP,0.1,1.2175,0,0,0,"macd sample",16384,0...
Hi folks, Scenario 1: The EURUSD went up, I want to tell the boss. What if the MetaTrader can open my email client! Scenario 1: The EURUSD went down. Could MetaTrader open the notepad to write a piece of note. If you are a lazy person like me, or you have more useful ideas (scenarios) about...
Hello All I want to write a simple Moving average cross. It like EA demo.Can you help me? The Following are noteworthy : Timeframe 1 hr Chart Profit Target default = 25(should be a variable) Stop Loss default = 10(should be a variable) EMA=Exponential Moving Average Buy Entry is above EMA...
[Deleted]
What piece of code do I need to add to my EA to be able to trade more than one currencyat a time? I want this EA to look for signals in at least the four majors for astart.
AM TRYING TO DRAW 2 LINES ON CHART IN A EXPERT ADVISOR. TRIED MOVING AVERAGE EXPERT FROM MQL BUT THAT DOENT DRAW ANY LINES ON CHART..HELP PLEASE
  CROSS EAs  (51   1 2 3 4 5 6)
Hello, I'm not a program so I have a request to make to anyone who is a MetaTrader 4 programmer. Ok here it goes. All I want the robot to do is use two lines the EMA 6 and the EMA 12. When the EMA 6 crosses (or goes above) on TOP of the EMA 12 I want the Robot to BUY. When the EMA 6 crosses on the
  FXAnt EA  (54   1 2 3 4 5 6)
I was wanting to request a little help improving this EA. It was designed originally by Renatops. The EA can be found Here . I was hoping that we could improve it so that it works better. It appears to open up too many orders and I was wanting to solve that problem. I also wanted to see if there was
[Deleted]
when i open an order with the ask price in the simulator with my AE the reel openprice of my order is highter than the ask. If i look my graph my open order price is 1.1962 but my high value for the samebar is 1.1960. see the attachment ! Blue arrow is for order price at 1.1962 and green bar show...
[Deleted]
Some can help me please, i want to call in an AE a custom indicator. (sorry for english, i m french)
[Deleted]
Hallow 2 u all I would like to write a script that will always run in the back of the MT and willalart meat a spacial condition, I have a problem to write this and I would like to get some help please contact me at me email: henlang@gmail.com thank you very much for your help Hen Lang
Hi all I'm new on programming on MQL4 and I just want to confirm where the execution ofEAs are done : client terminals or trading servers?. If they are executed on theclients, so I have to have an online connection all the time. Please comment
[Deleted]
I hope somebody can comment on this. Here's the start() int iL1, iLimit; int counted_bars=IndicatorCounted(); if (counted_bars<0) return(-1); if (counted_bars>0) counted_bars--; iLimit=Bars - counted_bars; Alert("iLimit = " + iLimit + " Bars = " + Bars + " counted_bars = " + counted_bars + " Array
[Deleted]
  OrderSend...  (1)
I wrote a simple script using the OrderSend function. When running the script I received error 4109 “Trade not allowed”. I am running the script on a demo account. What did I do wrong? Thanks
11:38:21 try_1min EURUSD,M1: Error opening BUY order : 133 11:38:53 try_1min EURUSD,M1: Error opening SELL order : 133 11:40:07 try_1min EURUSD,M1: Error opening BUY order : 133 11:40:31 try_1min EURUSD,M1: Error opening BUY order : 133 11:43:40 try_1min EURUSD,M1: Error opening SELL order : 133...
i want to get the highest price in the last four hours. i use the higest function in my codes:"BuyH=Highest(NULL,PERIOD_H4,MODE_HIGH,1,1);" but it always return BuyH is 1? May someone can help me? thanks.
rules : on 13.25 GMT open buy stop & sell stop gbpusd at current price plus/minus 15 points. set the TP = 20 point, or we control the target point manually. if the buy stop order opened, the sell stop order will be deleted. all trades must be closed at 23:55 server time. it seems profitable,...
[Deleted]
Hi all, I have been working on an expert for the last week and I am getting very impressiveresults from backtesting. I have not imported any data so i am testing only forthe last 4 months. I don't know if the simulation has any real value as the numbers I am getting aretoo good to be real (>20%...
Due to e-mail system reconfiguration on MQL4.COM domain, the registering of newaccounts will be disabled for 2 days. Accept our apologies for this inconvenience, please.
  Extend MQL!!  (44   1 2 3 4 5)
Before I start, I want to say this is a great forum and I wish to make my first contribution . I noticed a lot of programmers are using OrdersTotal() to get the total number of orders in order to determine whether to open a new position or not. However, I feel that most of us may be running...
Hello! can anyone help me by making an Expert that stacks many(adjustable) Buy and sell orders one above/below the other at an adjustable distance, and takes profit when net floating profit/loss reaches a set(adjustable) dollar value. After taking profit/loss it cancels all orders and places new buy...
I have noticed when I execute an EA , that OrderModify is not executed when there is a new order (Buy or Sell ) to be opened in the samebar. What can I do for it? Thanks for your help.
Hello, Will someone try to make an EA for the ASC trend signal with a ten pip delay of entry on the bars following the close of the signal bar. I believe this will result in positive trades in 70 to 80% of trades. We will need to have a time filter to trade only the Euro and USD sessions no trades...
[Deleted]
Hello! I'm trying to create a very simple expert advisor, but it doesn't work properly.This is the idea: If price goes higher then previouse high entry buy order is sent. If price goes lower then previous low entry sell order is sent. If there is open buy order and price goes lower then...
[Deleted]
Anyone tried to convert daily data into weekly set ? The built-in period_converterdoesn't work as it can't start with monday. Any solutions ? Thanks
Hi, Can one expert advisor can activate another expert advisor. Can an expert advisor deinit itself (make the expert deactivated by removing itform the chart only). Thanks. cplayer
[Deleted]
I have been analyzing several different pairs using the RVI. I have zero programingskills and find the web instruction very difficult to follow. How could I findsomeone to create an EA or Indicator for me? Does anybody know?
[Deleted]
I whould like to know exactly how does an Expert Advisor work. My Question: Doesan Expert Advisor that is loaded on a H1 chart read the data from the M1 chartto triger the signals or not? The reason why I'm asking is because I wrote an ExpertAdvisor with three moving averages on a H1 chart and it...
Hello all, I'm want to monitor an order in a way so I can know when it changes from pending to open and from open to closed. I don't use price to check this because I must have sure that the order was hit, so I use ticket number ( Fractal_Buy [4] has the ticket number). if ( OrderSelect (