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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    35 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    12 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X