MQL4 and MetaTrader 4 - page 675

To post a new topic, please log in or register
hi, i recently downloaded metatrader4, for the opening the account bit i filled in all my personal details then clicked next, then clicked next again, then it says wait and the load bar loads, the load bar loads up and it is meant to display the username and password and investor password but it...
Hi, I keep getting ordermodify errors 1 and 130 when executing this code: Please note that the "Lot" variable is predefined, and the call to the LOT() function is not being used right now. //Zero Stop      bool StopMoved;      for(int z = 0;z<=OrdersTotal();z++){   OrderSelect(z,SELECT_BY_POS...
Hi there, I would like to add a new swap group on MT4 admin, however, I don't know to do that easily without doubling the symbols... I mean, we can change swaps on symbols, but without adding a new symbol, we couldn't add a new swap on the same symbol... I don't want to see 2 eurusd pair...
Hi gurus I'm trying to design code that would limit the number of trades per (time frame) I am confident with my knowledge of making time codes thanks to the gurus in the forums etc. I'm considering making some code and OrdersHistoryTotal to accomplish this. Am I headed in the right direction ?...
Hi there, second time this happens ? Trading halted ? I can't place orders ? Someone any idea why ?
Hi All, I have been trying to get my EA to place an order with the same previous stop loss size (it is based on a candle low/high) for hours now with no luck. Basically, I would have to store and use the last stop loss value and call it for the order below. Please note the order below is seperate...
Yes Im new that being said Im new to codeing as a rule I trade naked however the pivot points calculater i use has tags I so like its accuracy for my setups problem is the tags on the levels are interupting my vision i wish to have the lines not the tags that read h5 lb target,h4 long breakout...
I am trying to use the method of opening lots based of the percentage of equity I want to risk. Print("Calculating Lotsize");            Balance = AccountEquity();            StopLoss = multiplier*atr24;            Print("StopLoss"+ StopLoss);                     //LotSize =...
Can you help? I am learning MQL4 and working through the MQL4 tutorials. I have been working on the ROC EA example and have made some tweaks to the code so all it takes for a trade to be made - either opening or closing - is the crossing of one specialised MA(Moving Average) over another. The MA's...
I WANT TO BE AN IB OF FOREX,CAN ANY ONE PLZ GUIDE ME WHICH COMPANY IS GENUINE AND GIVING LOW SPREAD AND HVE NO SCAM TILL PLZZZ
Normally a bitwise shift operation of 32 bits gives 0x00000000, all bits being shifted out of the integer. I've noticed the code n = n>>32; m = m<<32; lefts n and m variables unchanged though they should be assigned 0x00000000 ! However n = n>>31>>1; m = m<<16<<16; z = z<<31<<31; does the job and...
New article Mechanical Trading System "Chuvashov's Fork" has been published: This article draws your attention to the brief review of the method and program code of the mechanical trading system based on the technique proposed by Stanislav Chuvashov. The market analysis considered in the article has...
Hello traders, I want to make my EA open a position only at the hour bar close price, after the condition has been met. Not immediately the next tick after the condition is met. I have tried using iClose(EURUSD, PERIOD_H1, 0) in place of Bid and Ask in OrderSend but it still opens the position in...
Hello all, I am having and issue sending rate alerts to my email. I have the SMTP information and have entered my details and in the journal I am getting different error messages. I am getting - a "not enough space error in the journal". Mail:login to smtp.mail.yahoo.com failed If anyone knows...
HEY GUYS M OPEN AN ACOUNT OF 10000$ BT I DNT HVE 80-90% ACCURACY INDICATOR CAN U PLZZ GUIDE WHICH INDICATOR IS BEST TO USE
PLZ ANY KNW THAT PLZ GVE ME THANKS...
Hi All,, I have a strange situation as follow: MA1_DN=NormalizeDouble(MA1-ATR1,4); .................. if (OrderStopLoss()!=MA1_DN) { Print("MA1_DN=",MA1_DN," OrderStopLoss=",OrderStopLoss()); OrderModify(OrderTicket(),OrderOpenPrice(),MA1_DN,0,0,Red); } It returns : 15:25:40 2005.03.31 01:00...
After attacking the graphic indicator TrendLine were formed between the black lines and gray candles. It does not happen on all TF. they are formed on the market. I know what they mean? Thanks and sorry for the trivial request
Hi, is there any way to get live commodity & financial futures charts into MetaTrader4? Ideally I'd like to feed this data in from InteractiveBrokers whilst using Oanda for FX AutoTrading, does anyone know if this is possible? Thanks a lot, Ye Ling
Hi, I managed to setup an email alert and it works fine till today. I receive an error message "mail: not enough space...." Anyone knows how I can rectify this? A million thanks!
Hi, Do the Limitaions of the Backtest Expert-Setup window (it has three tabs: Testing, Inputs and Optimization) really work (and how)? I tried to use e.g. "Maximal drawdown". :( So I first enabled "Maximal drawdown" and then tried to change the default value 70 to 90. But as soon as I left the value...
  EA 2009 (4)
I have this EA, but know very little about programming. i would like it to turn on/off long and short orders based upon a certain ask/buy price. i know it is possible but do not know how to accomplish it. any help would be appreciated.
I am using the bbsqueeze indicator as part of an EA I am building and yesterday a strange thing happen; at somepoint, while I was writing the EA the indicator, which has been working fine both on its own and as part of the EA stopped working correctly in the H1 time frame but only on the two pairs...
Hi folks How can I define that an indicator begins at the start of a month an ends with the last day of the month, then starts with a new illustration for the next month. For example: 1st of April: the maximum of the momentums (march to april) of two pairs is measured and for april the ATR of this...
Hi, Im building my first ea and would like some help figuring out how to call the Forex King STS Indicator from the EA i want to use the MA1, MA2 values and also their "trend-range" module. Attached i have posted the indicator i pretend to use, the signal will indicate when to close my trades, if...
If I call a custom indicator in an EA using iCustom, what price is used (O,H,L,C) to calculate the indicator value? Is is 'close' price by default?
Any body know the code for this strategy When I Click The EA the following steps i want its possible? Step 1 : Buy Order TP-20 pips SL-24 Pips Step 2 : Sell Order TP-20 pips SL-24 Pips Step 3 : Pending Order Sell Stop Price (First Step Buy Order SL) with TP-30 Pips SL-24 Pips Step...
  buffer issues :( (24   1 2 3)
Hi guys... Im trying to learn how to use buffers properly in a custom indicator call... so I found an indicator that plots multiple HA on a single chart and I wanted to code an indy that will make an alarm when the color changes... here is where things get weird coz I can get it to work...
hello guyz, i lost my money in forex market bcz i always always using new indicator bt plz plz plz can any having zig zag will not jump i want indicator which is fixed on zigzag plz anyone hve then plz gve me...
HI,I want to send some data to a php webpage and get the information there. I think that If i can do that with requesting a webpage and get the data with GET method.for example send a request to "http://www.test.com/index.php?a=1&b=2" .I need a code for that in metaeditor 4 . Thanks