Download MetaTrader 5

MQL4 and MetaTrader 4 - page 994

To post a new topic, please log in or register
Being relatively new here and searching through various forums to learn about Forex Trading, I make certain observations; - There seems to be a high turnover of people coming and going, possibly because they try a bit, lose some money and move on. - For some people, the challenge is in programming...
  help on EA (1)
pls can anybody help me on this strategy by put it in an EA? This is the strategy. I want the EA to be calculating the first to the fiveth candlestic closing and divided them by five. This is how it will be placing order. If the result is higher than the present price its should place buy and if...
hi, i'm very new to ea's i have a very simple system in mind, but i need help to put it in place. keep in mind i use a 5 minute line chart, not bar or candlesticks. all that i want to do is set up an ea that buys long when the moving average 10 crosses the moving average 30, and sells in the reverse...
I am very new to this EA stuff, but very intrigued. I've tried to build an EA that buys when the RIS pops above 30 and then closes that position when RSI, after it exceeds 70, breaks down below 70. And i'm trying to get it to sell when the RSI breaks below 70 and then close the position when the...
  held on adx (1)
please i will like how to know how to code adx indicator in expert advisor. Am not after the plus or minus am only after the adx style i.e using it for strong and weak rend. When i coded it in my expert advisor it didn not place order. Please help me out.
Hi, Sry looks like my previous message didnt show up. I am looking for the Intraday Momentum Indicator for MT4. So far found it on Metastock and VTtrader, but not luck for MT4 ( I am not advertising, I love MT4) The code in VTtrader is: IMI_diff:= C - O;IMI_UpSum:= if(Smoothing=0, mov(if(IMI_diff>0...
Hi All Frankly I cant code to save my life, am more of an EXCEL person, so am looking for a pre-made script from a kind person. I currently have an indicator to dump tick data to CSV, and EXCEL to do the strategy testing. Now I need a way to get the buy and sell orders back to MT4. Could someone...
As I am not an EA programmer but getting better, I just would like to know if its possible to make the EA change the settings of the order like TP or SL so when you have an order with tp for 25, you can change it to 0 in your EA and EA modifies the order to make TP 0. Is this possible? Does anybody...
How to get the tree last values of indicator Zig zag, last high or last low etc.
int init(){}int deinit(){}int BarsCount=0;bool openlong()   {//Write open LONG TRADE conditions here.         }   bool openshort()   {//Write open SHORT TRADE conditions here.      }bool closelong()   {//Write close LONG TRADE conditions here.      }bool closeshort()   {//Write close SHORT TRADE...
Hi, I am currently learning to make EA, and I was wondering how can moving average be inserted in to another indicator like the picture I uploaded. With the platform you can insert it simply by dragging MA file from the navigator menu in to the other indicator. So my question is how can make an EA...
I am only posting again since I felt that my first post was not that great and I cant delete the other post. What approach would be best for counting: n pips in height (H to L)? Would iLowest and iHighest handle finding the low and high for preceding n bars? How can I count pips up/down for n bars?
I try to find highest and lowest price during the last 3 months with following code double highestprice, lowestprice; highestprice=High[iHighest(NULL,PERIOD_D1,MODE_HIGH,90,1)]; lowestprice=Low[iLowest(NULL,PERIOD_D1,MODE_LOW,90,1)]; It works fine if chart window is D1 but gives wrong results if...
If someone can tell me how link several platform via one ea? tks I look to link several platform via one ea or is it possible to add several ea to a chart ? Tks a lot patrick
Hi,all .. I tried to run a very simple script in MT4, but here is always error 4106. code: //+------------------------------------------------------------------+ //| S_Test01.mq4 | //| Copyright ?2009, MetaQuotes Software...
Anybody out there with a year worth of complete Forex.com M1 data??? Would love to get my hands on it because I need it. If you have it, please zip it and email directly to ckingher@gmail.com Thank you so much for nice people like you.
  SAR dots (2)
Hi, Can someone help me to code: How to count SAR dots on the chart in your EA? Little details will be helpful as I am new to MQL coding. Thanks in advance
from this partial code i am able to collect number of 1 min candles since trade open but am unable to find the lowest low achieved or the drawdown of the open trade guide --------------------- int tm, z; double lw[]; for (int i=0;i<OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS...
Please may I have some assistence as to places I can go to educate myself about how to backtest simple stratergies and understand exactly what is going on? i.e even with the Moving Averages and MACD Expert advisers I cannot understand how to manipulate the parameters to make it take profit adn cut...
else bool found = false; for(int k=OrdersHistoryTotal()-1;k>=0;k--) { if((OrderSelect(k,SELECT_BY_POS,MODE_HISTORY))&&(OrderMagicNumber()==MagicNumber150000)) { found = true; break; } } THIS PIECE ABOVE BASICALLY LOOKS TO SEE IF THIS ORDER HAS BEEN PLACED AND...
Is there a way to change the comment on an existing order?
Hello, I have an EA where one of the requirements for making a trade is a 3-bar trend in a MA. For example, the code to check for a sell is: MACurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0); MAPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1); MAPrevious2=iMA(NULL,0...
Can a Pending order be resized? I think it is not posible and I will have to delete it and then resend it again, I'm right? Thanks.
Why do I continually get a "your copy is not activated" followed by an activation key#. I have no idea what do do with it
Hi guys, Any idea how one can draw a horizontal line (ideally a trendline (so that I can switch "Ray" function off) at the current level of EMA? I need that line to be redrawn automatically when EMA changes its position. MANY THANKS!!!
An indicator is being developed to show daily bars for multi-currencies in a separate window on the chart. The time and value2 are being output in the form of label definition on a multi-currency historical statistics window. Value2 is ouputting relevent information while Time value is displaying...
  8hr chart (1)
Is there anyway to get an 8hr chart in MetaTrader?
Hi, i want to asked, is this ordermodify for TP is correct? why sometimes it mod, and some times it doesn't mod? if (PosB20()==2 && PosB20_Mode(OP_BUY)==2){ for (int ModB20=0;ModB20<OrdersTotal();ModB2 0++){ OrderSelect(ModB20,SELECT_BY_POS); if (OrderMagicNumber()==Magic_Number_B +20){...
Hey Phy, I'm using iCustom on the ADX indicator to get the values for bar[1] and bar[2] and the values that I get differs from what the chart shows. Any ideas what's going on? ADXCurr = iCustom(NULL, 0, "ADX", 14, 0, 1); ADXPrev = iCustom(NULL, 0, "ADX, 14, 0,...
Hello all! Can somebody help me? I just learn to work with MT4. I think it will need a while... :-) I need a very simple indicator: ((sum of close of n candles divided by n) -1) * 100 "n" must be possible to change. The output should be a line in a seperated window with two more fixed lines at +1...