Forum

How are Indicator values calculated?

Just wondering in Strategy Tester how the indicator values (iMA, iADX... etc) are calculated, does it use the hst or fxt files? I'd never test a strategy (in tester) using the high timeframes, Month, Week, Day etc but I use indicators values based on the high timeframes If I only run strategy tester

iBarShift Issue

I've create a loop that calculates a previous date and then the iBarShift from this, but it doesn't seem to work) what am I missing? for ( int r = 0 ; r <= 150 ; r++) { datetime AfterMidnight = StrToTime( "00:00" ) - ( 3600 * 24 * r); int MidnightShift = iBarShift ( NULL , 60

On Arrays

If you populate an array via a for loop from another indicators offset values (starting with 0), something like: double TestArray[]; for(i = 0 to 9) { TestArray[i] = Indicator(Symbol(), PERIOD_1HR...., i) } Is it already in the correct order to use any of the IndicatorOnArray functions ? or do you

GBPUSD Price gone haywire

Just playing around with strategy tester and all of a sudden the prices for GBPUSD seem to be coming through wrong, they seem to be multiple by a factor of 100 Has anyone seen this before? and know what's causing this? It seems like it's using points from the JPY set, I did load GBPJPY data recently

Demo EA opening multiple trades when it should have only opened one

Hi I've got an EA set up on a Demo Account and then set to run using the VPS services (here) and in Parallel I also have the same EA set up on a live account via a VPS This morning something potentially dangerous happened, my Demo EA just kept opening the same trade until the balance was empty and

iHigh, iLow returning wrong values

I've got an EA set up against a demo account (and then uploaded to the MQL VPS service) It should be using iHigh and iLow based on the first Candle to determine a range and then uses these as SLs (plus a few pts) to set up 2 orders But as you can see from the picture it seems to be using wrong

VPS

Hi Just a quick question regarding the inbuild VPS function Do you need multiple VPS registrations between different accounts? i.e. If I set up some EAs against a Demo account can I also have some running against a Live account with the same VPS registration

Bypassing Backtesting (Strategy Tester) limitations

Hi I'm new-ish to the MT4/EA coding world, although I'm capable enough already to code entry/exit expressions based on multiple indicators/timeframes, change SL/TP, pending orders etc I'm wanting to outline my EA/Trading logic out here and have some more experienced coders/traders pick it apart