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?
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue