Forum

Tester bug: too many sub-windows

Hi, experimenting with EA where one indicator directly changing the setting of another, not via externals... It do not work even with simple std indicators. Even a simple direct change of setting, see code, will cause the problem. Seems everytime the setting is changed ( every tick or bar) a new

Indicator buffers: are they static, double buffered, when are they updated ?

I have some indicator problems, dunno how to describe it, its pretty confusing, been struggeling with this for over a week ! I have used up all line buffers (7 of them), and are using a good number of so called work arrays, these are arrays which are linked to the indicator buffers using [

Rectangle Object - fractional bar offset

Is it possible to draw a rectangle where the sides are not attached to the normal descrete X coordinates (candle wicks) ? I'd like a 1 bar wide rectangle that is X-skewed by o.5 bar. See picture: Yellow is a rectangle object , Red is how I'd like it to be

EA in Tester, using Open Prices Only Model.... -Unexpected results-

Hi, working on a new EA idea. This is long term trading, where trades last something like 50 - 500 bars. Therefore I have no interest in intrabar ticks, even Trailing Stop is done from bar to bar. And this Ea is slow in processing so testing takes too long in Tick Mode so I want to use OPO mode as

Custom indicator: Auto Scale window, with 0-center

Hi, got this indicator code working somewhat, it is run even when mouse scrolling the chart. The indicator data has a wide range, something like +/- 0.1...+/-5.0, depending of chart scale, TF and instrument. The goal is to improve readability by: A) "0" in the center of the indicator window at all

Backtesting - Is higher timeframe data looking into the future ??

Is higher timeframe data looking into the future? Obviously not when forward testing! But how about when backtesting ? Lets say we're running an EA backtest on 1H, in the middle of the day, a few weeks in the past. The EA uses some MTF indicator. At some point the EA switches the indicator from 1H

Independant Trailing Stop for multiple orders

EA may have several market orders open at any time, each order has its own indicator set stoploss value. To trail the same fixed distance from market for an order with SL = 10pips, and one with SL = 150pips is just "stupid". Trailing must be done proportional to the order's initial SL. Problem is

How to increase CPU usage ?

Hi, I see a potential for getting higher optimizing speed...Running MT4 optimizer I've never seen more than 14% CPU usage. Inside the box is XP running on a i7-950 @ 3G, so this is a pretty powerful PC, 3G RAM. I see almost no HDD activity so RAM and pagefile is probably OK. Have tried to use a

Putting common functions in a library

Hi, to make it easier to develop and work with the EA code I want to hide away simple standard functions that are fully finished. In the file I put only the functions, like this: //+------------------------------------------------------------------+ //|

Change SL on an old order that is in deep DD...

Lets say we place a Long order without stops. After a few minutes the price falls and it goes into deep drawdown. The price then settles a few hours later, and we want to place a SL on that old order that is far away both in time and price.....Can't do it ! Strange because I think I've done it