Ian Venner
Ian Venner
  • Information
10+ years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Friends

Add friends via their profile or user search and you will be able to see if they are online

Ian Venner
Added topic Strategy Tester Spread Bug
Can anyone else confirm this annoying bug ? Open Strategy tester . Set the spread to 3. Slide the strategy tester window's top bar all the way down so you can see the whole chart. Slide the strategy tester window's bar back up what does the spread
Ian Venner
Added topic Where are the indicator/script/experts templates ?
In the old versions I believe they were in the templates folder I cant find them in the new version, I want to modify my indicator template because it doesn't have the DeInit function already in it
Ian Venner
Added topic ArraySetAsSeries
I know I have asked about this before on the mql4 forum but never got to the bottom of it. From the documentatin:  Arrays of price data passed as input parameters into the OnCalculate() function do not obligatorily have the indexing
Ian Venner
Added topic ArraySetAsSeries()
Looking at the code for included indicators I noticed MQ now does this in most if not all of them: example from Heiken Ashi //--- counting from 0 to rates_total    ArraySetAsSeries (ExtLowHighBuffer, false );    ArraySetAsSeries
Ian Venner
Added topic OnCalculate() Copying from the rates arrays
I need to copy the last ten highs from the high[] array in OnCalculate()    int Length = 10 ;    double ahigh[];    ArrayResize (ahigh,Length);    ArrayCopy (ahigh,high, 0 , 0 ,Length);    for ( int
Ian Venner
Added topic TimeToStr()
I wrote this simple EA for someone else the other day, all it does is check each of the 4 timeframes for a new bar, if there is one it looks for if the last closed bar volume is lower than the previous 2 on any of the 4 timeframes and Alert() if it
Ian Venner
Added topic Local Arrays are no longer Static ?
I don't remember reading anything about the properties of arrays being changed, are they supposed to still be static by default ? In strategy tester 616 they are not unless I explicitly define them as static. I'll post a test code in a few minutes in
Ian Venner
Added topic Local Arrays. ME keeps warning me: "possible use of uninitialized variable"
Is it no longer acceptable to assume arrays are initialized to zero when they are declared ? If so what is the proper method ? Using ArrayInitialize() locally will cause array to be reset on every tick there doesnt seem to be a sensible alternative
Ian Venner
Added topic skipping parameters in afunction call
Anyone know how to create functions where you can skip parameters in the call, that dont need to be changed, something like: myfunction(1,2,,,5) //asuming the skipped function parameters are already intitialized ... void myfucntion( int param1= 1
Ian Venner
Added topic How to pass ENUMs as variable function parameters
example function to initialize buffers So I might want to pass ENUM_INDEXBUFFER_TYPE as INDICATOR_DATA, or as INDICATOR_CALCULATIONS but I cant use it like a variable data type, is there another way of doing this or do I need to learn something in
Ian Venner
Added topic SetIndexBuffer()
The tooltip says: Using SetIndexBuffer() the tooltip says: [1 of 2] bool SetIndexBuffer(int buffer_num,double&double_array[],ENUM_INDEXBUFFER_TYPE buffer_mode=INDICATOR_DATA) What is the 1 of 2 refering to and what is the ENUM_INDEXBUFFER_TYPE
Ian Venner
Added topic New MQL4 variable scope
OLD MQL4 NEW MQL4 WITH STRICT Variable scope is from declaration (even in the nested block) to the function end Variable scope is from declaration to the end of the block, in which the variable is declared Does that mean in strict mode a local
Ian Venner
Added topic Indicators drawing trendlines error
I wrote a test indicator to replicate issues I have been having with trendline objects. There are two of them. Here is the simple test indicator to place one, non raying trendline on every bar from previous close to current open. int start() { int
Ian Venner
Added topic If 2 cars are travelling in the same direction and ....
This is related to movement of indicators but is easy to write with cars. Two cars travelling in the same direction car A is 10 miles behind car B, Car A is travelling 2x faster than car B. How many miles further down the road will Car A catch up
Ian Venner
Added topic passing extern parameters to iCustom
Is it possible to code an EA that allows the user to enter the name and parameters of a custom indicator so that they can be passed to iCustom() ? I have tried to figure out a way to do this and I have hit the wall, how to get the parameters into
Ian Venner
Added topic How to read mathematical formulas
These types of formulas make no sense to me even when i know what they are supposed to represent. Are people really supposed to be able to look at that formula and know it means, when you add consecutive numbers starting with 1, and the number of
Ian Venner
Registered at MQL5.community
Ian Venner
Added topic globalscope vs local variables
Just a snippet of information that I have not seen written into the documentation it might be useful to someone when debugging. I accidentally declared a variable both globalscope and localy it works in the following way. If a variable is declared
Ian Venner
Added topic OrderOpenPrice()
Does OrderOpenPrice() return the original Ask price of a Buy order and the Bid price of a Sell order or does it just return the Bid price at the time the order was filled
Ian Venner
Added topic Error in in Parabolic
I was experimenting with the settings on the custom indicator Parabolic (included with mt4). There appears to be an error in it, I can't believe this hasn't been noticed before I left it running on the 1 minute EURUSD chart with