Thread: MQL Code Maker
View Single Post
  #43 (permalink)  
Old 06-07-2005, 03:27 PM
scorpion's Avatar
scorpion scorpion is offline
Administrator
 
Join Date: Aug 2004
Posts: 1,956
Thanks: 113
Thanked 375 Times in 149 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Quote:
Originally Posted by 11050204
Is it possible to modify the code so an openposition is not close when there is a contrary signal so it close only when it hits its S/L or T/P or its close signal.

JF
Add below to both Buy and Sell logics then only SL and TP can close open trades:

AND TotalTrades < 1

To all members,

I'm closing this thread now for I would like you to ask question or give comment in new dedicated threads in ZeroCode forum, because one thread should contains only one unified idea or question.

Don't be shy to create new threads...
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast