When I write this code in my bot, the code checks for every close whether the current position is 10 points plus and then closes the trade. Quasi an exit without a TP. If the position is 100 points plus, it closes as well as if the position is 11 points plus. The same with the second code, only then time-dependent. Is that correct or do I have a mistake in my thinking?
If longonmarket and Close>Positionperf+10*pipsize then
sell at market
endif
If longonmarket and Time=120000 and Close>Positionperf+10*pipsize then
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.