Forum

count profit of the oldest Sell-position / Buy-position

Hello i would like to calculate the Profit of the oldest Sell / oldest Buy Position in the Chart.... same like that: //+------------------------------------------------------------------+ double countprofitBS( int mode, int order_type) { double profit= 0 ; if ( OrdersTotal ()> 0 ) {

add new addposmode, like last candle was bullish / bearish

i would like to add a new step-mode like if last candle was bullish or bearish open new buy position / new sell position something like: addposmode==5 && Bid >=highestshort+pipstep && last-candle (1h timeframe) was bearsih addposmode==5 && Bid <=lowestshort- pipstep && last-candle (1h timeframe)

New Update customize EAs

Hello I'm looking for someone who could cahnge my EAs because of the new update. I'm not a coder so it is quite complicated. so pls conect me if you could do it for me. regards chris

counting the open-buy-lots and the open-sell-lots

Hello I'm working at a grid system and for the lots-sices i would like to count the lots. openselllots = the lots of all open SELL posistions openbuylots = the lots of all open BUY posistions double openselllots, openbuylots; if(OrdersTotal()>0) for(i=0;i<OrdersTotal();i++){