MQL4 and MetaTrader 4 - page 1266

[Deleted]
Does anyone know how to switch from demo to live account? I had trouble switching it. I'm using MT4 platform. It's good if u guys can show me a step by step guide to this problem. Thanks. Regards, Jumadi.
[Deleted]
  Timing out.....  (1)
I have always struggled with this: can anyone help? I have just placed and order and it closes(for a profit), how do I "timeout" the EA so that it waits one hour to trade. I know I can get the last order close time perhaps and then write something to wait until that time plus an hour? Can anyone...
Hi! I'm looking for an indicator I found in NinjaTrader called swing high low indicator. I also got the Ninjatrader-code but I don't understand it well enough to be able to rewrite it for MT. Can anyone help me?
hello, friends, i met a problem when compiling the code below(abstracted): it always shows there are 'order send error 3',from the error codes, i can find that error 3 means 'Invalid trade parameters', i've check with the every parameter within OrderSend(symbol,OP_BUYSTOP,Lots_New,OpenPrice...
I would like to draw 4 short trendlines of about 4 candles width backwards from the current candle at 4 levels. Any ideas? I also want it to leave other lines on the chart untouched. Can I do this with a script because I only want it to draw the lines once depending on what I enter for the inputevel...
EA vs Indicator question.... I have this indicator, (.ex4) and I would like to attache it to my EA, but I dont know if it has External parameters available. All I can detect is Alerts comming out of it from time to time. Is there a way I could find out ? (about the Parameters) Right now im doing...
[Deleted]
XOdiagram1 first input: Boxsize 36, Reverseal Box 3, Candles 3000 Second Input:58,3,3000 Check the lenth of Spring green and red color if it is long bar it mean high movement/ sort slow movement check 58 for sort term trend
[Deleted]
Hello there, in order to optimize external variables' setting of an EA, I would like to write a script which sets those parameters ' value, calls and executes the EA. The EA every time writes its results into a file. Ideally, I could even set the security the EA is tested on from externally. Does
[Deleted]
  Using Bid.....  (7)
Okay, this is driving me nuts! How can I get ordersend to work when bid equals a moving average!? Can anyone put the code here so I can figure this out! any help is much appreciated...... if(MarketInfo(Symbol(),MODE_BID)==MA) { OrderSend(Symbol(),OP_SELL,etc...... MA is my moving average
Hi fellow traders and programmers, recently I have been evolving the idea of creating a Forex team. Finally, concrete plans have formed and I managed to fit this idea into my schedule. What I am imagining is the following: We form a group of 4-5 people including both programmers and traders. In...
[Deleted]
error unable to retrieve authenication code.. what could this be caused by, using metatrader with megadroid? please help, dont know will it still trade if this error is showing in the status part of the map?
[Deleted]
Hi Where can I can find the terms an condition associated with the MT4 platform? In particular I would like to know the situation regarding commercial use by selling your own EAs to third-parties. I see there are commercial EAs available online, so I'm assuming there is a way... Regards, Helge
[Deleted]
  iCustom problems  (6)
Hi guys, wonder if someone can give some clarification....i was always under the impression that an indicator can only have 8 buffers.... but this indy has (it seems, i might be wrong) 12 buffers. My problem is that I am trying to call the values of 2 of the lines in this indy...(have done this sort...
I have been back testing an EA I have been working on. I have been getting some good results as you can see from the test below. I cannot find any losers, and there are only one maybe two trades open when I get to the end of the run. Notice the steep drop at the end of the test. It is giving me...
Hello, I seach somebody hoe wants to invest a sum beginn at 400 Euro in a good EA programm that I have found, it is not a EA like one that is sell to everybody over the internet, make good performance like 100% in 2 day till a week, no martingale is used. But at moment I dont have much money to buy...
Is there a way to list the current times for London, NY, Japan, Europe in an indicator on the right hand side of the screen?
Hi there, I am trying something simple: To draw on the 10:00 AM candle a rectangle spanning from the High of the first candle to the Low of the second (@ 11:00 AM). I am using the below code, but not working, no rectangle is appearing - cod below:...
[Deleted]
Could you provide a function like OrderInformation() that retrieves the same information as OrderPrint() puts to logfile ? thank you (in the event of..)
[Deleted]
Hi Is there a way to save an array in Global Variables? I don't think MT4 has that ability. Any alternatives to access a Global (alike) array by multiple EAs? Thanks Pankaj
Hello there, I'm coding an EA, but have the problem of the EA keep opening orders after a trade is close as long as the conditions are met. (i.e. supose 2 MA lines when cross is the condition to get in the trade. The EA opens a trade, and if it gets closed on its TP or whatever value, the EA will...
[Deleted]
Hello, I would like to know something about the function Ordersend(). When I write : ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,StopLoss,ProfitTarget,"My order #1",16384,0,Green); How many orders this function delivers ? 1 or 3 (one executed order, and two pending orders ? ) Is it the same as this ?...
I need to be able to distinguish between normal buy and sell orders and balance deposits and withdrawals in the order history. Can some please tell me what the order type numbers are for deposits and withdrawals? I checked this documentation page but it's not listed.
I am using a loop to go through every object and deleting and creating objects while in the loop, and am having some difficulties. If I delete an object, what happens to the index array? If I delete an object with an index of 5, for example, would all object previously with an index of 6 and over...
[Deleted]
hi guys, I have read about how to code indicators and can do quite a bit with them BUT I am at a loss with what i am trying to do now.... can some one please help me understand how to code and indy for a seperate window that will display values instead of lines or histgrams... For E.g :...
hey guys, i get this error: stopped because of stop out how can i calculate how many trades i can open to not get in this error? my trades have are using stoploss. best regards, mike
does anyone have a buy and sell method that can handle any issue that any broker may throw at you? I ask this because I have found that there are so many ways a broker can kill a trade by requiring that you do things like take a trade then modify it afterwards. then comes the freeze d uration....
[Deleted]
Hi, I am trying to build a script that prints some info on the instruments when run, but I have a small problem. When running bidPLN=iClose("USDPLN",PERIOD_M1,0); for the first time I get no quote. (bidPLN=0). USDPLN isn't quoted on request, it is automatic. I get the same error when using another...
As an old stock trader, I would set my stops at 5% below trade entry and TakeProfit 20% above trade entry. I am attampting to do something like this here, but my numbers are not coming out right. I want to do this for buys and sells and on any currency pair I apply it too, but still having...
[Deleted]
can anyone see why this EA wont take a trade? i cant see anything wrong but maybe I ave been staring at it too long and cant see the wood for the trees... please help. I will add the EA and the indy it uses...
Within the strategy testor, when i run my EA, every time it show the error code in the Journal like this: "QWYSC EURUSD daily: load successfully QWYSC EURUSD daily: zero divide" QWYSC is the name of my indicator. however, if i add my EA into the EURUSD, in the journal, it shows no error: "Custom...