Forum

Custom indicator shows up blank or returns 2147483647

Sometimes this indicator works, and other times it show up blank or returns 2147483647. Any ideas how to fix it? Thanks! #property indicator_separate_window #property indicator_minimum 1 #property indicator_maximum 99 #property indicator_buffers 1 #property indicator_color1 SkyBlue //---- input

Create an array containing a Moving Average for the last 100 bars

I use CopyClose() to create an array containing the Close price of the last 100 bars. How can I create an array containing a Moving Average for the last 100 bars

ZORDER: Getting Rectangle To Show On Top

How can I get the rectangle to show up on top of the bars instead of behind them? Setting the zorder does not seem to work. int bars = 7 ; ObjectCreate ( 0 , "basepoint" , OBJ_RECTANGLE , 0 , TimeCurrent () - ( ChartPeriod ( 0 )* 60 *(bars))- ( ChartPeriod ( 0 )* 50 ) , iOpen ( 0

Average of CopyHigh and CopyLow

I use this to get an array of the highest bar prices: copyed = CopyHigh ( NULL , 0 , 0 , 5 ,clpr); I use this to get an array of the lowest bar prices: copyed = CopyLow ( NULL , 0 , 0 , 5 ,clpr); How can I get an array containing the average of the high and low? Thanks