Forum

How to calculate total PnL in mql5

Hi there, any one can help with a well detailed code to calculate total profit and loss including swap and commission. Help will be much appreciated

How to set obj_edit character length

Hello there happy people, how can i set a certain number of character length in OBJ_EDIT . for instance i want a certain edit box (OBJ_EDIT) to display a certain number of of characters. how do i go about this

Setting tp of trades as point instead of price

hi there happy people, i want to be able to type in point numbers and not price number in an OBJ_EDIT to use to modify my active trades sl and tp, any help on the lines of code onhow to go about this

Using point to set tp and sl

Hello happy people, I want to use points to set tp and sl instead of price. I intend modifying my trade tp and sl with point instead of price number inside an OBJ_EDIT. for example just like modifying a 30 point tp in an active trade and the price number is automatically set. Any help with the

i cant seem to multiple.

string tpNumber = ObjectGetString(_Symbol, "TPEDIT", OBJPROP_TEXT); double p = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double tp = p + (tpNumber * _Point ); trade.PositionModify(ticket

Detect when connection to network is lost or active

Hi there beautiful people. i am currently trying to make an EA check if connection to internet is been active or not so as to delete an object on the chart. eg. lets say whenever the user connects his computer to the internet i wan to be able to know and create an object to the chart and also delete

How to get stop and take profit in points for EA

hi there beautiful people, i am currently trying to get the current trades position sl or tp in points and not in mumbers(price). any help with this? thanx is advance

how to get numbers below 0 from OBJ_EDIT

Hi there, What i want to do is getting numbers like 0.1, 0.2, 0.3 from OBJ_EDIT , but it seems to only return 0 and leaving everyother text after the 0. Any help rectifing this. thank in advance. ObjectCreate ( _Symbol , "LOTEDIT" , OBJ_EDIT , 0 , 0 , 0 ); ObjectSetInteger ( _Symbol