MQL4 and MetaTrader 4 - page 60

[Deleted]
Hi guys, Investigating the logic of one indicator I noticed that iMAOnArray() function returns different results for the same values depending on whether they are represented as indicator buffer or static array. I created a simple test that calculates Simple MA of 3 values with the period of 3....
even i use iCustom i cant get price of last zigzag can some one help plz void OnTick () { double arr[ 5 ] = { 0 , 0 , 0 , 0 , 0 }; for ( int j = 0 ; j< 1000 ; j++) { double zigZag = iCustom ( Symbol (), 0 , "ZigZag" , 12 , 5 , 3 , 0 ,j); if (zigZag != EMPTY_VALUE && zigZag !=
[Deleted]
  kernel32.dll  (11   1 2)
hello, i need kernel32 .dll for version 4 build 1090. can you help me
Hi exist some metod for protect a mql4 EA ? i saw this https://www.mql5.com/en/articles/359 but is only for mql5 i suppose exist the same papre but for mql4 ?? thanks at all
Good afternoon everybody, I recently created an EA and is working exactly as expected. The signals are being delivered correctly and it is opening them accordingly. Everything is perfect. Now, there is one fault which I already have it contemplated on my manual trading and it is that it only has to
Hi there, does anyone know a way to get more values for the Strategy Tester spread than the currently offered 2, 5, 10, 30, 50, and 100? Might there be a jury rig? Thanks and best, Jeff
Help me correct my logic on this. int upcount,downcount; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { //--- //---
Hello, I would like to create an application for MT4 that can communicate with an other application I will create on my PC. I've seen that there are many open-source bridges available, one of which is ZeroMQ. However, I couldn't find it for Windows, and besides, I find it complicated for what I need
Hello, is there a TimeTradeServer(); in MQL4
hi i have a big script for this reason i past only a part , i notice normilize double some time work some time not work anyone have idea why ? if (ctrlclick == 1 ) { int shift = iBarShift (Cross_Correlato, 0 , dt); Print ( "index of
[Deleted]
Suppose I determine that a stop loss has occurred. In the start() function, how would I determine the number of pips I have lost? is it as simple as determining the price of the original order and determining the difference between either the Ask() or Bid() (depending on whether the original...
NormalizeDouble ( Close [ 0 ], 0 ); a simple question please: in order to remove the digits after the . how to get the integer value that will not be modified I am getting 2 for values like 1.6 while I need 1
hi i look this tutorial https://www.forex.in.rs/jump-to-date-time-on-mt4 i try to go at 2019.09.03 08:00; but not move , exist some free indicator for do this ? or anyone can explain me why not move and remaning at today ?? what wrong ? thanks
Hello, i have a feeling that its not possible but anyway here i ask: can i pass dervied class by base class pointer: Thanks for help example: class BaseClass { bla bla bla; }; class DerivedClass : private BaseClass { bla bla bla; }; void myFunction(BaseClass* blabla) } bla
Then signal providing doesn't work, while there is no problem with my broker or MT4😬
Hi i try to use in my EA the combo shift + mouse left click i build a EA in this mode (i write only a part because is so long a script but if someone want all i can past ) if (id == CHARTEVENT_CLICK ) { //--- Prepare variables int x = ( int )lparam; int
hi , i have a script with one button i want when i push it want execute a function , how is possible do that ? //+------------------------------------------------------------------+ //| BUTTONCLICK.mq4 | //| Copyright
When i use two code below, i get zero (0) return. I using it in OnTimer: double bid = SymbolInfoDouble (symbol_1, SYMBOL_BID ); double ask = SymbolInfoDouble (symbol_1, SYMBOL_ASK ); This is my full code: void Make_Type_4( string symbol_1, double vol, string type_comment, int type_buy_sell, double
Hi, I get undeclared indentifier for A when printing from void type. void down_count() { for ( int i= 0 ; i < 50 ; i++) { double histo = iCustom ( NULL , 0 , "MACD True" , 2 ,i); double val1 = iFractals ( NULL , 0 , MODE_UPPER, i); if (histo < 0 && val1 != 0 )
hi i want doing a differential variation percentage, i build a part of script in this mode int shift = iBarShift (Cross_Correlato, 0 , dt); Print ("index of the bar for the time ", TimeToStr(dt), " is ", shift); Print ("NZD ", iOpen (Cross_Correlato
  Make a Fibo line disappear  (17   1 2)
Hello, I'm working on an indicator and using the fibo tool to plot lines. Everything works as I want except one minor thing. I would like to get rid of the fibo slanted line shown below in first screen shot.. In MT4, I can edit the object and pick Color = NONE and it disappears (see bottom screen...
I'm running an EA and MT4 Tester is calculating profit wrong. My account is in MXN pesos. I have a SL of 3,000 ticks and a TP of 10,000 ticks (USD/MXN), tick value is $1 MXN peso. In tester i'm using a spread of 2 (not real, just to vaidate profit results). See examples here and file attached....
Hi all I wonder if its possible to have OrdersTotal() on 2 different charts. I want to use OrdersTotal()==0 (if there's any alternative) for opening trades on different charts(Open 2 trades (buy & sell) on EUR/USD & 2 trades (buy & sell) GBP/USD). I tried several ways to for it to work but I'm not
Hello! So, I have Expert Advisor that doesn't work and gives me those two errors: "Unexpected end of program" and "Unbalanced Parentheses". The Problem seems to be where the OnDeinit starts, but somehow whatever thing I try to do, I get more errors that I can't manage to fix... int OnInit()  {...
Hello! Faced with a problem... I wrote the calculation of the lot relative to the stop loss: double lot= NormalizeDouble ((risk_money/(dist/ _Point ))/tick_value, 2 ); where risk_money=$200; dist=0.00053; tick_value=1.0; Everything worked, but when the stop loss was triggered, it turned out to be
I'm using this EA News that I found here in the forum and I would like to know if someone could help in some way to improve it. Put in a filter that allows you to choose exactly which currency pairs and high impact news you want to put in each currency pair by the name of the news. I'm asking for
I have this indicator code but it does not display any data on chart (in form of histograms). please some one should check it out for me #property indicator_separate_window #property indicator_levelcolor DimGray #property indicator_buffers 2 #property indicator_color1 Green #property
// delete pending order if (OrderDelete(ticket)) return ( 1 ); }
Dear all, I am creating my system to open two pending orders - BuyStop and SellStop Next, I want it to Close or Delete one of the Stop order when Buy or Sell is executed. Example: Case 1: BuyStop and SellStop are Placed BuyStop is executed - Buy. Then, SellStop should be closed. Case 2: BuyStop and
I tried this but it doesn't work. ChartSetInteger ( 0 , CHART_WINDOW_IS_VISIBLE , ChartWindowFind (), 0 );