NexusFi: Find Your Edge


Home Menu

 



Categories Help    






The Elite Circle
File sharing for Elite Members only, includes any and all platforms and file types


Entries
Extended Print() function for NinjaTrader 7
Printing to the log is good for debugging, but sometimes I end up with loads of entries in the output window, and I have no idea which indicator on which chart triggered the printout. I have therefore written a global method, which can be used for printing to the Output window for debugging purposes.

Version: 1
Syntax:
PrintToLog(int level, string text)

level: log level 1-5. A corresponding number of "*" are prefixed to the text.

In addition the following information is printed by default:
* Instrument.MasterInstrument.Name
* BarsPeriod.BasePeriodValue.ToString()
* BarsPeriod.BasePeriodType.ToString()
* Time[0].ToString()

and finally the text passed to the method is added to this string.

This global method obviously cannot be run as a standalone indicator, but can be used in your own indicators to print to the Output window.


Category The Elite Circle 
 
Suggest other entries I might like
Details: Extended Print() function for NinjaTrader 7
Category: The Elite Circle 


October 19th, 2016
Size: 1.24 KB
Downloaded: 48 times
 

 
Category
 




© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top