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 Deleting Objects
I was writing a deinit() to try and delete all the objects associated with the indicator that created them on close of that indicator. All the objects created by the indicator start with the letters T16 followed by some other identifiers including a
Ian Venner
Added topic Question about ImaOnArray()
Is it possible to use regular arrays to accumulate price values so the array can then be used in ImaOnArray() or should drawing buffers always be used for this
Ian Venner
Added topic reverse calculating a moving average
I want to write a function that i can input the periods and a price from a bar on the historical chart, so the function will output the value of where a moving average would have been when the price was at that level, I was thinking this must have
Ian Venner
Added topic Question about ArrayResize()
In the meta editor help description of ArrayResize() it says this: Note: Array declared at a local level in a function and resized will remain unchanged after the function has completed its operation. After the function has been recalled, such array
Ian Venner
Added topic Question about Indicator Drawing
This is probably a dumb question but its something thats been bothering me for ages. In the mql4 documentation it says indicators are drawn from left to right, but how can that be when it is drawn in the loop int counted_bars=IndicatorCounted(); if
Ian Venner
Added topic Histograms
I have been trying to make an indicator that uses 4 MA lines to calculate direction then uses that direction to decide which of three buffers to use for drawing a macd histogram, so the end result I was looking for would be a macd histogram with
Ian Venner
Added topic help with indicator
Can anyone see why the first alert is returning zero every time ? I wanted it to compare the buffers current and previous values and therefore the Alert should return a varying result of either 0, 1 or 2 depending if the direction is up down or mixed
Ian Venner
Added topic question about time[0]
does time[0] reflect the actual time the first tick of a new bar arrived or does it reflect the time the new bars period is supposed to have begun
Ian Venner
Added topic Label Objects defaulting to "Label"
Does anyone know what would cause Label Objects that have been set to " " for the purpose of remaining hidden untill they need to be used, to revert to their default text "Label" when I add another indicator to the chart, or know
Ian Venner
Added topic Indicator buffers and shift
if an indicator has these lines      Buf_4[i]= iMA ( NULL , 0 , 3 , 0 , MODE_LWMA , PRICE_HIGH ,i+ 1 );      Buf_5[i]= iMA ( NULL , 0 , 3 , 0 , MODE_LWMA , PRICE_LOW ,i+ 1 ); Should the value Buf_4[0] be the
Ian Venner
Added topic initializing buffers
This is part of the bollinger bands source code why is it neccessary to initialize the buffers to zero with EMPTY_VALUE ? Should I be doing this in my own indicators ? //+------------------------------------------------------------------+ //|
Ian Venner
Added topic initialize a string arrray
Is there a way to initialize a whole string array to x without doing myarray[ 100 , 10 ]={ "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , "x" , .....etc etc }; I dont really
Ian Venner
Added topic Applying called indicator to chart
If a custom indicator uses values from a 2nd indicator, is it possible to attach that 2nd indicator on the chart from within the customer indicator without replicating the code of the 2nd indicator in the custom indicator ? For instance if my
Ian Venner
Added topic printing out variables
Anyone know the best way to test what is up with my indicator ? The indicator appears to work but for some reason the lines on my chart do not match up with the values for those same lines when i make an EA to use that indicator so i decided to
Ian Venner
Added topic iClose is iCurrent
Can anyone explain why iClose uses every tick instead of the last tick that arrived at then end of the time period ? iClose should be renamed iCurrent and a new iClose function that uses the last tick to arrive, by 59.9999 seconds at the last minute
Ian Venner
Added topic indicator periods problem
I am coding an indicator based on moving averages I have extern int PERIOD = 5; if i run my indicator twice on the same chart and change the external input of one of them to 10 everything appears fine at first, it correctly positions 2 separate lines
Ian Venner
Added topic How does this work ?
   double EMA        =weight*Open[ 0 ]   + ( 1.0 -weight)*lastEMA,    EMA_of_EMA  =weight*EMA      + ( 1.0 -weight)*lastEMA_of_EMA;
Ian Venner
Added topic question about for(i=1;i
does this mean i is incremented by the value of pos on each cycle of the for statement ? for(i=1;i<=MA_Period;i++,pos--)
Ian Venner
Added topic Moving average source code
Anyone know where I can find the source code to moving average ? I want to see how the "applied to" section is coded, especially the weighted close, and the typical price
Ian Venner
Added topic Drop down menus
Most of mt4's built in indicators have drop down menus in the user settings like the picture below, is it possible to do this in a custom indicator