Expert Advisors and Automated Trading - page 370

Hi, I'm using an CArrayDouble object to store some "double" values and I what to be able to use iMAOnArray on them but the compiler is complaining about a "parameter conversion not allowed" error. Could someone tell me how I get the values from the CArrayDouble object ready for use with the...
hi i saw an indicator with the below declaration Any idea what's function of the " . " ? Thanks  #########  extern int       TVI.r=12; 
Hi Im coding EA and I want it to have feature to set SL to BE if x% of TP is reached. This is what I have so far. void BreakEven(){ for (int i = OrdersTotal()-1 ; i >= 0; i--)   { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) if(OrderMagicNumber()==Magic)...
Hi all, i want to add comment to each order and after googling around, i found some people use StringConcatenate I wanted to add a variable value to the comments, so i try below. Nothing came out at comment , not even the "MA Diff Is" string OrderSend(Symbol(), OP_SELL, start_lot, Bid, 3, 0...
Hi guys, I'm trying to show the profit done in the actual day but i just cant figure out how to do that in MQL5, can someone give me a light ? Thanks.
Hi Guys, How can I insert a comment into the history page of an EA? Every time it puts a line into the history column, I want to add the EA name into the comments column. Any ideas how to do that? Thanks!
any advice? main point to make it almost impossible to decompile
Hi, today i purchased an EA within the mt5 , after successful payment , message appeared " failed to download". its my first buying and im so disappointment, in purchases section there is only demo version of the EA not the full one, i also write to support service and waiting for their response,...
How would I code something like this: The Close[2] = Open[1] +/- 3 pips. So basically I do not want to see a difference of more than X pips between  the close and an open of the following bar. Is there a function that does it? Because it can a positive or negative value depending on how you subtract...
I  found many function they can't use the "PERIOD_H4" and  "PERIOD_H1" as parametre in Mql5.  a simple example:   if ( Bars( _Symbol , PERIOD_H4 ) < 100  )  return; it can't be compiled and return this error information :  'Bars' - no one of the overloads can be applied to the function call. This...
[Deleted]
I Developed an EA that i use to trade on a live account installed on my desktop where tests and Code were done, but i decided to let my EA run on my Laptop while i trade on a different account on my desktop. When i ran the EA on the tester on my Laptop the test results were completely different and...
Hi there, could anyone tell how ho to make all the trades that are take by an EA more visible. Currently the trades are represented by dashed lines with tiny arrowheads. How could you change this so the lines are solid and perhaps even bold to illustrate trades taken, more clearly? Would you...
Hello, I would like to know if this code is correct to close an opened position with lot size = LOT : What I did is that I removed SL and TP arameter so that it close at the latest bid price. Thank you //--- Putting all together if(Sell_Condition_1) { // any opened Buy position
hello,    i wanna backtest my ea but i need historical data and good ones for dax. from 2008 or earlier until know. how i do that? use a vps? or are there other solutions?   an other question: can you set the leverage on you're ea?   and let's be honest: are some smart people getting rich from an...
Hi, I'm not sure where to ask this. I've searched everywhere, but cannot find the answer. I want to do some strategy testing using the cloud. It worked fine earlier today, by giving me a whole whackload of agents. The strategy tested well, and now I want to run some new tests. However, this time,...
Hi there from this path i try to show position's status that selected on the chart. i know how works Comment(), but i cann't show that status. path: Expert Advisor\properies\Common Tab\only long or only short or long & short
Hello all, I need good and perfect working trade copier that I can use for multiple accounts. Can anyone share with me or where I can get it
Hi there I have an indicator that give me alerts (BUY and SELL). its in ex4 format. I tried to Auto trade with these alerts and the only way I found it for that is making the expert advisor reading the log file from the Terminal folder. but the problem now is : the log file not updating till to...
How can I test a EA in MetaTrader 5 with the Strategy Tester with a leverage of 1:400. It goes from 1:200 to 1:400. Thanks, 
hello world i have a question, i wrote a script that is showing large returns for various currencies and i want to know if this is a bug in expert advisor, has someone seen something like this before? its strange the other expert scripts don't have results like this. or maybe there is something...
Hi i have very good EA for binary but its very important the order to be opened at the same place as the opening of the new bar , now 90% of the time the order is opened when the current bar has been already formed ( in that broker the ticks are very fast , the broker is Grand Capital) on demo is...
Hi, Ineed to now how i get the style of the mouse when he is OnChart. I already try some functions and not have sucess yet OnMouseEvent() EventChartCustom() Wnd.MouseFlags() Does anyone can help me?
Hi. Please help: I have file with name values.ini in file is: scroll=1 shift=1 I need only change the value 1 to 0. How to do it in MQL? Thanks I have: ------------------------------------------------------------------ string file_name = "values.ini"; int fileHandle= -1, lasterror =...
I have an expert that enables to take entries on the market. The expert calculates the CCI and the moving average 100 from past 150 periods and gets a value in memory . Whenever the price is above the moving average, and the previous price has open and close on upper and lower to the moving average...
As you know people use many different indicators to enter or exit a position. if they do use the same, i find that they weight them differently in their strategy depending on wether they want to open or close a position. for that reason i propose that the wizard allows for two sets of signals to...
Hello world, I have written my first trailing algorithm. It inherits from CExpertTrailing and i find that under many circumstances i wish to close a position and not just adjust the tp or sl, is there a way i can close a position from within the my trailing object
I want to copy trades on my live account to a demo account. Is there any software that will do that? I can't just use the signal service here and subscribe to myself, as my live broker isn't on the list. Thanks
hi all is it possible have user input by having a drop down list to choose? i have googled around, can't seem to find a solution thanks
Hi Guys, need help to edit the MQ4 attach or maybe you have any EA/Script to what i need. much Appreciate if any could help. If i'm looking to buy, when i activate the EA/Script, it will immediately open a buy, subsequently the EA/Script will open another buy above the previous price with few...
<decompiled code removed> ----- This is my code for an EA. However, the EA just place Sell order but Buy order. Could any one help me to solve this problem?