Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

% move from open bands?

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

    % move from open bands?

    I am learning ninjascript but need help creating a simple indicator.
    plot upper and lower bands off a X% move from the opening print.

    When I say bands, I mean horizontal lines similar to an opening range, but plotted based off the % input.

    can someone help me with this?
    Last edited by mdl060374; 11-28-2019, 10:13 PM.

    #2
    Hi mdl060374, thanks for your note.

    The Bollinger Bands indicator is a good example of plotting upper and lower standard deviation. To get the opening price of the first bar of the session, use IsFirstBarOfSession

    e.g. if(IsFirstBarOfSession) {Print(Open[0]);}

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X