Houston, I have a problem!
  #1 (permalink)  
Old 08-19-2005, 07:28 AM
Sophomore
 
Join Date: Jun 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Dave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the rough
Smile Houston, I have a problem!

This coding was to eliminate only pending buy and sell stop orders. It unfortunately is deleting both the pending buy and sell stop orders, but also the orders that are active and in play. How can I change this to only eliminate the pending and not the active buy and sell stops that are in play? Your ideas will be greatly appreciated.

Dave 77, TGIF
Houston, TX




For cnt=1 to TotalTrades
{
mode=OrderValue(cnt,VAL_TYPE);


If mode>OP_SELL then
{

If (Minute>58)then // Delete pending Sell Stops.
{
DeleteOrder(OrderValue(cnt,VAL_TICKET),Cyan);
Exit;
};
};
If mode>OP_BUY then
{

If (Minute>58)then // Delete pending Buy Stops.
{
DeleteOrder(OrderValue(cnt,VAL_TICKET),Cyan);
Exit;
};
};
Reply With Quote
ProFX Powerful Trading System
Reply


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
InterbankFX Spreads Problem gazuz Brokers/Platforms 8 08-17-2008 01:31 PM
i have problem with fxfisherman output mssarath MetaTrader and ZeroCode 2 08-25-2005 01:36 PM
RSI - MQL II Indicator Statement Problem Dave77 MetaTrader and ZeroCode 2 07-16-2005 11:33 PM
Problem getting the zero code to verify rosstodd MetaTrader and ZeroCode 4 06-10-2005 10:49 PM


All times are GMT. The time now is 11:41 AM.
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

Main Menu

Economic Forecast