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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
57 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
78 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
41 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
101 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
61 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment