MQL4 and MetaTrader 4 - page 67

To post a new topic, please log in or register
Happy New Year everybody !! Hi experts,I have a question about how to code following trading condition. rule 1.Fast moving average cross up slow moving average 2.If RSI >70 within 50 bars after crossing  then open long It mean 50 bars after cross up ,just wait for RSI>70 but won't be under first...
I would like to modify this Fractal indicator that I attached so that I could modify the number of bars on side that has by default, this indicator that has the code open and can be modified, the number that I would like is 15/15, thanks
I'm developing an EA and I want be able to sell it via MQL5 services and via custom licensing codes. Is there a way inside EA code to know if it is running via MQL5 or not? I haven't found anything documented about this topic, thanks in advance.
Guys I am new to MQL4 and I need help with the following, please: 1. Say an order has been opened in the USDCHF chart, I would like to be able to close it and take profit when a price change occurs, for example, in the GBPUSD chart and place an order there. How do I take profit: Do I use OrderModify...
Hi All, Can anyone tell me how to convert the source code below from Bar to Candlestick? Right now it only shows bars even when I choose the Candlestick option in MT4. //+------------------------------------------------------------------+ //|                                                    Open...
Hi, I trade in the NSE (National stock exchange of India) and use MT4 for charting. I have developed a strategy to find out good entries and exits in the derivatives market, based on calculations using the day high/lows. However, the lines show up only the next day morning when the market opens up....
Hello! I'm not sure if this goes in this section, but it seems like the best categorization to put it under. I'm looking for a tool similar to FXCM's proprietary "Zone Trader" located here: https://www.fxcmapps.com/apps/zone-trader/ So far, I've searched Google and the Market only to find EAs that...
If some order is opened with some specific magic number, later you can't change / modify magic number of already open order. you can only assign magic number at the time of opening order. for example: I have 10 orders open with my EA and with different SL/PT and magic number after a while 5 orders...
Hello! I want to develop a custom EA that I've not been able to find anywhere else. Does anyone know of a list or database of reputable, good and trustworthy MQL developers? I'm not sure where to look. Any help is appreciated. Thanks!
Is there any way to perform actions on the change of the chart window's zoom factor?  I can get the current chart scale and repaint the indicator/EA but it will only do that on the next tick after changing the chart scale. I guess my method would be called something like onChartScaleChange() (which...
I emailed boston technologies/meta quotes but got no reply so can someone from mete-quotes/bt answer the following 2 questions. 1.What is the monthly cost to lease a mt4 terminal? 2. Can you lease a terminal to a u.s.a. citizen?
Hi!  I Have a double number (1.0) and I try to divide by a double variable that is the rest of another two variables. Any one of this variables is a the number of a senkou Span A and Senkou Span B indicator ( From Ichimoku). When I show the numbers using comment, all goes well. But when I try to...
  New API MetaTrader 4 AVAILABLE (199   1 2 3 4 5 ... 19 20)
Hi, Folks! We developped a dll capable of handling several instances of client terminal MT4 in background, allowing login in several accounts and multiples brokers simultaneously(MAX. 32). Mainly goal, we kept in mind, when developing this API was permit handling orders in MetaTrader brokers from...
Dear community, can someone send me tzmt4api.zip to info@fx1.net please? i could not find this file on internet. its supposed to be mt4 api. If someone has better solution please let me know regards
Trying to add a closed profit percentage function, but it appears not to work when testing. Line 78 bool hasProfit() is the section in question. Any guidance would be appreciated. Couldn't seem to post code using SRC, so file attached. 
Hi guys, I am new to forex trading. I just want to ask you that How can i sell two lots i.e one Lot of 10 Size and Second Lot of 5 size at the same time same price. I don't want to sell direct 15 size lot. I want to sell 10 and 5 lot size diffrently but at the same quoted price Let's Say USD\Yen...
hello MQLers I have done drawing the monthly and weekly pivot point but the yearly is kinda tricky, here is my code //---   int Counted_bars,i;   Counted_bars=IndicatorCounted();   i=Bars-Counted_bars-1;   while(i>=0)     {      shift=iBarShift(Symbol(),PERIOD_MN1,Time[i],0);      temp=(iHigh(NULL...
#property copyright "" #property link      "" #property indicator_chart_window extern int Pips = 50; extern bool Alerts = true; extern bool PushNotification = false; double point; datetime alerttime; //+------------------------------------------------------------------+ //| Custom indicator...
hi,  firstly wish all of you happy holiday! i found this ea online forum, and it has potential. this ea will place pending orders. but most of times those pending orders can not deleted by its logics.  this ea will pop up message  deleted pending orders  fail.  so it always result those  pending...
I'm looking for a volume profile indicator for MT4. Any help is appreciated. Thanks Peter
Hello everyone - sorry my first post is one asking for help! There is an indicator that I would like to add a simple alert to (for trading manually). 2 lines are drawn on the chart, and all I want is an alert when the current price either goes above 1 line, or below the other line. I know very...
Dear coder, please help to modify my code that will restrict the indcator to work only on WEDNESDAY and when I load them on my chart it should be showing arrows only on wednesdays. Thanking you   int  DayOfWeek();         for(int i = limit-1; i >= 0; i--)     {      if(iHigh(NULL,PERIOD_M30,i) >...
Hi all, I need a sanity check on drawing objects on charts. Below is a snapshot of what a rectangle looks like on a chart - the red candles are hidden because they are the same colour as the rectangle fill. Changing chart foreground/background doesn't make any difference.   Question is: How do I...
  Bars count (3)
Greeting to all,I start learning mql4 and i want to write a code to count the bars between two dates on H1 chart, and if possible how to add and subtract a number of bars to/from a starting point and draw a vertial line. Ie. Starting date 'D 2017.12.10 08.00' adding say 4 bars will draw a VLine on...
  Please help my EA script (13   1 2)
Hi, this is so simple script, it's just buy order immediatly after run, but after close order it dose not run again i want it run immediatly automaatic  after close order. thank you in advance for you helping this is the script: input double lots = 0.01; input int magic = 434341;  int OnInit()   {...
Hi everyone, apologize for propably bad english. Can anyone give me advise, where should I read about the interaction between chart and mouse. Heres exactly what I need,for example: some kind of button on the chart. So when I click it, it's becomes possible to put 4 "dots" with mouse click, and...
I have just seen a video of VOLUME PROFILE (not market profile) shown on the vertical axis. Where can one get an indicator/template showing this for MT4. The video was on a different platform but I do not know which one. smw10
Hi I need a script or indicator to set up the amount of lots. I mean, for example, set up for avoiding lots bigger than "1", or use lots whit risk more than 2%. Thanks
can i choose new order from function OrderSelect()? i think orderselect select by ticket, i want take value of order ticket automatically from my hitory. can i do it??
UPDATE - Apologies I have now found a bug in the deviation line calculation. In the process of rectifying it now. I'll repost the function when it's fixed UPDATE - Looks to be working correctly now, had incorrect variable as start point for the deviation line. Hi All, I recently had a requirement to...