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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment