I've been struggling to solve this. Based on what I saw I should use OrderSelect() but have been unsuccessful. See "SL" and "TP" below. SL works everytime because it is set to the low of the previous candle, however I'm trying to base the TP off of the SL to have the Risk:Reward ratio of my liking (1:2 currently).
Can someone more experienced point me in the right direction?
I used an EAbuilder but it doesn't have everything I want/need (like ObjectGetDouble) so I've been trying to learn a little coding. This is my first real challenge that I've been struggling to get through.
Can someone more experienced point me in the right direction?
I used an EAbuilder but it doesn't have everything I want/need (like ObjectGetDouble) so I've been trying to learn a little coding. This is my first real challenge that I've been struggling to get through.