Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to print to output file?
Collapse
X
-
How to print to output file?
Please help figure this out. I am printing to output file latest highest price. The problem is that it prints on every bar update so my output files fills up very fast. I need to only print the highest value of price once and then when it reaches higher then the last highest then print it again.Tags: None
-
Originally posted by relogical View PostPlease help figure this out. I am printing to output file latest highest price. The problem is that it prints on every bar update so my output files fills up very fast. I need to only print the highest value of price once and then when it reaches higher then the last highest then print it again.
private double hmax = 0;
Someplace after onbarupdate
if (High[0] > hmax)
{
hmax = High[0] ;
Print ("CurrentBar: "+CurrentBar+" New high = "+hmax);
}
hope this helps.
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 09:10 AM
|
1 response
9 views
0 likes
|
Last Post Today, 09:46 AM | ||
Started by goodknight777, Today, 08:43 AM
|
1 response
5 views
0 likes
|
Last Post Today, 09:25 AM | ||
Started by kramnor2001, Yesterday, 02:30 PM
|
3 responses
21 views
0 likes
|
Last Post
by kramnor2001
Today, 09:20 AM
|
||
Started by Padan, Today, 02:02 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 08:54 AM | ||
Started by Tim-c, Today, 08:36 AM
|
1 response
3 views
0 likes
|
Last Post Today, 08:45 AM |
Comment