MQL4 and MetaTrader 4 - page 915

  strategy refinement of the advisor  (71   1 2 3 4 5 ... 7 8)
Hello! Please help me to improve my Expert Advisor so that SL is set at LoW 4 bars And the trailing stop should be equal to a variable (any of them can be set), the variable should be a multiplier for SL For example SL is set as 30 pips so the trailing stop should be 30*(X) where x=any number I
Hello, I need some help finishing the attached code! As you can see from the code it is a martingale EA which doubles the lots traded per successive trade until a win is achieved. I am a very amateur coder so please excuse the errors.  Please see attached code for additional details to the strategy....
From what I understand, there should be a smille face next to the expert advisor when it is dragged to the chart. When I drag the expert advisor to the chart, the expert advisor shows up on the chart but instead of a smille face showing next to it, there is an x next to it. How do I activeate live...
Hi everyone,   I have recently started trying to code with MT4 after using it for a few months and trying to get my head around the software. I have traded for a few years now and am really interested in creating my own EA's for backtesting/trading purposes, which i would also like to share on your...
Hello everybody, i'm searching an indicator that plot horizontal trend line every X pips from the current period open price. That's what i mean: on H1, M15, M5 and M1 the period is the DAY. So at the open of the day it draws a trend line ( from day begin to day end) at the current price, and at +20...
I have a great EA only to be let down by the strange behavoir of the kernell function: GetPrivateProfileStringA here is what is happening exactly documented here: https://www.mql5.com/en/forum/56876 in the code below: when the function is called for the second time: the line 1.Returned String=...
All my unpublished indicators are not working on the new metatrader 4 platform 500 build. Anyone knows whats going on?
[Deleted]
  Alembex  (2)
Quelqu'un pourrait m'aider a trouvé la logique pour programmer Alembex ? merci Voila la presentation : https://www.youtube.com/watch?v=2UrlFGrgA2c Someone could help me find the logic to program Alembex ? thank you Here is the presentation: https://www.youtube.com/watch?v=2UrlFGrgA2c  
Hi Guys, i tried to correct the error, I did not succeed. Iam wait for help... CODE: start error on the SyncProfit() //1 - OP_BUY //2 - MY MAGIC //3 - CURRECT SYMBOL //4 - TARGET PROFIT void SyncProfit( int ordertype, int magicnumber, string symbol, double lucro){ int total =
This is the old Universal Ma Cross Ea this version now can use any of the 17 different average, also this version is using a break even function if you want,and with a lock in pips, by default the lock in is set to 6 pips, to maybe help to stay under your brokers radar, and also by default the break...
[Deleted]
Hello, Probably a noob question but couldn't find and answer browsing the forum. I basicly have this setup : void CheckForOpen()resSL=OrderSend(Symbol(),OP_BUYSTOP, Lots, High[1]+1+Spread,1, High[1] - 5, High[1]+1+Spread + 5,"",MAGICMA,0, Blue); This part above is fine. Then when an order is there...
[Deleted]
Hi, By using iTime() I found an interesting situation I have opened the USDCHF M1 chart, and put into a script Print(iTime("USDCHF", PERIOD _M1,0)) it returned with 0. When I replaced "USDCHF" with Symbol() , Print(iTime(Symbol(), PERIOD _M1,0)); worked well. Can somebody help me ? Thank you F
I have two MT4 sessions open, each logged into a different account (on different brokers).  I wish to take a value from one terminal and pass it to the other (one way only).  The File Open, File Write, and File Close functions can only operate in the parent directory of the terminal that is doing...
what is the benefit of OrderCloseBy() ,compare to Order Close ?  
How can i run an expert advisor on my Android phone?
I want to know how many cycle imbricated can be supported in mql4 ? I use more than 10 cycles imbricated in my EA and I want to make sure that no bug is diverted from it. I want to know it like Excel that support less than 7 cycles.
Good morning, Is there a way to force the indicator to reload from scratch? Like WindowRedraw but for the indicator. Thanks!
[Deleted]
Can you please recommend a general programming book that will definitely improve programming skill (even by little) after finishing all the exercises in it and studying its algorithms. I would appreciate it a lot,and I guess other will too.
[Deleted]
Please tell me if I leave the return operator with zero "Return(0)" Will it save the value of StopLevelThisPair() function inside BrokerStopLevel variable which is a global variable? int start()  {   Comment("The Current StopLevel is: ",StopLevelThisPair());   if(OpenOrdersThisPair(Symbol())>=1) //...
Can I modify an external variable as my expert is running? I have an extern variable takeprofit = 400; but Id like to change it to 450 when I have a total of 5 orders in the market, but when I count the orders with a for statement, and ask that takeprofit=takeprofit+50; but it doesnt add my...
[Deleted]
  copyrates  (1)
Hello,     May I ask everybody how they would implement the MQL5 function "copyrates" in MQL4?    Thank you,        Eric R
[Deleted]
Anyone has experience with xxxxxxxxxxxxxx managed account service ? here is their account performance https://www.mql5.com/en/signals/mt4/xxxxxxxx
hi can any one give me opposite trade copier, in which master a/c trades will go exactly opposite in slave a/c. 
Hi there, i need a little help on condicions:    lets say i have 2 buy stop and 2 sell stops wainting when the buy stops activate and became buy, it well delete the sell stops remaing, but if only one buy stop became active it will do nothing.  my difficult is in the condicion, if it's an IF, While,...
Hi   I would like to add a Max Spread check function, and have the various ccypairs already set with the tolerance, so that I can just drop the EA on whatever pair and not worry about remembering to set it.   I tried to create a switch that would return either true or false that i can then just use...
Hello Everyone, I find a weird problem with data in MT4. I go to the history center (F2) to download data on D1 of GBPUSD . By chance I find that on the day 2013.05.22, there is big difference between downloaded data and data on chart: On Chart: Low:1.50192 Close: 1.50461 CSV file: Low: 1.51472
Hi,       I am using MetaTrader4 downloaded from this site. While compiling the EAs  and an Indicators it creates mq4 and ex4 files in  " C:\Users\username\AppData\Local\VirtualStore\Program Files (x86)\MetaTrader 4\experts"  rather than   "C:\Program Files (x86)\MetaTrader 4\experts" How can I...
I just installed this software https://www.mql5.com/en/code/10886. On strategy tester  it is giving me good result almost 50% profit in one month but while I am using it on real trade it is not putting trade please help me. How I can use it.
In the backtest, it makes losses. I'm curious how it will be if its orders will be reversed. Originally buy, in reverse will sell and Originally sell, in reverse will buy. Moderator edit: Decompiled code removed. 
Hi there...   Im using the following code to get yesterdays high, low, open and close prices but i am not satisfied with the results... Can anybody here help me with this so that i can get the real high, low, open, close..   tnx..     DateValues=y+"."+m+"."+d+" "+"00:00";int...