I want to be able to control where the stop order moves instead of having to use the settrailstop.
How can i basically say move my setstoploss to the lowest of the last five bars - 3 for a long and have it moved down to the hightest of the last five bars +3. I'm trying to figure this out but the setstoploss seems to have currency, pips, ticks, percentage as option but i want to set it manually to what i described above.
Please let me know if there are any examples or a line of code i can refer to that i can use in my strategy.
Thank you.
Comment