DarthRickSanchez1
DarthRickSanchez1
DarthRickSanchez1
Added topic code for getting the loss of a long or short open position?
double PositionProfit =   PositionGetDouble ( POSITION_PROFIT ); //is get profit What is the equivelent of POSITION_LOSS for mlq5
DarthRickSanchez1
Added topic after the stop loss is set to value other than zero the bot does not buy and sell
stoploss = ((LastSARValue1 - LastSARValue) / 4 ) + PriceArray[ 0 ].low;                  myrequest.type = ORDER_TYPE_BUY ;
DarthRickSanchez1
Registered at MQL5.community