Forum

mq4 script that will return the profit of the latest trade

I am developing an EA based on the breakout. Manually, i will placed the two horizontal lines on the mt4 chart and when the price crosses that horizontal line it will automatically open trades. But, I wanting that if the trade is closed it will automatically delete that two horizontal lines on the

Create the support and resistance lines for the last 300 candles on the chart

Happy Holidays to everyone. I just want to ask if there is a script that will draw horizontal lines on the support and resistance for the last 300 candles on the chart? can anybody help for the mql4 codes.Thank you very much. Your help is highly appreciated

Divide the chart into ten horizontal parts showing lines level

Hello everyone. I just wanna ask of some scripts or indicator that will divide the chart into 10 horizontal equal parts and it shows the horizontal level as level 10, 20, 30, 40, 50, 60, 70, 80, and 90. Thank very much in advance for the all the people who wants to help. God bless you all and pips

Divide the chart into 10 horizontal equal parts

Hello everyone. I just wanna ask of some scripts or indicator that will divide the chart into 10 horizontal equal parts and it shows the horizontal level as level 10, 20, 30, 40, 50, 60, 70, 80, and 90. Thank very much in advance for the all the people who wants to help. God bless you all and pips

function that will return the distance (in points) between the open and close of the candle

Hello everyone. I am slowly developing an EA and i observe the candles in the chart. I noticed that there are some candles that the open and close is so near or they called it a pinbar and if the pinbar has a high volume then it will make a breakout. I am thinking that if this candle will appear i

Average Volume of the last 50 Candles

Hello everyone, good day! I am starting making an EA and I just want to include the Volumes on every candles. I just wanna ask some help in making codes for a function that will return the Average Volume of the last 50 candlesticks so that it can add and refine the present strategies in opening

Average of the volume of the last 50 candles

Good day everyone. I just want to ask if it is possible to have a function that will return the average of the volume of the last 50 candlestics in the chart? Because i felt dificult to code it. I just want to try to see the action if the volume of the last candlestics is higher the the average of

Code that will determine the price of the close of the previous candle

Hello everybody. I just wanna ask some help from the generous people in here. I am refining my ea and i will try to put two horizontal lines in the chart 10pips above and 10pips below the close of the previous candle. I tried Close [1] - 0.00100; Close [1]+0.00100; But it does not work. Is there any

Draw two fixed horizontal lines in the chart.

Happy new year to everybody. I am still studying mql4 and the idea of putting two fixed horizontal lines on the chart is difficult to code. My idea is that...I have 1 open trade in the chart. for example, a "buy trade" and i want to put automatically the two horizontal lines below the OrderOpenPrice

Create Two Horizontal Lines in the Current Chart

I just want to make a script that will put 2 horizontal lines on the chart. The Upper Horizontal Line must be 5pips above the current price and the Lower Horizontal Line must be 20pips below the Upper Horizontal Line. is it possible to make it as a script? I want to code it but i am not expert in