Forum

Get line values from my indicator

I wrote this indicator. It draws lines with a certain distance on the chart. How do I get the values of the lines? see screenshot. //+------------------------------------------------------------------+ //| Frans_Tops_Rev5.mq4 | //|

Link Buttons together

Is it possible in MQL4 to link buttons together? it would be nice to put them in the OBJ_RECTANGLE_LABEL . I want to move a number of buttens with the mouse over the chart window. Please advice

Change the Input field size

is it possible to change the Value side of the input field? See picture

Use a button on the screen to put an indicator on the chart

I use a button to put Pivot Points on the chart. That works. Now I want a button that puts a indicator on the chart. Can anybody help? Thanks

crossing of Ma and RSI line,giving arrow on chart (please advice)

I wrote an indicator of an RSI and an MA of that RSI. It work fine. Now I want to change the indicator that it draws arrows when the lines crossing in the chart window. This is the indicator that is working OK: #property indicator_separate_window #property indicator_buffers 2 #property

MA of the MACD Signal

I need in my EA an Moving average of the Signal line of the MACD. Can I use IMAOnArray ?. Please giv me advice, thanks Dropje

Collect data into excel

Hello, I wrote an EA to collect data from MT4 into excel. I need the high, low and the day of the week of an hourly bar.And I use it as backtest . So I set a starting date and an end date. I get all the info in excel. BUT! I get a limit number of lines, only 274 lines of data. Is it possible to get

EA with Pending orders, need advice

Please find below my EA. It is not finished, because I only put the Buy_STOP orders in. If this works I put the SELL_STOP orders in. The EA starts ok. But when the first Pending order is deleted. At the same time it opens a number of Pending orders. The principal is: When Close is above SMA5(HIGH)

Differences in values, when using EA

I found differences in the outcome of MA,s written in an EA and the standard MA,s used as an indicator. I wrote a symple EA that shows it. The actual Open, Close, High and Low values are OK, the SMA10 on the High is OK, but the values of the SMA10 on the Open and the Close are not the same as the

Closing a Pending Order

I wrote this code to close a pending order . When i run the EA the orders are not closed. Can anybody give me any help? What have i done wrong? Here is the code (part of my programme) for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && // check for