Forum

A tool/ea that mirrors line studies to multiple windows.

Hi, I have 3 windows(1, 5 and 15 minutes charts) opened on a specific pair, I need an EA that can assist me with mirroring line studies. Once I draw a line on any of the three charts, that line should appear on the other 2 charts of the same pair. If there is such an EA, please help me with a link

Protecting your MQL5 source code and EA

Hi developers. I am close to finishing my EA which i want to protect from unauthorized users. I have searched over this platform but I've only came across MQL4 3 simple ways of protecting your code. I have searched on the documentation of MQL5 but seems like it does not touch anything to do with

How to calculate number of horizontal lines(obj_hline)?

int Hlines() { int numberofhlines; for ( int i= ObjectsTotal ( 0 , 0 , 0 )- 1 ;i> 0 ;i--) //I cannot get correct parameters for ObjectsTotal() so I can loop through all parameters { int type= ObjectGetInteger (i, 0

How Can I Get Total Lot Size for my Buy positions?

double Lotsize() { double BuyLots= 0 ; for ( int i=Position sTotal ()- 1 ;i>= 0 ;i--) { if ( PositionSelect ( PositionGetSymbol (i)== _Symbol )) if ( PositionGetInteger ( POSITION_TYPE )== POSITION_TYPE_BUY ) {BuyLots+=

calculating total lot size (volume) of hedged positions and getting TP and SL of the first (oldest bu still running) position...

Hi. I am coding my first(i know basics) MQL5 project , it is a hedging expert advisor that will open multi directional trades(sells and buys)... i am stuck and would appreciate your assistance, I need to sum the total lot size(volume) of running positions and display it... the second problem is, i