Forum

comparing all bars in a period to one another

Hello forum. I am looking to set up this indicator where I want to add ALL differences among closing price - for ALL bars, - compared to one another, - within specified Period. How do you go about it?? I was thinking of a "Nested FOR" logic, but it wouldn't compile (see below). before I double

changing default arrows/lines for Orders in MT4

Hello forum, Is it possible at all to change the format of arrows (blue, red) and lines (dotted red) used for marking orders on the charts - same for stop-related markings and other objects drawn by default? I was wondering where/what folder/what file the script is and if it is accessible by users

current problems with MetaQuotes history centre?

Hello Forum, On my end it looks as though there is a problem with the MetaQuotes history centre, I just cannot download any history/ and the tester gets stuck on the "waiting for update" screen. I know this may have been discussed (message is the good old "There are no new data for a symbol") - but

Setting Global Variables from OnTick() information.. (ref. Recovery planning)

Hello Forum, So I recently started to think about recovery safeguards for this EA, in the event of server crash, power outage, the likes. One hint I found somewhere was to use... Global Variables of the Terminal as more permanent storage for some of items that would need recovery - mainly doubles

if "Condition met for last 10 bars" then ...

Hello forum! So the logic is: if, say, Moving Average 50 for the last 10 consecutive bars has been below each bar, then trade. The script below though trades immediately after the first time MA50 falls below a bar, instead of waiting for 10 consecutive bars.. Any insight will be appreciated, I'm

double (in global scope) - odd behaviour OP_BUY vs OP_SELL

Hello forum, Something rather odd is happening, I have this simple order modify for the stoploss (see below). The ADJ in ADJ*Point() is defined as a double on global scope. I am looking at ADJ values of 1 and fractions, say 0.5 (point). The order modification works fine with the Buy orders , both

the code of MT4 StrategyTester - available?

Hello Forum, I would be curious to have a look at the actual code behind the MT4 Strategy Tester , so that I could get a first-hand understanding of how the numbers are computed. I'm looking at analysis of gains vs. losses now (average, %'s, totals, etc.) but there are some other grey areas too.. Is

counting last consecutive gains /or losses

Hello forum, So far I have this, below, but it counts ALL trades in history. How do I break the cycle so only the LAST CONSECUTIVE trades of same sign are counted - I have some (complicated) ideas but I feel there might be a a quick way? Many thanks in advance, Dan. int GainCount = 0 ; int LossCount

tick up or down

I am trying to get a simple string showing in last tick was up or down, somehow it gets stuck in "down" position. Obviously I am missing something.. so any help will be appreciated. Dan. //+------------------------------------------------------------------+ //| TICK UP OR DOWN

MT4 setup: multiple accounts with same broker

Hello forum, So what happens if one wants to open several accouts with the same broker? so that for each individual EA, say, lot size changes dynamically based on individually allocated account balance . - Is there any way to run multiple accounts on the same MT4 platform (I suspect not..?) or - Is