FOREX QUANT

April 11, 2007

Found another bug

Filed under: Uncategorized — by TraderMade @ 2:35 pm
Tags: , , , , ,

I’m so happy when last night I found this bug (line 255):

cond_exit = COND_EXIT_BUY;
close_order(OP_BUY, MAGIC_NUMBER_SELL);

Using this MAGIC_NUMBER_SELL on the last line, has made the system unable to close the appropriate BUY trades.
Now it has been fixed to be like this:

cond_exit = COND_EXIT_BUY;
close_order(OP_BUY, MAGIC_NUMBER_BUY);

and for documentation purpose, i’ve put these additional lines:

// vy5 – fixing prm_use_calc_tp wasnt working well in vy4
// – possibility to turn off all logging
// – fixing hedge filter for sell
// vy5b- fixing prm_exit_when_opposit on buy trades was wrong, now fixed
// – putting optimized values on external parameters

These things happen often because of the the copy n paste practice on the initial development stage. It is now named as vy_5b.
I’m replacing the previous vy5 version to the trading server now.
The change will take effect from tonight.
Good luck to us.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: