MathSrand problem
-
@roar ok .. I understand your logic... At the moment the average line is 0, so how to get plus say 10 pips more in profit with the Average line?
-
@alphaomega like this (for sell):

-
@roar Thank you Roar!!
-
@roar .. I am sorry Roar ... It is not working.. maybe I did something wrong ... will you check please?
https://fxdreema.com/shared/gFP95nApc

-
@alphaomega remove that block, it messes up the correct average level:

-
@roar I removed it.... it still not working.. I am really sorry to nag you like this, but I can never crack this without your help.
https://fxdreema.com/shared/t0TqvAGob -
@alphaomega oh, there's one more change:

-
@roar You are the king!!! Thank you, it is working now.. Really appreciate your help!!!
-
@roar ... Hi Roar, Please I need your help again.... there is another bug I am struggling with. The first order gives a strange TP value:

Where do I set this because I have tried modified the Sell block TP but it has no effect.. Thank you for your help in advance
https://fxdreema.com/shared/Aqlp07TYb -
@alphaomega naturally your first TP cannot be the average open price, the trade would close immediately, you see...
Set something else for the first TP, and dont update the stops after first trade

-
@roar Thank you Roar.. it is working excellent!!! I very much appreciate your help.
-
@roar .... Hallo Roar.. I need your help again Please. I figured out how to make a counter to stop endless accumulating orders in one direction trend.. Will you please check it. It is working but something goes wrong with it now and again and then put more orders as what it should.
I am having a problem of how to Trail stop the last order only placed by expert for when there is a retrace. The idea is, if the last order placed comes in profit, to trail it till stop-out and if price action should continue in the original trend direction to replace similar order where it was original(and continue with the placement of the original negative tree) Check picture
Thank you in advance

-
Hallo Roar... I found this thread... will go through it first Thank you
https://fxdreema.com/forum/topic/4858/total-profit-reduces-by-x-then-close-everything/9
Edit: Roar it only works with total Balance/Equity... I just want the Trail-stop the newest order if there is a retrace and then continue with the negative order tree?
Here is the code you suggested with Timmyhanke:
https://fxdreema.com/shared/D382vaNlc -
@roar Hallo Mr Roar... Have you given my problem some thought? The problem is that I do not want a stop-loss, I only want to trail the last(newest) order if it retrace.. All the threads I have read here deal with the whole account/balance or Equity. If I set the trailing stop and it hits the Stop-loss it also close all my trades in negative.. I do not want that... Thank you in advance
EDIT: Hallo Roar.. never mind... I found the problem... I never specified the child trade...
-
@alphaomega why is it very slow on tester bro why
-
@mr-lenny Mine test normal speed.. just check your blocks again