Forum

failing to retrieve former charts position

Hello, I have 4 charts of Euro/Dollar opened in MT5, each of them at different periodicity. Each chart window is resized and arranged with some overlapping, at my taste, When I close MT5 program and reopen it (later of immediately), the charts appear split in 4 equal squares, and I have to start the

retreiving windows position

Hello, I have positionned 3 graphs in the main window (EURUSD 1M, 20M and 4H) tiled vertically and then slightly rearranged in width. When I turn off MT5 (or Vista) and launch it again, the 3 graphs sometimes show back at the position, but most of the time are rearranged horizontally (so that I have

2 questions

Hello, 1) I would find it practicle if I could launch a script automatically from an EA while it's running (instead of having to recopy the code of the script inside the code of the EA or using mqh files). A code line like : Launch "MyScript" would be the easiest way Is it possible, and if yes what

CopyBuffer returns -1

The following script return -1 (instead of 2) if the graph period is different from 10 minutes void OnStart() { double handBoll= iBands ( _Symbol , PERIOD_M10 , 20 , 0 , 2.0 , PRICE_CLOSE ); double Boll[]; Print ( CopyBuffer (handBoll, 0 , 0 , 2 ,Boll); return ; } especially when I just

Cannot get the values of the lower band of the Bollinger Band

Hello, I want to retreive the value of the lower band of the Bollinger bands . I tried the following code : ArraySetAsSeries (lower_band,true); handle= iBands ( NULL , 0 , 20 , 2.0 , 0 , PRICE_CLOSE ); CopyBuffer (handle, 2 , 0 , 2 ,lower_band); The value I get for lower_band[1] is the central value

missing candles/quotations

Hello, I loggded out yesterday night at about 21h00 (the only chart on screen was 1M EURUSD). When I logged in this morning at 7h45, I realized that I have a missing period of quotation on EURUSD (from last night 24h00 until 7h45). It's not the first time that this happens. Is this a bug ? and is

refreshing on start up

Each time I start MT5, the graphs shows the position it was when I turned it off (which is normal), but it stays like that forever (it's logged in properly). If I change the period, the graph disappears to show a big "Waiting for updates"). Waiting a very long time doesn't help. To solve this

3 Buys

When I make 3 market orders in a row to buy 1 lot EURUSD with different takeprofit settings, the position indicates that I bought 3 lots and the t/p value takes the value of last (highest) t/p entered (however, the history of orders indicates the correct t/p for the three orders). When the price

ObjectSetInteger doesn't work anymore with OBJPROP_TIME

I cannot make this script work anymore (with build 231) ObjectSetInteger(0,"MyTrendLine",OBJPROP_TIME,0,MyTime); it returns true but has no effect on the trendline (it used to work fine with the previous builds). On the other hand, MyTime=ObjectGetInteger(0,"MyTrendLine",OBJPROP_TIME,1); works