Forum

MQL5 and MetaEditor Compiler Bug may seriously mess up your code

I have been working on a simple EA, until I ran into some funny result. I cannot explain it, then I realize that by commenting/uncommenting a single print line will dramatically change your result. Definitely an alarming behavior. If anyone has any insight regarding this behavior, please share. I

Two colors (positive and negative) chart for indicator in separated windows

Hello, I am trying to learn mql5, so basically a newbie in this language. I am trying to build a simple (and probably useless) indicator that would show a positive (green) bar when close price go up compared to the previous bar, and a negative (red) bar when priced go down. I tried to look into some

Sample MT5 EA in Python

I am new to MT and I am trying to learn to program an EA in Python. Is there any EA sample code source for me to tamper with? I tried to search online and see that in Python, I have to manually import the symbol first, and import its data? Maybe I am bad at googling but, say for open a trade, in

Stop Loss vs Close Order

So, I am being really new to trading and MT4. I am trying to build a bot that would create 2 orders, but close one when the other is closed by TP/SL. Is there any way for me to manage the closing of one order after the TP/SL has kicked in for the other order, or I have to manually check tick data