How to modify StopLoss of opened order every new bar using the Magic Number of the opened order?

 

My conditions are:


1/. If Buy order is opened then set StopLoss = Low[1] every new bar

2/. If Sell order is opened then set StopLoss = High[1] every new bar



If you have any idea how to best solve the problem - please for the answer.

 
Nobody knows?
 
are you looking for scraper???
 

>> Nobody knows?
We're all wondering what your plan is for when the new bar opens below the Low[1]...

-BB-

 
BarrowBoy:

>> Nobody knows?
We're all wondering what your plan is for when the new bar opens below the Low[1]...

-BB-

New Bar is [0]

Previous Bar is [1]


What problem do you have? Do not you understand my idea I've listed above?