Experts: Peter Panel 1.0

 

Peter Panel 1.0:

Trading panel that allows user to define levels of trade by simply dragging lines.

Peter Panel 1.0

Author: Mokara

 
can you please add auto lot according to risk percentage 
 
When I compile this program I'm getting the following error:
cannot convert 0 to enum 'ENUM_TRADE_REQUEST_ACTIONS' PeterPanel.mq5 740 28


How do we sort this issue?
Screensshot:


Thank you for all the help. Amazing panel and really dragged to know more on this.

 
prajwalrao2013:
When I compile this program I'm getting the following error:
cannot convert 0 to enum 'ENUM_TRADE_REQUEST_ACTIONS' PeterPanel.mq5 740 28


How do we sort this issue?
Screensshot:


Thank you for all the help. Amazing panel and really dragged to know more on this.

Me too getting same error while compiling..... Can anyone tell abt this?
 

For ENUM_TRADE_REQUEST_ACTIONS issue, you have just to remove 0 between { } on lines 740 and 741

Like this

  MqlTradeRequest tReq = {};

  MqlTradeResult tRes = {};