I have questions regarding 2 specific code, Any help is greatly appreciated.
1: NormalizeDouble ---> is it possible for this command to return the value ZERO?
2. If I specify a external value and then change the value inside the script...
Writing a script for a monthly pivot indicator that has time shift has been tormenting me for a while. I have not been able to come up with a way of programming such an indicator. Does anyone know of one that works or have any idea how I may be able...
double iClose(string symbol, int timeframe, int shift)
Returns Close value for the bar of indicated symbol with timeframe and shift. If local history is empty (not loaded), function returns 0.
i used iclose for an indicator on the 4...
i made a daily pivot with offset that works with 1 hour and under. but when i switch to the 4 hr chart, it becomes inaccurate because if i off set the time zone by 2 hours, the pivot calculator is trying to reference the high low close of the 4 hr...
i see a normalize double, rounds the decimal points, is there a way to round a integer?
i want to write a script that works across the currencies and since there are many
that have different digits its sorta frustrating.
i downloaded the pivot history from the web, modified it to show the high and low
of the last trading session but it doesnt behave properly, it creates an odd line
at the present time and doesnt continue into the future, help...
for example if i only want the indicator to show the past 500 bars (i am assuming
this will same some calculations for EAs)
the metatrader/alpari data includes sunday pre openning data, which will effect
the indicators' calculation. look at the sunday period, on the 15min and 30 min
chart, there are a few extra candles. on the 4 hr chart, the candles completely
channelLow= MathMin(iLowest(NULL,PERIOD_M30,MODE_CLOSE, 5,1),iLowest(NULL,PERIOD_M30,
what i am trying to find is...
i only want the indicator and expert to run after the candle has closed.
i tried this for the indicator
if (close== true)
but it doesnt work. doesnt redraw on candle close
i tried these for the expert...
i tried coding with ibarshift using a 1 min chart, and ima of a 1 hour chart. seems
not to be working,
trying to get the highest price from 9 to 10 am, but the highest only does calculations
based on the current candle.
any way around this? or is there another function i can use to call the highest
price for a specified time?