Jump to content

Enterra Forex Star EA


Recommended Posts

Re: [req] Enterra Forex Star EA Full-Source Code

 

This is indeed not Enterra or Enterra Forex star, but it works on 5 pairs and this is just fine for me as a multipair scalper.

What I wanted to tell you, is that there is a bug that I fixed for myself and wanted to share:

 

in function

int SecurProfit() {

bool li_ret_0 = FALSE;

if (OrderProfit() > TickValue() * GetLots() * TP) li_ret_0 = TRUE;

return (li_ret_0);

}

 

order profit is checked against GetLots(), not order lots, which can be two quite different numbers.

I in fact moved this comparison to CloseAll funciton, and it now reads as below where there was call to SecurProfit:

 

if (OrderProfit() > TickValue() * OrderLots() * TP)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...