How to display in a MessageBox the Open Price?? I use this but with no help : MessageBox(MODE_OPEN) I want to view the Price ex: 1.65656 in a message box... in MT4
As a new EA coding trainee, I use VPS to backtest few ideas I am working on. But I have this problem after testing few options, the computer will show; "YOU HAVE VERY LOW MEMORY IN DISK C". And the VPS has over 2GB memory. I guess the result of previous tests is what is causing this problem, but I...
WHAT PARAMETER CAN BE PASSED INTO FUNCTION Period() e.g is it possible to pass this parameter period(period_H1).or any other way of passing a parameter into it.
Hi, i try this, can any one explain me what is the number 2056 mean ? what is stand for ? double array1[][6]; int copyrate = ArrayCopyRates(array1,"EURUSD", PERIOD_H1); Comment(copyrate); Result: 2056
hello, i downloaded the free alpari version of MT4 client terminal, however i can only get access to forex charts and data- is tehre a way i can get access to Ags,metals and bonds? thanks
I' developing an indicator and I'm testing it using the tester in visual mode. I'm getting different results if the ..\tester\history files are present. example: the 1st time that I run the tester (no files in the tester\history folder) the results are correct. The second run and all the following
if you can manage someone's account starting with a low capital. let me know. reply to reall80@yahoo.com and the low capital is like a text run. The profit will be well shared
I'm trying to run an optimization to see which is the best currency pair for trading, here is what I have thus far: extern int currency = 1; if(currency ==1) { plugcu = "EURUSD"; } if(currency ==2) { plugcu = "USDJPY"; } if(currency ==3) { plugcu = "USDCHF"; } if(currency ==4) { plugcu...
I am trying to list the value of the tenkan sen but it keeps displaying 0.00000 Any ideas? //---- Tenkan Sen i=Bars-Tenkan; if(counted_bars>Tenkan) i=Bars-counted_bars-1; while(i>=0) { high=High[i]; low=Low[i]; k=i-1+Tenkan; while(k>=i) { price=High[k];...
I think there is a bug with getting information from multiple timeframes. For example, if I decide to print this out of the init() function of an indicator that is attached to a 1Hour chart: Print( "marketinfo: " + TimeHour(MarketInfo(Symbol(), MODE_TIME ) )); Print( "m1: " + TimeHour(iTime(Symbol()...
I am having trouble understanding how to read the Account History section of my Gallant FX demo account. I am using FAP Turbo v48. Here are my questions: 1. What does "swap" mean? 2. Though my bottom line is a positive profit I don't see the calculation. The positive and negative amounts under...
I have a code like this: if(pos_dv==true){Sleep(300000);Experts=1;GlobalVariableSet(Quantity1, Experts);} ;my intention with this code is that the expertt should wait for 60minute before assigning 1 to expert and setting globalvariableset(Quantity1,Experts;);, but the next operation is performed...
I have not completed the full book of mql4, I am learning that language to make my own system. I am new to forex but have 3 years experience in equities. My question to you guys is after reading the book of mql4 language will I be able to develop my own EA, as I am not a software professional also
Hi dear everbody ! How to coding as bellow requirement ? 1.Everytime when the sigal comes ..... make EA just opening only one order . 2.After open an order,how to open another one when the signal comes again but not to close the first one . any coding model or sample will be highly...
Hello all, is there a "replay" function in MT4? I mean,I want to test manually a system on EUR/USD pair and I want to be able to "play" the market,on historical data,bar by bar.Is there such a possibility? Thanks a lot
any one know how to do a true stop an reverse ea? ...I have been trying like below but hasn't worked: void check_entry(){/////////////////////if(ptriggerline>pbaseline)short_allowed=true; // previous(index of 2) trig line is above previous candle...
I'm looking to use the MACD indicator in my EA but strictly the divergence or railroad tracks as they are called in some areas. I am looking to only enter trades when there is momentum the trend signaled by the bars in MACD. Do these bars represent the difference between the EMA's? If so, how can I
Gud day Sir Safin! You have a excellent indicator AIS1AI to his robot AIS2. That indicator have sorry to mutch text,label,line.. and The are not posibiliti to switch that oll with one switch on/out.I ask Sir safin make that switch! And second that robot ressive excelent and wonderfull signals but...
Hi! I'm starting with MQL4 programming and I've come across a problem. To reduce the problem, I've made a simple EA, with only 1 lines in the start() function: OrderSend (Symbol(), OP_SELL, 0.1, Bid, 3, Bid+(Point*50), Bid-(Point*50)); It should place a market order every time there is a new tick,...
Is there a way to use something like SetIndexShift() to render an OBJECT ahead of the most current candle? I'd like to draw something like an OBJ_RECTANGLE, and locate it by replacing Time[] as an argument with a X candle index shift forward from the most current candle. I tried to do the...
I have EA in which there is IF statement and based on the IF expression certain bool variabl;es are set. Here is the piece of code: Print("Just before IF ","(",poss_sell_sig," && (",low_4_20_prev,"<=",low_2_15_prev,") && (",low_4_20,">",low_2_15,"))"); if(poss_sell_sig &&
Does anyone have an example of how to place an order on the next new candle? I'm trying to create a buy/sell line that will place a trade on the next candle as soon as a given function = true. I really appreciate any help!
hello frds anybody can help need to plot the forward values of span A and B of kumo inside FSB .... but dont know how to do it, in FSB i get those value just at the close of candle ...BUT need to plot the forward values (the end of the spans usually 26 periods ahead) tks very much lerecidiviste
I'm trying to get a histogram to show the differences bbetween 2 moving averages . I modified the OsMa for this but am not sure i have the buffers right for the drawing? It seems to draw it correctly but somehow the code doesn't seem correct
. All I want to do is drop a script on an offline chart and have it refresh. I have tried WindowRedraw() RefreshRates() PostMessageA() From Period Converter opt and WithoutSunday Even the windows keystroke code from 2004. Everyway to Sunday and... Nothing. . Wow, this problem is a tough one for me