PHP Code
void GetStats() { double RangeToday = iATR(Symbol(),PERIOD_D1,1,0); // this is the quickest way to get todays range for a daily value regardless of the time frame the indi. is run on. double PipValue = MarketInfo(Symbol(),MODE_TICKVALUE); // this is a built in function that looks up various things try placing curser on MarketInfo and press F1 double AccBalance = AccountBalance(); // Another built in function returns the account balance double AccEquity = AccountEquity(); // Another built in function returns the account equity Comment ( "The Range Today = ", RangeToday/Point, // place your curser on Point press F1 and see what this is. note I can to math in the comment command "\nThe Pip Value for ", Symbol(), " = $", PipValue, // note the commas allow for multiple items in the Comment command "\nThe Account Balance = $", AccBalance, // notice that I placed a $ sign to make the number more meaningful "\nThe Account Equity = $", AccEquity ); // notice that I do not need to have any info on the same line see that I have several ines of code, the // compiler does not care. It just waits until it finds the ) that notes the end of the Comment and then // the ; that notes the end of the command or statement return; }