Simple Question
  #41 (permalink)  
Old 06-07-2005, 03:12 PM
Freshman
 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
11050204 is on a distinguished road
Question Simple Question

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
  #42 (permalink)  
Old 06-07-2005, 03:14 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,931
Thanks: 99
Thanked 365 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

Hi numbers!

Thanks for your comment. Glad that ZeroCode works for you.

Ok, "Open file" is expected to be added in next beta. Stay tune... But custom indicator software will likely left uncoded (i might rethink sometime).
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
  #43 (permalink)  
Old 06-07-2005, 03:27 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,931
Thanks: 99
Thanked 365 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.
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Code request : Action breakeven stop Automatic Digs Trading Systems 0 09-24-2006 06:43 AM
RSI - MQL II Indicator Statement Problem Dave77 MetaTrader and ZeroCode 2 07-16-2005 11:33 PM
Testing MQL Code with Interbankfx.com Dave77 MetaTrader and ZeroCode 4 06-21-2005 10:54 PM
Zero code beta 2 suggestions Belzebut MetaTrader and ZeroCode 0 06-12-2005 09:40 AM
Important: ZeroCode Header in Compiled MQL files scorpion MetaTrader and ZeroCode 0 06-09-2005 08:59 AM


All times are GMT. The time now is 09:37 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

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