The Village
The Village
Friends 1
The Village
Added topic second highest sell order and second lowest buy order
I am trying to find the 2nd highest sell and 2nd lowest buy What is actually wrong with my comparison for populate the 2nd highest and 2nd lowest? double Highest2ndSell() {    double highest2nd= 0 ,highest= 0 ;    for ( int i=
The Village
Added topic How to get average price without calculating the last open order?
double avg() {    double averageprice= 0 ,size= 0,out=0 ;    for ( int i = 0 ; i < OrdersTotal(); i++)    //for(int i = 0; i <=OrdersTotal()-1; i++)    //for(int i = OrdersTotal()-1; i >= 0; i--)
The Village
Registered at MQL5.community