How to specify the volumn of an order base on last loss trade coverage

 

Dear guys

How to specify the volumn of an order base on last trade loss coverage. I mean if last trade was my EURUSD sell with loss 50 dollar. How can I take volume with gain 50 dollar with 10pips.

Does anyone have that type of code 

 
dralialadin:

Dear guys

How to specify the volumn of an order base on last trade loss coverage. I mean if last trade was my EURUSD sell with loss 50 dollar. How can I take volume with gain 50 dollar with 10pips.

Read this thread:  https://www.mql5.com/en/forum/144886
 

actually I need a code or EA to determine what lot I take to gain 50 dollar with 10pips.

 
dralialadin:

actually I need a code or EA to determine what lot I take to gain 50 dollar with 10pips.

Write it then . . .  if you can't read this:  Book  if you can't or don't want to learn go here:  MQL4 coded for me
Reason: