Hello guys, I am new here and I would need yout help
I spent my whole day on internet looking for an answer but nothing is helping me
I have a scalping algorithm. This algorithm tells me when to Long or Short. However I want to have limits and loss
When I am going Long, the previous bar is always red. I want to put my limit at the same price than Open of the previous bar and my Loss at the time worth two times the lenght of the previous bar.
Eg : The previous candle opened at 50 and closed at 48. I buy when the next candle open (at 48) and i want the Limit to be at 50 and Loss at 44 (= 48-((50-48)*2)))
I tried different thing including ticks but nothing works
I have no idea how to get the value of open and close
If anyone can help me, I would gladly listen to his explanation
Thank you very much