MQL4 and MetaTrader 4 - page 1413

Hi Everyone! I am trying to create a script that will produce the ticket number given the nth sequence number of a long or short position (in the current open trades). When I put BuyPositionTicket(10), I want it to return the 10th buy position that was opened. While when I put in...
[Deleted]
Feed the hungry children in Egypt In Egypt, many children hungry and homeless and wretched suffering So we decided to help them and feed them from hunger we all must help them and stand by them you can allso help them By donating to the organization and we give them food you should do that yes you...
[Deleted]
Hi all, I am trying to create the following crossover check between EMA30 and EMA10 and get to long or short accordingly but unfortunately i am getting bad results such as : entering to the if statements even if EMA10 < EMA30 (both are global doubles) using Build 225 with Digits = 5 in the demo...
[Deleted]
I want to capture the highest and lowest values of indicator (nor price) for given period of time. I tried to do this using iHighest in this way: High[iHighest(NULL,0,SSB,P1,P2)] where double SSB=iIchimoku(NULL, 0, 7, 22, 44, MODE_SENKOUSPANB, 0); This doesn't work so what I should do? thanks
I have an indicator that draws a box around the working hours candles of a chart. It needs to reset itself every hour between the hours of 1900 and 0600. How could I do this with some code? Do I have to simply run the delete objects code every hour and the start function will simply redraw...
I payed for this EA, installed and have had my PC on more than a week. No trade happened at all !! In the meantime, another PC of mine with other EA are gaining (or loosing), so at least you know they working for you. The programmer did a good advert on his web, even promising "money back guarantee"...
[Deleted]
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; } } if(found == false) { for(k=OrdersTotal()-1;k>=0;k--) {...
Do I see proper that in MT5 again there will be no easy ticket to enter a trade and choose Stoploss and or Take Profit by mere Pips?? Entering StopLoss/TakeProfit by price is too confusing for me, I have made numerous mistakes. Especially with the 5 digit brokers. So at the moment I have 2 options:...
[Deleted]
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
[Deleted]
  Help with RSI EA  (1)
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 (
[Deleted]
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...
[Deleted]
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
[Deleted]
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?
[Deleted]
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
[Deleted]
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.
[Deleted]
  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...
[Deleted]
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...
[Deleted]
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?
[Deleted]
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);
[Deleted]
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.