• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 8:58am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 8:58am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Why is the MT4 optimizer lying to me? (on multiple terminals) 2 replies

Optimizer for strategy mining? 0 replies

Visual tester & optimizer show different results? 1 reply

Metatrader Optimizer and Backtest not giving me the same results 2 replies

Metatrader Optimizer freezing on random passes 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Optimizer won't optimize anything...
Cancel

Optimizer won't optimize anything...

  • Post #1
  • Quote
  • First Post: Sep 21, 2007 12:51pm Sep 21, 2007 12:51pm
  •  mjollnir
  • | Joined Sep 2007 | Status: Member | 40 Posts
Hi there,

I wrote my own EA and I'm testing it with MetaTrader Optimizer..

On simple testing it's okay, I got the report and graph.

But when I want to optimize the 2 main vars of my EA, the 2 panels related to vars optimization stay blank.

Here is how my vars are coded, out of any function:

Inserted Code
extern int stop_loss;      // (10)
extern int take_profit;     // Gross PIP Profit (has to remove spread) (6)

I set up Initial Value, Step, and Stop in the Optimizer. Still no report and graph...

What did I miss?

MT4build210
I used to be schizophrenic, but now we are sane.
  • Post #2
  • Quote
  • Sep 22, 2007 3:08am Sep 22, 2007 3:08am
  •  tesla
  • | Joined Oct 2006 | Status: Friendly Neighborhood Programmer | 533 Posts
If I had to guess, the values you're testing with are illegally close to market. MT brokers define a stoplevel, which is the minimum distance from market that you can set your takeprofit and stoploss.

Second guess? Your EA isn't actually using those values, so every run result is the same and MetaTrader is discarding superfluous results.
 
 
  • Post #3
  • Quote
  • Last Post: Sep 22, 2007 7:19am Sep 22, 2007 7:19am
  •  mjollnir
  • | Joined Sep 2007 | Status: Member | 40 Posts
It works now, thanks!
I used to be schizophrenic, but now we are sane.
 
 
  • Platform Tech
  • /
  • Optimizer won't optimize anything...
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023