MQL4 and MetaTrader 4 - page 1573

[Deleted]
Is it possible to seperate the bid and ask data feed and chart them both ?
[Deleted]
Hello I have set up a different copy of metatrader with historical alpari data -- this copy never connects to a server in order to preserve my historical data. However, I would like to run backtests with different spreads and stop_levels from the ones used by the last account that i used with this...
I designed my EA based on the M5 chart. I'd like to set the close price of bar[2] of the M15 CHART as the stoploss price when opening a position. How can I quote the price? Thanks!
[Deleted]
Hi,could you help me translate a Metastock indicator to metatrader ? Here's the code : Period:= 15;denom1:= If(HHV(H,Period)-LLV(L,Period)>0, HHV(H,Period)-LLV(L,Period), 1);P1:= Mov(((C-LLV(L,Period))/ denom1)*100,3,E);denom2 := If(HHV(P1,Period)-LLV(P1,Period)>0, HHV(P1,Period)-LLV(P1,Period),...
[Deleted]
I'm learning mq4 and have one that displays 2 ima's. But they are bothdrawn in read. How can I control the colors and thickness of theselines? I'm computing the 2 ima's in the start() function. thanks, William
[Deleted]
I am looking for a programer in of course this Mql4. I would like to see what you have accomplished or a resume or sorts.
What is the best data to use on strategy tester ? That downloaded from meaquotes or the data from Alpari? What is the best broker to use?
Hi, I want to calculate de momentum of a EMA, but the result is only a constant 0... void dT1(double ro, int n, int ExtCountedBars) { int pos=Bars-2; double MMES[]; if(ExtCountedBars>2) pos=Bars-ExtCountedBars-1; while(pos>=0) { if(pos==Bars-2) MMES[pos+1]=Close[pos+1];
[Deleted]
Is there a way to plot the %-price change per day on daily charts...? (closed price) Thanks, Gilbert, Brussels, Belgium.
[Deleted]
i want to add a type of commodity, and use mt build model to auto trade it, how to do? thanks.
[Deleted]
Hello, I don't know how to write this into my EA Pair : EUR/USD Initial Lot : 1 Lot Decrement : 0.1 Lot First price : 1.5500 If I have a signal to BUY : - Open 1 Lot at 1.5500 - Close 0.1 Lot at 1.5505 (keep 0.9 Lots with OrderOpenPrice at 1.5500) => Close the last 0.9 Lots IF I have a signal to...
[Deleted]
Deinit() runs when the chart symbol is changed, time period is changed, or the EA removed from the chart. Is there a way to determine what caused Deinit to run? I have objects on my chart I want removed when the EA is removed but I want them to remain if the symbol or time period is changed
[Deleted]
I put the Heiken Ashi indicator on a chart, leaving the original candlestick there and not changing their colors.  The HA candlesticks were pretty different from the orginal candlesticks.  The highs and lows were close, but the opens and closes were off.  Anybody know why this is?
[Deleted]
I'm creating an indicator that helps me see when I should consider opening a buy position. For the most part I'm very satisfied with how well it works with my system. However, the one situation I can't get my indicator to downplay is the fake-out that happens about 1/3 down on a price decreasing
[Deleted]
I wrote an EA that does work but not the way I want it to. I would like it to close the buy position when the histogram goes red on the bar close and then the opposite so it would be in the market all the time. I can get it to stay in the market but it just wont sell or buy at the places i want it...
[Deleted]
Hello All, Our team wanted to get some feedback from the development community on certain problems you maybe facing as a developer and it'd be a big help if you could take some time to find out the survey below. When we're done collecting answers, I'll post the results on this forum so everyone can...
[Deleted]
Hi all, would love to have the excuse of being A newby, but have been addicted to FX for 3 years !! Well I would not trouble the MQL4 community normaly ?, but as tini tiny problems go this one is HUGE, im not very computer literate & dont know how to use spell cheque so if Huge is not wright try...
Is this possible to use strategy tester in a program? I mean something like testStrategy("EURUSD", from, to, ..., EA_BALANCE) returning value of balance. I would like to do some automatic tests for my advisor and it would be very helpful. Thanks in advance.
  Advanced trading.  (146   1 2 3 4 5 ... 14 15)
At this time we could start a thread about classical trading methods to traders with a bit of experience with the main goal of learning about trend trades and counter trend trades using classical indicators but gathering, momentum price and time. To gather this three elements the triple screen setup...
[Deleted]
Hello, how can I create include file (.mqh) for txt file with more then 1 field. Thanks alot .
  Day Trading Time  (3)
I have an EA and I want to open trades from 05:30 to 12:45 How can we code this? Ionathan
1.How do open,read and erase from sembol.xls file data.? sembol.xls is included field1,field2. example; string sem=fiels1; 2. How do erase sembol.xls ?
[Deleted]
Is there an indicator that draws the 50% of the day as highs and lows change throughout the day? It would be valualbe to see the 38% and 62% as well. An option to see yesterday's levels would also be good. These levels are very strong on GBPJPY for scalping and very high percentage.
[Deleted]
I would like to see what template I have applied. This helps in saving different versions with similar names etc.. How do I add code to the script so that the name of the template appears in the screen, either in the chart or on a display bar, please ? Thanks.
[Deleted]
Hello everyone, Can someone tell me why this fresh installed indicator (wich looks realy very accurate) seems to be freezing on the last generated bars on every chart...?! It seems like the indicator is not activated or is waiting to be enebled for further trading(s)... ForexOFFTrend.mq4 So, if you...
[Deleted]
need help... :)  i try make code to headging in one currency... exampel : buy gu 1.9755 price go to 1.9735..... that mean -20pip..... new OP SELL 1.9735 TP 20pip......and close all if SELL TP scan profit : double  ScanProfit(){      int total = OrdersTotal();   double profit,sprofit,bprofit,bval...
[Deleted]
I found a EA that is named Pipmaker v5 Neo. If fires off trades like a mad man. Sometimes its makes money but most of the time it looses. So, I have been tweaking this thing to make it loose about 90% of the time. Now the Question is how do we change the buy to a sell. In other words if it fires off...
Could someone please assist. I am trying to set a trailingstop for two different Symbols simultaneously. Could someone plrease take a look and assist where possible. Many thanks. //setup Stoploss parameters {     if (total>0)   {   for( int cnt=0;cnt<=total;cnt++ )       {        OrderSelect(cnt...
[Deleted]
Hi, I'm newbie to MQL, and there is something I don't understand in the iMACD function. It has a "shift" parameter which is, according to the docs, "Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago)." I believe all the indicators...
Hi, I am a newbie here. I need help to change the current Fibonacci retracement level setting from (0, 23.6, 38.2, 50, 61.8, 100) to (0, 0.25, 0.382, 0.5, 0.618, 0.75, 1). Or is there a custom indicator whereby you guys can share. Really appreciate if you can teach me. Thnks warmest rgds Koon