Forum

I can not place Stop Loss and not Take Profit to open an order.

can someone explain me by that Stop Loss and Take Profit do not work in the execution of the order ? what I have is the following : long order_magic= 444444 ; extern double Lots = 0.1 ; double takese1 = 50 ; // valor tp double stopse1 = 50 ; // valor sl double tp; double

How to get data from an indicator price on you expert?

Hello. I'm new in MQL5 , before using MQL4 . I have a problem , do not be getting data from price (ZigZag ) indicator in my expert ? the indicator I have : int OnInit () { //--- indicator buffers mapping SetIndexBuffer ( 0 ,ZigzagBuffer, INDICATOR_DATA ); SetIndexBuffer ( 1 ,HighMapBuffer