Topic moved to correct forum (about automatic trading) and title changed to a title ” explicit enough to prompt the community to read your discussion. “, please respect some rules while posting, thanks in advance.
Here is the code you need:
1
2
3
4
5
6
ifaverage[34,1]crosses overaverage[54,1]then
sellatmarket
exitshortatmarket
endif
set targetpprofit70
Long and sell orders are closed in this code, since you didn’t specified which kind of orders you’d like to be closed by the condition ..
“price is reached 70 pips from entry” is what we call a takeprofit.
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.