Forum

Maximum Value within a list

Hi, I want to find the Maximum Value from a list of values. I've had a go but i'm not sure how to collate the values into an array. int BA[ 5 ]; BA[ 0 ]= v1; BA[ 1 ]= v2; BA[ 2 ]= v3; BA[ 3 ]= v4; BA[ 4 ]= v5; //We call a selfdefined calculation function int ReturnedResult=Add(BA);

Array from indicator

how to make an indicator like the following below, into an array like Close[i]. double iBullsPower ( _Symbol , _Period , 1 , PRICE_CLOSE ,i);

Volume bull bear extraction

how to extract the Volume for bull and bear ticks from current Volume indicator in MQL4. I want Volume[0] to be BullVol[0] and Bear Vol[0]

Mean in MQL4

Hi how would I find the mean equation ((Price1+Price2+...Price(n ))/nbars) in MQL4, would i need to calculate this or is there a predefined indicator

MathPow Function

Hi this MathPow function keeps showing as 0, ideas? the negitive value is MathPow ( 2.71828 ,-B/A);

Sequence Conditions

how do i sequence conditions within a cycle? while ( Bars > LastBar) { if ( OrdersTotal ()<= 10 ) if (Zone1== "sell" ) //signal 1 if (Zone2== "sell" ) //signal 2 if (signal== "sell" ) //signal 3 if (Zone3== "sell" ) // signal 4

Value from function 0.001 showing as 0 issue

I have this value from a function MAXVALUE(). the value is less then 0.004. i need to show this value as it is; that is 0.004 and not 0 as it is currently shown. i've tried Normalize double and trying to multiple in the function then divide outside the function but the value is still 0. ideas