Expert Advisors and Automated Trading - page 77

To post a new topic, please log in or register
SYMBOL_CALC_MODE_CFD CFD mode - calculation of margin and profit for CFD Margin: Lots *ContractSize*MarketPrice*Percentage/100 Profit: (close_price-open_price)*Contract_Size*Lots how can I get the value of "Percentage" use mql5 function when i calculate the CFD Margin?
Hi, What does " Provider debarred from selling signals" for a signal mean? Is that supposed to mean that the signal provider will never be authorized to broadcast signal anymore? Or is it only temporary? Thanks
When I published my code to protect an indicator / expert adviser I noticed an 'issue' I could not resolve. It is with the CryptDecode() function when decoding a BASE64 string. If I encode a plain text string to BASE64 and then immediately decode that string, I get the same result. As it should...
Is there available EA similar with Chartist Tictoc? Here is the original link of Chartist Tictoc. I cant buy this EA because "Author debarred from selling products". https://www.mql5.com/en/market/product/6753 Thanks and regards, David.
<p><p>I have this ea and 、SFE Price Action、Star scalper、Yans、Bober Real EA、EA DeviLe BO、Night Trader EURUSD...more than 30 eas.just 10$ for one. </p> <p>My skype:jasonbea1314 </p> <p>E-mail:jasonbea1314@hotmail.com </p> <p>If you are interested in it, please contact us for a trial or buy it</p><p><p><span style="color:rgb(250, 250, 250);">JvdeLw9wwenbo56179</span></p></p></p>
Three related questions together: How to find the three primary ticket numbers in the order pool(open position)? Is the ticket number necessarily match the datetime of open position? For example i sort ticket number in a array and selected the three initial index of sorted array?
hi every one. how to tell if a position closed by TP or by SL was opened by EA? i have an open position  by  using OrderSend(). depend on TP or SL happen, i want to call FunctionA() (When TP  ) and Function2() (when SL happen). thanks.
Is there a way to see indicators while Strategy Tester Visualization is running? If it is not implemented are there any plans to do so? This is crucial for EA debugging. 
Hi guys, I'm getting Order Send Error 4806 and I don't have any clue why ... This is the code if(SubTotalSellOrder() == 0) {  ticket = m_trade.Sell(Lot,NULL,m_symbol.Bid(),0,0,"comment");  if(ticket > 0)     {    Print("Order send success");    TakeScreenShot(1280,720,0);    return;   }  else...
Hi, I need code to send Message & Picture via SlackChat. I have been searching around but I did not find it. Please suggest. Thank you!
  EA (7)
Hi all, I came across an EA capable of trading objects (definetely open long and short orders) drawn on chart by any other indicators. Can't remember its name and lost it after pc update, is there anyone to give me help in finding it ? thank you very much
Hi, i am using a script i found online which sends email at MA crossover. It works, however i doesnt tell me the pair, so i have to add the symbol parameter  if (SendAnEmail) SendMail("Price closed above MA"," + Symbol() + "); If i do the above line, it sends the email but just puts the text +...
Hello, i search any solutions for close one or more order opened manualy with my EA manager following the instruction "CLOSE ALL ORDER WITH COMMENT...". Example:  I have a very good and profitable manual strategy with one or more position on markets... In a manual trading is not possible specifi a...
example color     ZBCol = Gray; How to set color by RGB (128,128,128) ? Thank you
Hello, How can I get the last 60 sec data in mql5? I mean not bar of 1 min, I want that every second I will get new data and erese the last second data. is it posssible ?  Thank You.
hi. after i reinstalled metatrader , in Oninit(), RSI indicator cannot be loaded. While it worked well before i reinstall metatrader. Does anyone know the reason?
Hello, I am going to create a function of grid trading lot: if trading direction is long and market price goes down, then multiple the trading lot according to previous order. I think the rule is quite simple, but I always get error message of "invalid lots amount", would you please give me some...
I want to count history deals from down to up. But my code not work perfectly. Please help me anyone.   HistorySelect(TimeCurrent(),0);   if(HistoryDealsTotal()>0)     {      for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--)        {         if(Deal.SelectByIndex(i)==true)...
Hi, i am running a very useful ema crossover indicator which features email alerts. however when the alerts are sent, the email title is a simple "Price closed below (or above) MA". I need to add the "+ symbol" command in the script in order to know which pair the alert is for, as i use the same...
Hi All, Im rather new here and I want to create a simple system where I look at the high and low of the first 1 hour candle at a start time (in this case 9.00).  If after this first 1 hour the rate goes above the high, than sell. If it goes below the low than sell. What I did so far is the following...
Why ChartApplyTemplate() in OnInit() doesn't work when testing? What should I do to change the properties of a chart on Strategy Tester? Thanks!
Hi to all. I'm trying to make an Expert. In this expert, I'm trying to send a picture to telegram bots. - But I don't know why it sometimes works and sometimes doesn't works. In other words, sometimes send me the correct pic and sometimes I just see "sending a photo" in Telegram Bot. And I didn't...
Is it possible to place an expert adviser (EA) on the webterminal to execute trades automatically? If it can be done, can you please show me the steps. Thanks.
As title says, I have no idea what is wrong but only a handful of EA from the market are actually working through the MLQ5 tester. All the other ones runs the tester but it doesn't buy anything. (Most EA tried are the Free and a few Demo) On a few I tried playing with the amount, leverage, time...
Hi all, and thanks in advance for everyone who's givin' up his time supportin' the community...!!! My problem: I got the Supertrend-Indicator https://www.mql5.com/en/code/576 and I wanna work with his indicator data. But when I try to use it in an EA via iCustom() I don't get the right values.....
Hello guys! Im struggling with function which gives true when the latest closed order had been closed by stop loose. Could you help me ?  Thanks in adnvance!!!
Hi All, My EA is not closing previous order before opening a new one.  I don't want to have multiple buy or sell orders on the same currency pair at a time.  How can I make it so it only has either a buy or sell order open at a time and prevent it from opening new position even if buy or sell...
Hi, I ran an EA on Strategy Tester and it seems like the profit calculated for the trades does not match the lots and the pips. For example, as you can see in the picture there is a trade of 3.84 lots opened at 1.43611 and closed at 1.44403. This results in a profit of 2106.11 according to the...
Hi, I have a indicator as ex4 file and I want to create a EA based on it. It's an indicator which shows me arrow to buy or sell. Do I need to have it's mql4 code to create EA related with that ? Is there any way / sample code by which I can use that indicator's ex4 itself  to create EA ?