Forum

iSar vs Parabolic.mq4

Hi, What's the difference between calling "iSar" in EA and calling " Parabolic " indicator provided within MT via iCustom? They seem to do same thing

RSI mtf array

Hi, My question is about sliding the buffer in custom indicator. E.g: #define MAX_LOOK_BACK 5 int start() { int limit; int counted_bars = IndicatorCounted (); //---- check for possible errors if (counted_bars < 0 ) return (- 1 ); //---- the last counted bar will be recounted if

EA RSI calculation for all time frames

Hi, My code below tries to check RSI for all timeframes. I am checking the time and looking into whether it's a barclosing time. So forexample between 12:30-13:15 there should be 45 M1 bars, 9 M5 bars, 1 M30 bar so on.. But at every tick (start runs) it finds new bar from M5 to D1 and I see time

simple print error

When I run the code below tick value starts from an irrelevant value at everyrun such as 40064 in first run 23360 in the second run and goes on. I expect 0 1 2 3 ..... what am I missing?? //-------------------------------------------------------------------- // simple.mq4 // To be used as an example