MQL4 and MetaTrader 4 - page 1327

[Deleted]
Hi everybody, First of all I would like to introduce me. I'm Jean and I'm new in this forum. I'm passionate of FOREX market which is the most exciting one for me. I discovered MetaTrader platform few months ago and I can't use other one anymore after having discovered it !!!! I'm trying to create...
[Deleted]
Hi, I try to search for ways to take screenshots containing indicators in EA but to no avail. Anyone have any idea? :)
[Deleted]
  TS Scalping on M1 (~250 pips/day)  (92   1 2 3 4 5 ... 9 10)
Hi all! I am sharing a very interesting system based on CCI. Trade on EUR/USD M1. Always SL - 10. Then trailing 5. Do not trade on the news. Buy CCI>0, RSI>55, Haken gives an up signal. Sell CCI
Hi everybody,i don't understand why this indicator did not work.Also i am looking for indicator that shows yesterday trend.I really need help!!!!
Hi I am trying to develop a program where I get notified when the price closes above or below the 48SMA. The code works well by the "SendMail" function sends an e-mail at every tick. How do I make it so that I get an e-mail in the following way: When the close of the last bar is aboe the 48SMA I...
[Deleted]
hi everyone~ I am a newer in programming on mt4 from China my problem is when I use sentence OrderSend(Symbol(),OP_BUYLIMIT, BasicLots*MathPow(LotsMultiple,i+1),p+ OrderDistance*Point+DelayPoint*Point,DelayPoint,p+ OrderDistance*Point+DelayPoint*Point-MinStoploss*Point,0,"lock",0,0,Blue); the mt4...
I wonder if someone might be able to explain what exactly would occur if my EA was to generate more than one order signal on the same tick ? The EA I'm working on uses more than one trade criteria and there can be circumstances where more than one generates an open new position signal at the same...
[Deleted]
Hello, I have never programmed before and am new to MQL4 and looking for some help when I come across something I can not figure out. I am working on programing an EA that places trades at the break of a fractal line. My first problem is my rule for not placing a trade if there is an open order is...
Do you have the same problem. When my EA closes ALL positions in Demo it works fine. But with my real account Alpari UK, nearly every two times it lefts open positions. Any idea ? thanks Total=OrdersTotal(); if(Total>0 && Error!=0) { for(i=Total-1; i>=0; i--) {...
[Deleted]
  Help out anyone who cares!  (65   1 2 3 4 5 6 7)
how to insert a simple indictor into expert code ? to take its readings from n4 ( put it in the code and not call it via icustom )...third day I'm struggling... the indy itself : #property copyright "Krokus" #property link "" //---- #property indicator_separate_window #property
[Deleted]
hi, someone please code an ea for this wonderful indicator. rules are- buy when indicator is blue and exit when it turns red and sell when red and exit when it turns blue. also an option to set lots and take profit.
[Deleted]
Hi Could someone please kindly convert the following metastock code to MT4 format Many thanks for your help HA_Tema_ZL avg := Input(" Temagemiddelde ? ",1,200,55); haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2; haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4; TMA1:= Tema(haC,avg); TMA2:=
Hello, I have like four nested while loops, I need to exit the top loop (that is the whole instance, all the loops nested inside the top loop as well) under a certain condition. For example, the top loop is: while (x < 4); { } Now, I want to exit the top loop if x = 3, and proceed to x = 4 For some...
[Deleted]
Hi everyone. Does anyone know of a way to compute the bar count of the bars ONLY on the screen, not the total bars on the chart? An alternative would be to get the earliest datetime on the screen only (not on the chart). I'm trying to make a fixed-pip grid indicator that doesn't 'shrink' up when the...
[Deleted]
Hi, i've been searching everywhere how to make this kind of indicator. Please see the picture, i really need indicator that can show how many bars since last time MA Cross occured, and displayed in chart. Is there anyone can help with this?... I really appreciate that. Thanks.
[Deleted]
Hi !!! Is there somebody from Czech Republic or Slovakia? Pls, contact me by kudlacek@email.cz. Thank you :-)
  Strategy Tester Gets Stuck  (24   1 2 3)
Attaching here is the code of a simple EA that am trying to write based on SMA but while testing it on strategy tester, the tester opens an order and gets hanged. Plz help.
New article A Virtual Order Manager to track orders within the position-centric MT5 environment is published at mql5.com: This class library can be added to an MT5 Expert Advisor to enable it to be written with an order-centric approach broadly similar to MT4, in comparison to the position-based...
1- jMasterRSXv1C [attached] with DC-Set [attached] Pair: EURUSD Time Frame: M15 Results: APR10: 504 pips MAR10: 517 pips FEB10: 242 pips JAN10: 482 pips DEC09: 539 pips Let's hear it from you
[Deleted]
This is the line that starts the EA. Where can I read about PostMessage commands, in particular the WM_COMMAND parameter? PostMessageA(Parent(), WM_COMMAND, 33042, 0);
[Deleted]
Hey, Does anybody know an indicator, which shows the percent of change of the price? Thanks
I' m not a programmer.I want to calculate the trend with this methot, but ı cant, please help me. /+------------------------------------------------------------------+ //| altoplam.mq4 | //| Copyright © 2010,AYCEM...
Hello, i want to write a simple code that prints out the value of a counter variable that starts at zero and then counts upwards by 1 each time a tick comes through. My code does not work for some reason and i am stuck. here is the code i'm using: int start() { int Counter; if (...
[Deleted]
Upon the completion of a trade, I want to export the particulars of the trade to a CSV but I am having problems with orderstoploss(). During the trade, the stop loss is trailed. Ideally, I want to know what the stop was set at originally when the trade was entered. OrderStopLoss() is giving me the...
Can anyone please help me find the bug in this script. It works in the EA, but wouldn't work standalone.int start() {//Input constants   double Lots = 0.05;       //Lot size   int SLN = 250;             //Normal Stop Loss   int SLR = 250;             //Reverse Stop Loss   int TPN =...
Hello, I'm having some difficulty writing a script that will calculate the average pip movement over a period of 20 days for every currency pair, and then exporting those values to a .csv file. Here is the code: int R20=0;   int i=0;   int n = 0;   int handle;   string currencies[100];   string...
Print statments or 'Alerts' for Debuging?
i want to know metatrader serive provider that they provide zinc, nickel,lead, aluminim trading in mt4 platfrome ? mangeshdsonawane@gmail.com
i was tried out the metatrader indicator in to the equis metastock but unable to this eroor did any one know how to use metatrader(mt4) indicator into the metastock ( equis metastock, advance jet ) or any other conveter decompiler or any info that help me mangeshdsonawane@gmail.com
  MathMax  (7)
Is there a shorter way to do this? int a,b,c,d,e,f,g,h;MathMax(MathMax(MathMax(a,b),MathMax(c,d)),MathMax(MathMax(e,f),MathMax(g,h))); -Steve