Forum

MarketInfo function in mql5

what is the equal of this mql4 code in mql5 : double PointValuePerLot( string pair= "" ) { if (pair == "" ) pair = Symbol (); return ( MarketInfo(pair, MODE_TICKVALUE)/ MarketInfo(pair, MODE_TICKSIZE) ); // Not Point. }

Add a text above a horizontal line

In mql4 we can add some text to a HLine with ObjectSetText command. But in MQL5 I can't find any way to do this. Anybody Knows any solution to add a text above a Horizontal line

The cursor skip some lines in debugging mode

hi My problem is in debugging mode . For example in the below code i set a breakpoint on first line after bracket (<<int count=ArraySize(array);>>). After running the debugging , if I click "step Over" , the cursor skip to next 3 line. And also it jump all over the for loop. I want to check my

Some Problems in create a Pivot Indicator

Hi friends I try to create a Pivot Standard Indicator as a practice. I want to set 7 level in this Indicator.(R3-R2-R1-P-S1-S2-S3) Do I need to set "indicator_buffers property =7 " AND "indicator_plots property=7" for these levels? if the answer is NO , How should I set property for my indicator

problem in time[] array of OnCalculate() function

hello I checked the values of time[] array of OnCalculate() function of a indicator in two different timeframe , H4 and D1 . I've put this code in OnCalculate() function in both timeframe H4 and D1 : int difference=( int )time[ 2 ]-( int )time[ 1 ]; it is verey strange for me t hat the difference