Comment Help

 
int CommentMe()    //Comments
{
RefreshRates();
double Eq.CM = AccountEquity();
double Bal.CM = AccountBalance();
double Mar.CM = AccountMargin();
double Prof.CM = AccountProfit();
double Lev.CM = AccountLeverage();
double TV.CM = MarketInfo(Symbol(), MODE_TICKVALUE);
double Sprd.CM = MarketInfo(Symbol(), MODE_SPREAD);
double SWL.CM = MarketInfo(Symbol(), MODE_SWAPLONG);
double SWS.CM = MarketInfo(Symbol(), MODE_SWAPSHORT);
double STP.CM = MarketInfo(Symbol(),MODE_STOPLEVEL);




Comment("Account balance is ",DoubleToStr(Bal.CM,2),"\n",
        "Account equity is ",DoubleToStr(Eq.CM,2),"\n",
        "Account profit is ",DoubleToStr(Prof.CM,2),"\n",
        "Account margin is ",DoubleToStr(Mar.CM,2),"\n",
        "Account Leverage is ",DoubleToStr(Lev.CM,2),"\n",        
        "Tick Value is ",DoubleToStr(TV.CM,4),"\n",
        "Spread is ",DoubleToStr(Sprd.CM,0),"\n",
        "Swap Long is ",DoubleToStr(SWL.CM,4),"\n",
        "Swap Short is ",DoubleToStr(SWS.CM,4),"\n",
        "Trailing Stop is ",DoubleToStr(STP.CM,4),"\n",         
        "Current time is ",TimeToStr(TimeCurrent()));

return(0);
}

How do i get a comment on to the screen to show how many open buy and sell positions are open for each symbol.

I know how to write a comment but can't work out the code for open positions.

 
kiwi06 wrote >>

How do i get a comment on to the screen to show how many open buy and sell positions are open for each symbol.

I know how to write a comment but can't work out the code for open positions.

Please have a read on this Trading functions