MQL4 and MetaTrader 4 - page 288

hi I have a strategy that only works manually but also I need to access to the fix api quotes and execution. I want to put limit orders on mt4 screen and these orders will automatically should go through the fix server it will not be executed via mt4 servers. in summary I want to use mt4 only as a
Guys is there a way to roll back an EA that has been updated through the market terminal from mql5? I do not like the new version of this EA and i want the old one? i still have a copy of it on my live account but want to port it over to my demo account
Hello everyone, please i would like to know how i can get access to the prices delimiting a rectangle on the chart so that when price touch the rectangle i can code a series of event. Thanks in advance
Please how can i code this? I tried coding it this way (i will send the code) . what i want is if price cross above MA and revised back to be lower that MA . the i want to sell bool WasCrossAbove; bool WasCrossBelow; //+------------------------------------------------------------------+ //| Expert
Hello Everyone! I am hoping someone can help me. I have two indicators that I am trying to combine into one stand alone indicator. Im not much of a coder. I have traded for years and am just now taking beginner coding courses. I have attempted to code this myself however my attempt only draws one of
hi I wrote an expert that define 2 button Buy and Sell can I define that when click on each button it opens 2 position in one click I mean when I click on Buy it opens 2 buy position and when I click on Sell it opens 2 Sell position Best Regards Neda
hi when i do back testing at metatrader 4 the spread that i chose is by points or pips ? if i use "20" its 20 pips or 20 point ? if i want to test eurusd i currect to chose 20 or 2
void rolShortStopA() { for ( int b= OrdersTotal ()- 1 ; b>= 0 ; b--) { bool ShortA; if ( OrderSelect (b,SELECT_BY_POS,MODE_TRADES) && OrderMagicNumber()==Magic && OrderType()==OP_SELL && Ask<OrderOpenPrice()-( 0.5 *stopShort)
[Deleted]
Hello There are 2 variants of the ObjectCreate () function. One of them takes as the first parameter the Chart_ID - defining the target open chart that the graphic will be drawn on. However, I've not been able to successfully use this function from an EA either in the strategy tester, or applied to...
For some reason I'm getting error 130 if SL or TP is below 80 points. if (takeprofit != 0 ) { TAKEPROFT = Bid - (takeprofit* _Point ); } if (stoploss!= 0 && UseSTOPLOSS) STOPLOSS = Bid + (stoploss* _Point );
Can someone help me how the correct Code is, to get the OrderCloseTime from the last closed Order with TakeProfit
Dear Friends, I want to capture data of higher time frame on lower time frame data. E.g 1st indicator = RSI for 15 minutes, values are 18, 22, 25, 35, 45, 49, 55, 68 . . . . .for 1 to 8 candles 2nd indicator = RSI for 60 minutes, values are 10, 35 for first four and next four candles. I want to make
What is the best way to do an MT4 back test? Please help with that thank you
Hello, prob a silly question for those that know, but I wanted to insert Stochastic Indicator in the same Chart window not in different new window OR in sub window. below is the image of it from netdania.com I know this is possible but don't know how????
Hi guys, Whenever a previous order was closed, immediately a new order took place (in same bar), yes i know the new order meets entering a new position... However, I would like to let only one trade (I am assuming orderclosed also a trade) , i mean whenever a trade is closed, none of the orders
Hello everyone, can anyone tell me how sites like myfxb or fxblue manage to connect to any MT4 account? do you think it uses MT4 specific APIs, via FTP protocol or what? I did not find anything specific in the mt4 reference guide. thanks in advance. Ivano
  Edit EA  (5)
Is there anyone here who has an EA type mq4, which has a timing setting. I want my EA to open positions at certain times, but have no timing setting. I want to ask for help from those of you who have an EA type mq4, just copy the timing settings, I'll insert them into my EA. Thank you for the help
Hi, can someone help me please? Need some code for following case: "If EA gets his signal, open for example BUY + SELL STOP order If one of both runs into TP, close all other open orders." As soon as there are no remaining orders on the chart, restart again with above mentioned flow..., means wait
Hello, double OrderSizeArr[ 3 ] ; OrderSizeArr[ 0 ]= 0.05 ; //SignalSize function type is double, SignalSize(1)=0.10 and SignalSize(2)=0.14 OrderSizeArr[ 1 ] = MathCeil (((SignalSize( 2 )/SignalSize( 1 ))) * (OrderSizeArr[ 0 ] * 100 )) / 100 ; OrderSizeArr[ 2 ] = MathCeil ((( float )(SignalSize( 2
Hello Can you help me to know how to calculate the number of bullish candles on a chart in mql4? In advance thank you very much for the help
could someone help me with this code, because i want the sign to appear on candle 1 + i when closing, and my sign only appears on i . Buffer2[i] = Close[1+i]; //Set indicator value at Candlestick Close if(i == 0 && Time[0] != time_alert) { myAlert("indicator", "Sell"); time_alert = Time[0]; }
Maybe someone can help me with a specific technical problem with MT4 that is starting to be annoying and I don't know how to deal with it. I use MT4 with this English broker which generally works well ETX Capital | Forex, spread betting and CFDs | Regulated by the FCA. I use an Expert Advisor with
Hello, Currently i am trying to limit number of order to 4, opened by EA using OrderTotal() but still EA opens more then 4 orders here is snippet if( OrderTotal() <=4) { //here goes code } Please help
Hi I want to make ea from ichimoku. The logic is that when the price breaks the cloud it will open buy. Logic buy is: When the candle breaks the kumo, and a candle appears above the kumo (close and opendoes not hit the kumo) then triggers buy. But how come my coding below doesn't work. In fact, buy
[Deleted]
I'm new to coding so please don't blast my code xD But basically how my EA works is when 2 trend lines cross is makes a sell/buy trade (depending on which way) but because there is obviously some time when the lines are touching, my EA goes nuts and opens and closes like 100 trades per second, I
Good morning, I need to get the last digit of a price and "round it" according to some rules of my own, it's not just rounding it. To detect a price's last digit I'm multiplying the price for 100000 and %10 to obtain it. However, and even when a large part of operations I run this way works, there
I have recently done a strategy tester that backtested perfectly fine last week. I have been tweaking my program, and I went to back test again. when I did, I realized the results were way off. Upon closer inspection, it was as if the chart was not being utilized at all. The Strategy Tester is...
oid OnTick () { double parabolic = iSAR ( _Symbol , _Period , 0.02 , 0.2 , 0 ); double KLine = iStochastic ( NULL , 0 , 5 , 3 , 3 , MODE_SMA ,MODE_MAIN, 0 , 0 ); if ( OrdersTotal () == 0 ) { if (KLine < 20 && Ask > parabolic) { OrderSend ( _Symbol ,OP_BUY, 0.1 ,Ask, 3 ,Ask- 50 * _Point ,Ask+ 25 *
Hello MT Team, I've moved MT4 to my new notebook with a resolution of 1920x1080. Everything the same, but the zoom becomes a problem I cannot solve: Under maximum zoom, 2/3 of the Bar charts are not on the grid lines (see attatchment), which gives me pain to find corresponding indicator values of
Hello Metatrader developers, thank you for your great work. I'm also using your MT4 App in iOS and Android. Only a small option is still desired. You know the App will automatically zoom the chart. It's perfect. But sometimes it's critical, e.g. when the indicator-lines are out of the window and I