MQL4 and MetaTrader 4 - page 872

To post a new topic, please log in or register
This is part of the bollinger bands source code why is it neccessary to initialize the buffers to zero with EMPTY_VALUE ? Should I be doing this in my own indicators ? //+------------------------------------------------------------------+//| Bollinger...
Hello! When executing a script while visual backtesting, in order to learn how to do it right, i set an alert to do: Alert (PRICE_CLOSE); It returns the last actual price the pair has, shouldnt it return the last price in the visual chart, instead of the last REAL price the pair has?? Can I do...
Hello everyone, Problem with liquidateing positions when the price moves against the position by two times the ATR. The following portion of code describes the situation. //+------------------------------------------------------------------+//| Checking for Close order...
Hi, I'm using the SlopeDirection_MTF indy, and for some reason, it doesn't update the line when the current candle closes and the new one is forming....I have to switch to another tf and then back to the one I'm on for the line to paint. Is there a way to fix this in the code? I'm willing to pay...
I read the "Secrets of MetaTrader 4 Client Terminal: Alerting System" and it occurred to me that if you can use an .exe file instead of the sound file, couldn't you use the MT4 email .exe file (I'm not a programmer so I'm taking a leap of logic here) to have the alert send you an email through the...
First let me tell you i dont have any knowledge of programing in mq4, i found a ea which work quite better but opens a constant defined lot even though equity increase many a time, so i would like to know the code to be added to it so that it can increase the trade size automatically as the equity...
I came upon a realization today that history data are not all created equal. Data from some brokers may be more complete than others while other data still may contain many time gaps for which price data is not defined. This is very disconcerting.I downloaded a second copy of metatrader from the...
My Question is which time frame 5 minute or 15 minute the following EA will enter faster so that I have better entry price nad lsee slippage ? Thanks in advance and goodluck in trading //+------------------------------------------------------------------+ //| Ema Crossover...
Hi,  I have used Paulo Costa Hedge EA for past few week and it make a some profit using this EA. Need someone to help me modified this EA when the first order it will order buy and sell together. I believe it can make the profit double. Need some to help me because it have zero knowledge how to make...
Can someone recommend the best mobile device for MT4 mobile? I'm looking for one with a large screen and preferably runs on ATT. Thanks in advance.
I want to take input from the user the first time a mql4 program starts. The input can be as simple as one number. Is this possible? Thanks.
do you know how can I make that metatrader do backtesting with symbol created by me (is a stock)? ... I already created the hst file and is loading perfectly and updating in real time., but now i need to do some backtesing with that data. is it posible?
//---- input parameters extern double Lot1=0.1; extern double Lot2=0.1; extern string Sym1="EURUSD"; extern string Sym2="USDCHF"; extern string Operation1="buy"; extern string Operation2="buy"; extern string ExpertName = " Separation Alert EA"; extern double MidlineEURUSD = 1...
how do i sell the my indicator without giving out the sorce code and make to where i can make them pay for services
Hello every one, I am working on a concept called "Virtual Hedging". It will allow MT4 users to enable hedging on their local computers and user can buy and sell a pair at the same time. The net trade will be sent to the broker. In this way, broker will receive either buy or sell request from the...
Hello, Does anyone know if there is EA or library for MT4 VOM. I see it in MT5 but no Virtual Order Management for MT4. Please let me know if some one can guide me to a library, EA etc which can be used to buy and sell order at same time as is done in VOM. Thanks, -kar
  ordersend (3)
if can volume=0.000001? such as follow : OrderSend(Symbol(),OP_BUY,0.00001 。。。。。。
Hi Everybody, I am actually discovering the programmation on MetaTrader and i'm looking for somme basis programm to train myself. Thaks for your help
Hi, I’m trying to write an indicator for the fozzy strategy,which briefly, buys when the RSI crosses the MA and is below the mid BB, andsell when RSI crosses the MA and is above the mid BB. The issue I am having is when I change timeframes/currencyall the arrows disappear and only reappear when I...
My PC processor is core 2 quad with 16MB L2 chash with 4GB of RAM. meaning that the PC is fast enough to do the testing at fully speed. So when i run the optimization process & the testing for exprerts,, it needs around 23hours & some times 40 hours .. it is a very long time to wait for each...
Hello, I wanted to know if there is a way of changing or customizing the "trade" screen so that I can see a running total of my positions. Say I am 5M short on EURUSD and another 10M short on EURUSD...is there a way for me to see 15M TOTAL Short on EURUSD? any help would be greatly appreciated....
Hellou MT4 heroes,.. need a trivial help,.. got buy and short script,. !!! What are the possibilities to join them ? thx for advices,.. V
Hi All, I believe alot other had some idea of consolidating same currency (ex. USDJPY) price feed of other brokers. but is there away to obtain multiple feed in one application? nice to do it on MT but any other option is also welcome cheers 504
  Time alert (1)
Hi all, I would like to get an alert at a specific time (user defined). Could anyone kindly write this simple code .. :) Cheers
I have a grid indicator I wrote, I want to see the prices of each line on the chart itself, not on the right with the other prices. Is there a way to anchor it to the X-axis so it's in a fixed position on the right side of the chart that allows the text to move up and down with the lines on the...
kon nichi wa! does anyone know if MT4 can create a chart with reversed x/y axis? for example, x axis is time frame and y axis is price so by reversing it, x axis will be price and y axis will be time. ultimately what i am thinking about making is x axis as tick increment quantity and y axis as time...
I'm new user and need help and best way to setup range bars, and also put Woodie's indidators on. Also appreciate any suggestions ref. the same - Thanks
Hi, Is it possible to change chart color in MetaTrader 4 ? For example, is Macd > 0, color Green is Macd < 0, color Red Thanks !
  Arrays for chart objects! (12   1 2)
Hi All, Can anybody fathom this one? I want to assign a particular variable obtained from a chart to an array diff[]. In the code below symb[] has already been assigned at a global level. I then want to place the calculated value i.e diffx on to some chart space to use as an indicator. This code...