if(IsFirstTickOfBar){
if( CrossAbove(EMA(9),EMA(20),3 ))
{
NineCrossAbove20[0]=1;
Draw.Text(this, CurrentBar.ToString() + "NineCrossAbove20", "9 cross above", 0, 1.5, Brushes.Pink);
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
help on cross above prints
Collapse
X
-
help on cross above prints
I just want to print when the crossabove MA condition occurs. I tried his and cannot see the print at all. Need soem help to figure where i made a mistake. this line is not firing att the draw.text
Code:Tags: None
-
Hello junkone,
Thank you for your note.
They are printing, they're just printing outside the visible range of the screen since you're telling them to print at 1.5 on the Y Axis.
Draw.Text(this, CurrentBar.ToString() + "NineCrossAbove20", "9 cross above", 0, 1.5, Brushes.Pink);
This needs to be a value that's going to be somewhat close to the bar for them to be visible. Try using High[0] + 2 * TickSize there instead. You could use the low minus a few tick offset to put prints below the bar if you prefer that.
Please let us know if we may be of further assistance to you.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
639 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
572 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment