MQL4 and MetaTrader 4 - page 144

i can not figure out what is wrong the buy close well .. but the sell do not close !! as you can see in the photo attached. here is the code : //---Reverse Option if ( OrdersTotal () < 2 ) { int ordertype = OrderType(); if ( OrderSelect
Reading account history tab (MT4 Terminal Window). After reading https://www.metatrader4.com/en/trading-platform/help/overview/terminal/terminal_account_history seems that red colored cells indicate trade ended in SL while green colored cell trade ended in tp. How about the non colored cells? Thank
ea expert. how to add these gains in the chart in ea expert
I have written an EA which works perfectly fine on MT4. However, when it comes to running the same entry positions on MT5 it just doesn't wotk. I have spent hours tryna get it to work but cant seem to see what I am doing wrong. Below is the MT4 snippet of the source code. void OnTick () { if
Hi guys. I am aware of how to code a boolean external variable to be used at the parameter window when running the EA. But I want to be able to code a check box to be used at the parameter window when running the EA since check boxes are handier. How to do that please
hello :-) I am looking for a very simple EA (mt4) that repeat a trade automatically once it is closed out. Lets assume I manually create a Long ENTRY Order at 1.30 for 1 lot, with a SL at 50pip and TP at 100pip Lets assume my Long ENTRY Order gets triggered and thereafter my TP or the SL is...
Is there a way to ignore the default hotkey functions in MQL4. Example: Pressing up arrow does a fast scroll and navigates a couple of bars to the right. I want to ignore it and have it do nothing so that I can make a custom hotkey function for the up arrow with CHARTEVENT_KEYDOWN . I've tried
Why Metatrader don't have Server Trailing Stop Loss? There's a lot of trading platform that have Server Trailing Stop Loss. I think its winning feature. Why you don't add it?
The MetaTrader 4 platform update will be released on Friday , July 23, 2021. This version provides error fixes and platform stability improvements. The new build will be available through the Live Update system
Hello, I need a little help. Some time ago, a friend of mine quickly made a module. It worked well, but obviously there are some changes and now it gives me this mistake. // Collect data - array sorted by profit (profitable last) for (pos= 0 ; pos<total; pos++) {
Hi guys, Have run into a small problem regarding chart ID's. I have this code in a script: long chart_id; chart_id = ChartOpen ( "GBPUSD" , PERIOD_D1 ); GlobalVariableSet ( "chart_id" ,chart_id); Print (chart_id); This is the 'Print' output: This is the Global
[Deleted]
Hi all, In the moving average property box there is a tab called level; Is this standard deviation or pips or what? could some3one explain this Thanks
This is my snippet, i want to know is there some thing wrong with my code or how do i get these values properly double kf1 = iCustom ( NULL , PERIOD_CURRENT , "xixi_tz_1_10" , 1000 , false , true , false , false , clrBlue , 5 , clrBlue , clrBlue , clrBlue , 10 , 15 , clrBlue , 0 , 0 ); double kf2 =
hello mt4 asked me proxy serever during instalation
I want to count past 200 candles that they has highest standard deviation or lowest standard deviation value. double DeviationArray[ 200 ]; for ( int i= 199 ;i> 0 ;i--){ double deviationValue = iStdDev ( Symbol (), Period (),StdDevPeriod, 0 , MODE_SMA , PRICE_CLOSE ,i);
I have been writing and working with MT4 EAs and indicators for more than 10 years. But I am, at best, very unskilled. So, I'm not sure if I just need to be pointed in the right direction or whether I need to hire someone (tough to contemplate right now) to help with the following. From time to
Hello everyone! I'm starting to work on a simple strategy (just placing SHORTS) but cannot figure out why the EA is behaving as per attached picture . It is closing the SELL completely against the programmed logic. Your help is appreciated. Thanks in advance!! #property strict input string iNote_1
i need help for my ea because ea not multiply lot if win.please anybody help me?sorry for my English
  GMT and offset calculations  (27   1 2 3)
It really frustrates me that the MQL4, does not provide for time calculations, or even to say the least, the abilityt o pinpoint a specific time based off of GMT. Someone out there must have built a tool that calculates a targeted time based off of GMT offset and DST evaluations. Please share with...
My code shows no errors but somehow its not running on backtest... I'm new to MQL4 programming and I tried to develop a system to identify pin bars for entry, but somehow it doesn't work... Help please
  OrderSend / OrderClose Issue  (16   1 2)
Hello everyone! I've researched for days, including here, using the term "ordersend/orderclose not working". There are lots of questions/answers but I still cannot figure it out. I appreciate your help. I'm attaching 2 of the many attempts I've tried, with notes on the behavior of each of them
HI, I am new to MQL4 and have a question. On my visual chart, I have a MACD with two moving average indicators applied to it (Exponential using First Indicator's Data). How do I replicate this in mql4 code so I can create a EA? I know how to create a MA and MACD seperately in code, but I dont know
  Zero divide error new ea  (11   1 2)
Hello im developing an ea based on dark point custom indicator and getting zero divide error in backtest The bot works and is profitable on many charts already im looking to improve this bot any help appreciated <ex4 file deleted>
Hi, I know how MT4 works (also how METAQUOTES ID works on a mobile phone - android)...but I have an problem now with my MT4 app on my phone (i downloaded again today..to be sure I have the latest app version). My problems are (2x): 1) I don't get any MQID ID nr from my mobile phone app? Very strange
  RSI EA code help  (19   1 2)
Hi...  Need an indicator to trade RSI. where if the value goes above 70 and retrace below 50 I enter short wher if the value goes below 30 and retraces above 50 i enter long  need help with teh code 
I'm writing a dashboard that displays information from symbols across all other open charts. If a chart is deleted or added, I need to resize the dashboard and remove/add the missing symbol/timeframes. Rather than coding a resize, I figured it's better to just delete the panel and re-create it
Hi All, I've been trying to test my EA's in a demo environment using MT4, and noticed a problem with requotes. I'm basing the open buy/sell order off of the open/closed prices, so at the end/beginning of a candle (open prices only). regardless of what I set my slippage at I'm getting requotes (I've
Hi all I'm trying to code an EA for backtesting a fairly basic pullback trading strategy for EUR/USD. Basically, I wait for a trend to be identified by the 8,13,21 EMA on the 5 min timeframe and the 8,21 EMA on the 1H timeframe. Then wait for price to pullback and close inside the array of EMAs on
[Deleted]
Hi Alls/Experts, Im very trouble to code RSI-13 -> RSI-3 Coding. First I put the RSI-period-13 on chart Second I insert Second RSI-period-3 into same RSI window and selected in " Apply to- Previous indicator Data" Till here all is OK, but when I goto code it, I cant get Value of the second...