Forum

price difference to pips for exotics and indices ?

Is there a near universal method to convert price difference between open and close of any symbol bar to pips . One that works with even exotic pairs and indices . Is it even possible ? I am currently using the follwing code for the purpose . It works great for most of symbols from the marketwatch

simple array use not working

Hi I cannot figure out why the array is not working . I have a function int start() { int label_count = 0 ; for ( int i = 0 ; i < SymbolsTotal ( true ); i++) { string symbol_name = SymbolName (i, True); int conditions_met = 0 ; // Condition 1: MA5 crosses over MA8 double ma5 =

how to count how many times a symbol satisfies if conditions

Hi I am trying to change the following code so it does outputs (like in picture) symbols that satisfy the adx cross and/or ma cross If a symbol just satisfies one condtion it will put 1 after them like in the picture If the symbol satisfies both it will put 2 after the symbol . x number for x number

Help with learning MQl4 / label spacing ?

Hi everyone . I am learning MQL4 very beginner level . I had a code that did the following output on the chart window( first pic) . Learning from here and there I changed it so that the output is displayed on separate window and everything is horizontal instead of vertical as shown in the second

ATR multiplier not working

Hi I am trying to have indicator draw a box on chart with X pipsize . Where X is dependent on ATR value for that timeframe for that symbol. I used the following lines .But they do not produce any result. Am I using the ATR multiplier (*100)correctly ? Should there be another number as multiplier for

modifying renko like bars for all symbols

Hello All, I am leaning mql4 and trying various stuff. I was trying to modify this indicator(attached similar to renko).It paints colored bars of x pips height ( negative or positive). I was trying to modify it as follows 1. the x pip height ( which I can choose in the setting )different for

question about comments in mql4/5

Hi is this even possible in mql4 ? Being able to comment/uncomment lines within the file depending on the result of some lines somewhere within the same file? for eg: if ( x) { comment lines 25 - 30 ; } else { uncomment lines 55 - 58 ; } or How this/similar can be achieved with use of any device

loop after if else statement ?

Hello All . Please help . I am trying to do the following . but i cant figure out how ? I tried to use if else It does not give the wanted result. Any advice/fix please. 1.if I choose userinput value 2 then the value of shift should be cross_ago ( another user input value ) and then it should do the

Indicator buffer not being read ? help please , where the mistake is .

Hi , I am trying to create a crossver alert sytem with the infamous megafx indicator.I know it repaints like crazy . It should be a simple process of reading the id1 and id 2 candle values right? But It does not work . It only gives the bearish alerts when the line crosses below 0 but not the