I am a beginner in coding. Acutally I am looking for a solution to enter a short position once the current bar is trading lower than the low of the last bar. Then set a Stop Loss above the last bar’s high and a profit target which is 3 times the stop loss.
Somehow this code isn’t working yet. Can anyone tell me what I do have to correct?
Now I have one last question. During a test session one trade was entered although the low of the bar (let’s say at price 105) was not below low the last bar (also 105) but just the same price. How do I have to adjust if the trade should be entered just one pip lower at 104.99?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok