MQL4 and MetaTrader 4 - page 1368

[Deleted]
It is possible to get Rebates on each Trade when reffered by an IB. These Rebates won´t widen your Spreads! The Spreads will remain the same as an announced on the Broker Website. And the best: You don´t need to open a new account, you can get your Rebates on a existing account! Below is a list...
[Deleted]
Hi Is there any way to communicate with an EA by means of mouse or keyboard strokes ? In all programming languages it's a common thing but i did not find any particular command for this kind of interaction in MQL4. I know that some programmers write codes to do some actions(such as close all...
[Deleted]
When an order type OP_BUYSTOP is executed, does it then become a OP_BUY or does it remain an OP_BUYSTOP until it is stopped?
[Deleted]
The operations are: buy 1,4155; sell 1,4163. sell 1,1453; buy 1,1446. Why they give 6 and 5 points to me of profit instead of 8 and 7, and because do not close me the positions and it changes the values to me varying of the book? Thanks
[Deleted]
I've been trading with Open ECry (OEC) for some time. I'm attempting to find a written strategy I can import into their custom trading manager that uses the ADX indicator to trade automatically. I'm being told the code might look something like the following: if DIpos > DIneg then begin Buy ("Buy")
[Deleted]
  Topic close  (12   1 2)
Problem settled. Thanks.
Hi Guys, I know that here isn't a place to sell things, however, I'm here to give an opportunity for those that wanna use my system. First I would like to show my statement in my Real account at Tadawul FX broker . The equity started with $487 dollars and now is with more than ~$1200 (255% in 6
  StrToDouble  (11   1 2)
There are news event values(actual,forecast,previous) on dailyfx.com/calendar website that need to be converted from STRING into a DOUBLE in my EA to make a trading decision. The problem arises when other characters(not numbers) are present in the STRING, e.g. $569k or -103B. So when the function...
is there bid and ask price difference among demo account plateform,real account plateform, mini account plateform,standard account and ECN account plateform ?these plateform belong to same broker. which one is faster? is the amount of ticks equal between them in a certain time ? i test an ea on demo...
Hi, I wasted like 5 hours in a row trying to find out how to have the system open and close a position only ONCE whitin a time interval, example from 4 to 6 PM if the condition is met. Tried many pieces of code, I have herebelow what I believe could be the key, but I am feeling that I will waste
Hi All, This is the result of my EA during 2009-01-02 until 2010-01-02. This is with low risk (start with 0.1lot and up to 1.3lot). higher risk would give a better result. I will appreciate all your "critical" comments on the result.
Hi, I'm using this code to count open and pending orders. It seems that occasionally MT4 will return a value of 0, even though a pending or market order is present. Is there a way to double check my orders or a better way to code that is more reliable than what I'm using? Thanks in advance! int...
[Deleted]
Attached is an example EA that calculates a simple moving average using iMA() for a number of bars and stores the values in an array. Then, a Print() call is used to report one of the stored values from the array. Unfortunately, the values do not seem to be there. Can anyone tell me why? Thanks,...
I need an EA that opens a trade when candle reaches certain pips. thats it. variables: pips to trigger Sl Tp lots Magic number. Thanks
Is there any way fr formal parameters to return their value
  are they equal ?  (3)
var1=MarketInfo(Symbol(), MODE_ASK); var2=Ask; var3 = MarketInfo(Symbol(), MODE_BID); var4=Bid; if var1 always = var2 ? var3 = var4 ? thanks
[IT's SOLVED] The lower Sub windows returning error value because I didn't refresh it when attached. Hi everyone... I have this CI that need to be refreshed when first attached to the chart (refreshed by open it up and then close/attach it again - so it will return the correct value. The problem is...
[Deleted]
HI, Can anyone help me add the following script code, so that data into a CSV was imported into columns and cells? //+------------------------------------------------------------------+ int start ( ) { { mPrev = m ; handle = FileOpen ( "Data \\Statement .csv" , FILE_WRITE |
  Equal lots in hedging instruments  (91   1 2 3 4 5 ... 9 10)
Can you tell me how much of a lot the baxo/franc should have when hedging 0.1 lot of the eur/bankass
[Deleted]
I found candle_Signal indicator in this forum interesting to me i do not know if someone can make it as an EA.
Hi. I have a custom indicator with two arrays with values I would like to display. One will be a line, the other a histogram. Array #1: 10, 15, 12, 18 Array #2: 1.0012, 1.0025, 1.0022 If I place them in two separate indicator windows they are displayed fine, however I would like...
[Deleted]
I want use EA to test forex. When I insert a StopLoss parameter (through OrderSend) the client terminal open a position with StopLoss Parameter. The questions are: _If i close the client terminal, when the price reach StopLoss the server close automatically the position? _If the EA is active and
[Deleted]
Hi all, I have two question about Friday market close: _If i have an open position and the Broker "say" that the market close what happens? Broker close my position or the position remain open? _If the broker close all position, the spread of the position closed with market close is the same or
Some questions regarding code from the article Forex Trading ABC: //+------------------------------------------------------------------+//| A very simple function to calculate margin for Forex symbols.    |//| It automatically calculates in the account's base currency and   |//| does not work for...
-
Dear community, I'm a newbie here, and I seem to be receiving incorrect results from the MT4 tester (Version 4.00 Build 225) when running this piece of code: if (OrderSelect(ticket, SELECT_BY_TICKET, MODE_HISTORY)==true){ // Closed trade order_closed_bar = Bars;...
Hey folks, I'm wondering if some of you already have experiences with script execution problems in Tradeview's MT4 platform. Every time I want to run script in the platform I got an error message or script simply doesn't run. I used the same scripts on other broker's MT4 platforms (both real and...
Hi Is it possible to recover a data type from an indicator (3 MA Cross w alert)to put it in a EA? This is what I want to do : In the indicator (3 MA Cross w alert)I put a data type : double execute_trade = "ok_buy" or execute_trade = "ok_sell" here : ************Indicator ************ if...
[Deleted]
  No friday trade  (6)
I want to stop my EAs from placing trades on Friday. I can do this easily in the EAs I developed. But not sure how to accomplish this in commercial EAs.
[Deleted]
  Indicator Lines  (3)
I have been trying to figure out how the indicator below is able to draw a line in one color, Continuosly, and then a line in the next. The values for wt[shift] and wt[shift+1] are constantly changing as well as the values of ExtMapBuffer1[shift] and ExtMapBuffer2[shift]. There has to be something...
[Deleted]
  Some code needed  (4)
I want to add a take profit and stop loss based on account profit or equity. So let say the account increases 50 buck it would close all open trades and start a new round of trades. How could I impliment such a function. If someone could give me some code to achieve this it would be greatly...