MQL4 and MetaTrader 4 - page 406

To post a new topic, please log in or register
Hi all, Rudimentary issue for a rudimentary programmer.. Trying to take buy and sell signals off series of bbands forming in a zigzag fashion. Buy logical: bband breaks down, bband breaks up, bband breaks down, final take a buy at the 2 bband break to the upside. (switch order for sell...
void Process()   { . .       int      TotalSpread ; . .      for ( int x = HistoricalBars ; x >= 0 ; x-- )         { . .            TotalSpread = 0 ; . .               for ( int y = 0 ; y < NumberOfPairs ; y++...
string methodString= "MyMethod()";//execute methodString; ?????? How to execute a string as a method?
If the price has moved up 100 pips without retracing at least 20 pips, then open a sell. If the price has moved down 100 pips without retracing at least 20 pips, then open a buy. Once a 20 pip retracement has occurred, the count to 100 starts over from there.
Can anyone see a problem with this snippet: I first try to determine which bar the trade opened on, then using the result of that I want to use iHighest to locate the highest bar since (and including) the trade opened. But I get a strange result...Let's assume the trade opened on bar 0 (the...
Dear all, I did open this question several months ago but since then I couldnt find another answer but it is impossible to know that information. Please help me out to get rid of this idea at least. We have full bull candle. Then next candle open at Open Price. How do I know at the OPEN PRICE...
Hi my friends, I've made a mistake and change the extension of .ex4 files through its properties and by " open with " button, I mean I chose to open .ex4 files in "notepad" application and it is completely crashed right now. Does anyone know how to change it to its default condition in order to open...
  ManualTrader (2)
ManualTrader runs a continuous script to open Buy or Sell positions, place pending and straddle orders for instruments on multiple charts, maintain and close partial or full orders. Reverse orders, close half order, open OCO orders, delay orders for trading reports are also catered for. "Action...
Hello I want to update the last bars (e.g. last 200) bars on my chart of a symbol. To do that I am trying to do updates on historical data files of the appropriate symbol. I found a script here and adjusted it which now looks like this: #include <WinUser32.mqh>#define OFFLINE_HEADER_SIZE 148 //...
Say TimeFrame is 1 Mn, is Time[0] the first tick received after 00' Or is Time[0] the first tick send by the broker after 00' What's the precision of Time[0] ?
May I humbly ask a tough question ( is tough for me ) ? Is about writing a history file ( like FILE_BIN, FILEFLUSH, FILETELL, FILESEEK ;I don't really know what's these even after reading over and over and I never use those ) . Have you ever heard of a EA that can create an offline chart with live...
Hi I am Alex. Can someone teach me how to add alert to the following indicators:STOCHASTIC OSCILLATOR,MACD,MOVING AVERAGES. My e-Mail address is alex.edi4real@yahoo.com. Thanks
  slippage (1)
Hi all, I there a way to get the slippage value from the Broker? Thank you in advance for any clarification. Luis Neves
Hi, I wrote EA's for different pairs. but i like to use only one chart. Currently i run GBPUSD chart and strategy running for EA on 30min tf. now i add code for USDJPY with 4hr startegy also. EA not opening buy/sell orders? i take values from following code by opening GBPUSD chart. why USDJPY orders...
Hello My name is Donald. This ea works fine one a single chart. i use it on the small chart like petrolbars (with a value of max 25 ) so mine highest lost will be about 500 euro. But what i would like is that this ea will work on several chart at the same time. i hope that someone would like to fix...
Hi! My EA placing orders while i backtesting. when i run with live account no orders placed. Error message is: OrderSend() error - trade is not allowed in the expert properties Please advice me to fix this error.
//+------------------------------------------------------------------+//|                                                      ProjectName |//|                                      Copyright 2012, CompanyName |//|                                       http://www.companyname.net...
Hi, is there a way to know what was the the last tick that starts to process OnTick - Ask or Bid - except if e.g. Bid != lastBid <= newBid (what if the Bid hasn't changed and was re-sent?)
What function thatindicates the market is start open ? thank you
Hi, i have been backtesting for awhile with data from duckascopy with exactly the same data with different platforms from a few different brokers, i noticed for some reason that results differ on one broker than they do on the other, even though all the inputs of the EA i am tesing are exactly the...
Hi guys, I have back tested an EA on the Stategy Tester on MetaTrader 4. The results are great of it. I tested the strategy of a 1 minute time frame at a period of 2 years. So I activated the EA on three currencies. But all the positions (more than 10) are losses. How is this possible? I don't...
I am using 1 on MT4 EA created by me. but as far as programming the system to run through the various functions on MT4 that sometimes functions to be dropped qua.khong not know anyone like me and do not know how to overcome it? I noticed then that the rapid fluctuations in the price of this case is...
  mql5.com access denied! (11   1 2)
hey, i have a problem. Every time i wanna open mql5.com a warning appears(see attached file). can somebody help me?
I want to check for market close or open on the specific time or bar. I'm using iBarshift if return negative number market closed if positive market open. Does anyone know the better way? Thanks.
Hi, what possibilities are given to active/deactive ea settings on the chart? I found, that I can put buttons on the chart, now. Is it also possible to "create" a clickbox or write ON / OFF on the chart and change the value by clicking on the string? Are there examples for these functions?
Hi I downloaded my FXCM on my Windows 7 & Windows 8. Then I added new external files such as indicators, templates & experts but when I open FXCM I can't find them inside the software. Although I can see them when I open the folder of FXCM i.e. I see the files laying there with their names as I...
I have some problem in calling my indicator, please correct me the exact way of calling this indicator iStdDev Please help. //+------------------------------------------------------------------+//|                                               Rock-Trader-ME.mq4 |//|...
Hi I have very easy profitable forex strategy. I tested that on USDJPY USDCAD and GBPJPY. but it should works on all pairs. Every day from 8 00 to 11 15 i take max price and min price . my width is max - min if price reaches max i will open buy position : so my open price is max, my TP is max +...
Hi guys New to signing up to the forum as have only just got stuck. This question may be very simple and it may be that I have missed the answer in my search. I suspect the question is almost too basic to have been asked before?! I have coded in C++ before but am a bit rusty. Finding MQL4 is ok...
Does anyone tried to use memcached for data caching? I have indicators that take a long time to calculate and as long as I don't expect a value to change, I would like to take the value from cache. I love memcahced, but I wasn't able to find a usable dll with exported functions. Help will be...