Thank, I make the corrections. For now I disabled helding. I have new dude.
https://fxdreema.com/shared/C7ORRhFXc
I pretend open second trader the same type a first trade, if prive go loss profit the X pip, in this case 70pip.
Example:
level 1: open trade eurusd, 5m, price: 1.06700, type: buy with lot: 0.01
when price is 1.06000 level 2 activate and open other type buy order with lot 0.03
when profit the trade level 1 and trade level 2 it positive, more or less 1.06500 close level 1 trade in loss , and level 2 trade in profit.
but pip away from open price block, I think do diference, it active when price up, no when price down in this example, how I repair this code?