Codes

Candle Time Count Down for MetaTrader 5

Current Candle To Close in x Time

Drag and Drop Move TakeProfit for MetaTrader 5

Set TakeProfit by just dragging and dropping script on the desired price level

Drag and Drop Move StopLoss for MetaTrader 5

Set StopLoss by just dragging and dropping script on the desired price level

Plot History for MetaTrader 4

Plot trade history levels on the chart for MT4

Money Management for MetaTrader 5

Close trades when the percentage profit or risk of the account is reached

Pending Order count-BUY STOPS for MetaTrader 5

This script counts the number of pending buy stop orders for each symbol and returns the value

Asian Range Highlighter for MetaTrader 5

Highlights the Asian trading session

Fractal Prices-High for MetaTrader 5

Returns the price for the most recent fractal high

Forum

Open Trades Faster

Hello everyone! Please is there a more efficient way to open 100 orders at once? I use this for loop but it takes 20seconds to open a trade. What do you think? for ( int i = 0 ; i < 100 ; i++) { trade.Sell( 0.01 , NULL ); }

MTF Arrows:

Hello I tried to make an arrow indicator to be multi timeframe and used the tutorial from the codebase about Multi timeframe indicators . Unfortunately, when I changed timeframe from current, the indicator returns the error "Array Out of Range". Please how can I solve this? Kindly assist. Here is

Curious about something...

Hello! I wrote a function to return the takeprofit in price using the expected profit. The function worked well for symbols like EURUSD but failed in AUDJPY ( JPY pairs ) and Cryptocurrency. I believe this is because of the discrepancies in their _Digit values but even after accounting for it, I

Mumbled Objects <see pics!>

I wrote an object label for my indicator signals. It looks great! BUT when my friend attaches it on their PC, the labels get mumbled up. <see pictures attached> Is there any explanation for this please. If so, how can I solve it? Thank you

Chart Handle?

Hello everyone. I am trying to limit my EA such that it is the only active EA in MT4 terminal. I have successfully gotten all chart handles but I can't find a way to read the ExpertName for that chart only. I found a post from 2011 but the codes are unfortunately outdated and do not work. Can you

BMP File Not Loading

Hello everyone, Quick question. I believe the problem I am experiencing is because I have converted the external image to a bmp file online // I used a free website but will not share the link because I do not think external links are allowed :( Here is the code and this is the output. However, when

Minutes before Midnight...

Hello everyone, I wrote this small function to print yes when it is 5 minutes before midnight in my broker time but it currently prints yes 5 mins after the next candle open. I have tried different variations of the code and the closest I have ever gotten was to print yes 5 mins before 20:00, once I

Toolbar disappears...

Hello everyone, I have recently noticed this issue with my meta trader 5. Whenever I close the software and open it again, the toolbox, navigator and other panels I have previously opened will be automatically closed. (I have attached a screenshot) This was not happening before and my MT5 is

Time and Price

Hello everyone, I recently wrote this indicator to return buffers of the previous weekly high and low, but for some reason, it keeps being off. Some bars on the lower timeframe do not have buffers that correspond to the weekly high/ low. I tried to correct this by using this PeriodSeconds () but it

MQL5.com Unresponsive

I am surprised no one is talking about this. For at least 6 hrs yesterday, this website was unreachable at least in some parts of the world. 2 days ago, it only last for a few hours. My question is: 1. Why is this happening? 2. Will this keep happening and will it happen again today