Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

help on cross above prints

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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:
     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);
    }
    Attached Files

    #2
    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.

    Comment

    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 Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X