Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Tape

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

    Auto Tape

    Hi All,

    could anyone convert this into NinjaTrader?

    // Tape v1.0
    // Author: TUMS
    // Date: October 2008
    // License: public domain
    // Description: This program draws the 2 bar tapes
    // http://elitetrader.com/vb/showthread...83#post2109583
    //
    // You are encouraged to post your enhancements on
    // http://www.elitetrader.com/vb/showth...threadid=97684


    inputs:
    tape_color(lightgray);

    variables:
    slope(0),
    id_tl_RTL(-1),
    id_tl_LTL(-1),
    outside_bar(false),
    inside_bar(false),
    RTL_tape_end(0),
    LTL_tape_begin(0),
    LTL_tape_end(0),
    tape_width(0);

    outside_bar = high > high[1] and low < low[1];
    inside_bar = high <= high[1] and low >= low[1];
    tape_width = maxlist(range, range[1]);


    if time > begin_time and time < end_time then
    begin

    if outside_bar = false and inside_bar = false then
    begin

    if high > high[1] then
    begin
    slope = low - low[1];
    RTL_tape_end = low + slope;
    LTL_tape_begin = low[1] + tape_width;
    LTL_tape_end = low + tape_width + slope;

    id_tl_RTL = tl_new(date, time[1], low[1], date, time + barinterval, RTL_tape_end);
    id_tl_LTL = tl_new(date, time[1], LTL_tape_begin, date, time + barinterval, LTL_tape_end );

    tl_setcolor(id_tl_RTL, tape_color);
    tl_setcolor(id_tl_LTL, tape_color);
    end
    else

    if low < low[1] then
    begin
    slope = high[1] - high;
    RTL_tape_end = high - slope;
    LTL_tape_begin = high[1] - tape_width;
    LTL_tape_end = high - tape_width - slope;

    id_tl_RTL = tl_new(date, time[1], high[1], date, time + barinterval, RTL_tape_end);
    id_tl_LTL = tl_new(date, time[1], LTL_tape_begin, date, time + barinterval, LTL_tape_end );

    tl_setcolor(id_tl_RTL, tape_color);
    tl_setcolor(id_tl_LTL, tape_color);
    end;

    end;
    end;

    #2
    Hello cachevery,

    Thank you for your post.

    NinjaTrader does not offer custom development for indicators and/or strategy's

    However, I will leave this thread open for any other users to assist you.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sidlercom80, 10-28-2023, 08:49 AM
    168 responses
    2,261 views
    0 likes
    Last Post sidlercom80  
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,428 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, 04-16-2024, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    41 views
    0 likes
    Last Post jeronymite  
    Working...
    X