NexusFi: Find Your Edge


Home Menu

 





Anyway to show entry/exit trades with a connected line between them?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ticker with 3 posts (0 thanks)
    2. looks_two vvhg with 2 posts (0 thanks)
    3. looks_3 cory with 1 posts (0 thanks)
    4. looks_4 bbritt with 1 posts (0 thanks)
    1. trending_up 3,064 views
    2. thumb_up 0 thanks given
    3. group 7 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread

Anyway to show entry/exit trades with a connected line between them?

  #1 (permalink)
 
ticker's Avatar
 ticker 
Houston TX
 
Experience: Advanced
Platform: NinjaTrader
Trading: TF
Posts: 49 since Oct 2010
Thanks Given: 63
Thanks Received: 9

Anyway to show entry/exit trades with a connected line between them? This works for trades taken on automated strategy, but does not show connecting lines when trades taken manually.

related link on NT Support Forum
http://www.ninjatrader.com/support/forum/showthread.php?t=57967

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

hit f2 then you can draw connect line yourself.

Reply With Quote
  #3 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824


Or you could code an indicator that grabs the filled orders and connects the right ones, easier when ATM strategies were used, but possible either way I believe.

vvhg

Hic Rhodos, hic salta.
Reply With Quote
  #4 (permalink)
 
ticker's Avatar
 ticker 
Houston TX
 
Experience: Advanced
Platform: NinjaTrader
Trading: TF
Posts: 49 since Oct 2010
Thanks Given: 63
Thanks Received: 9


vvhg View Post
Or you could code an indicator that grabs the filled orders and connects the right ones, easier when ATM strategies were used, but possible either way I believe.

vvhg

Thanks. Any idea in how I could code this? Perhaps you have seen the code somewhere already?

Started this thread Reply With Quote
  #5 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824


ticker View Post
Thanks. Any idea in how I could code this? Perhaps you have seen the code somewhere already?

I am not aware of an indicator that does exactly that, but have a look at some indicators that draw lines or channels or some other draw objects and then have a look how to grab the right account from Chart trader and how to sieve through the orders for the right account-instrument combination. You could have a look at the code of vvMiniTradePanel, most is in there (not the lines but the rest) not exactly as you need it, but the method is the same.

vvhg

P.S. Most of this is considered advanced stuff, so you won't find too much help in the official documentation.

Hic Rhodos, hic salta.
Reply With Quote
  #6 (permalink)
SKTennis
Florida City, Florida
 
Posts: 4 since Feb 2014
Thanks Given: 2
Thanks Received: 0

I have an EasyLanguage solution for this. I discovered that in TradeStation when the Entry and Exit were not both visible on the screen it often would not show the green or red connecting line - so I wrote my own.

It calls some functions, you can create your own or ask for help, sorry forgot about functions.

 
Code
{
Type  : Strategy
Name  : skt Trade as TrendLine (TradeLine)
Notes : Show Trades, open and closed, as TrendLine
Create: Mar 11, 2013
Update: May 17, 2013
  Discovered an error, if Position reverses then exits on first bar of new trade it adjusts old TLine instead of drawing a new one.
Update: Jun 09, 2013
  Happy Birthday!
  Added "Shjow_TLine" Input to all the supression o9f TrendLines

  Sample Usage :

Inputs: Show_TLine        (FALSE),
        Profit_Color      (Green),
        Loss_Color          (Red) ;
Inputs: TrendLine_Size       (00),
        TrendLine_Style      (01) ;
IncludeSignal: "skt Trade as TrendLine", Show_TLine, Profit_Color, Loss_Color, TrendLine_Size, TrendLine_Style {, FALSE} ;

EasyLanguage translation provided
 for Stan Ehrlich
  by Samuel K. Tennis
  of Vista-Research (c) 2013

Any unauthorized use of this material may constitute
  a violation of U.S. and International Copyright Laws.
}
Vars  : App_Name  ("skt Trade as TrendLine") ;

Inputs: Show_TLine ( TRUE),
        Prof_Color (Green),
        Loss_Color   (Red) ;
Inputs: tl_Size       (00),
        tl_Style      (01) ;
Vars  : tl_Ref       (-01),
        tl_Err        (00),
        tl_Color      (00) ;


if  (@BarNumber <= 01)  then begin
end ; { first bar of data }

if  (Date [00]  > Date [01])  then begin
end ; { first bar of new day }

if  Show_TLine  then begin

  if  MarketPosition (01)  > 00 and BarsSinceExit (01)  = 00 {and tl_Ref  > -01}
  then begin
    if  ExitPrice (01)  > EntryPrice (01)
      then  tl_Color  = Prof_Color
      else  tl_Color  = Loss_Color ;

    if  tl_Ref  = -01  then begin
      tl_Ref  = skt.Draw_TLine (EntryDate (01), EntryTime (01), EntryPrice (01),
                                 ExitDate (01),  ExitTime (01),  ExitPrice (01),
                                tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
    end
    else begin
// if tl_Color changes call tl_SetColor
      if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
        then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
      if  tl_Ref  > -01
        then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
    end ;

// close out previous TrendLine
    tl_Ref  = -01 ;
  end ; // exit from long trade on a Market, Stop or Limit order

  if  MarketPosition (01) <  00 and BarsSinceExit (01)  = 00 {and tl_Ref  > -01}
  then begin
    if  ExitPrice (01) <  EntryPrice (01)
      then  tl_Color  = Prof_Color
      else  tl_Color  = Loss_Color ;

  if  tl_Ref  = -01  then begin
    tl_Ref  = skt.Draw_TLine (EntryDate (01), EntryTime (01), EntryPrice (01),
                               ExitDate (01),  ExitTime (01),  ExitPrice (01),
                              tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
  end
  else begin

// if tl_Color changes call tl_SetColor
    if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
      then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
      if  tl_Ref  > -01
        then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
    end ;

// close out previous TrendLine
    tl_Ref  = -01 ;
  end ; // exit from short trade on a Market, Stop or Limit order

  if  (@MarketPosition  = +01)  then begin
    if  (@BarsSinceEntry  = 01)  then begin
      if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                    else  tl_Color  = Loss_Color ;
      tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                     Date [00],      Time [00], Close [00],
                                tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
    end ; { first bar of trade }

    if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
      if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
      if  tl_Color <> tl_Color [01]
        then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
      tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
    end ; // adjust the trend line as required
  end ; { currently long }

  if  (@MarketPosition  = -01)  then begin
    if  (@BarsSinceEntry  = 01)  then begin
      if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                    else  tl_Color  = Loss_Color ;
      tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                     Date [00],      Time [00], Close [00],
                                tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
    end ; { first bar of trade }

    if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
      if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                    else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
      if  tl_Color <> tl_Color [01]
        then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
      tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
    end ; // adjust the trend line as required
  end ; { currently short }

{*****
if  MarketPosition (01)  > 00 and BarsSinceExit (01)  = 00
then begin
  if  ExitPrice (01)  > EntryPrice (01)
    then  tl_Color  = Prof_Color
    else  tl_Color  = Loss_Color ;

// if tl_Color changes call tl_SetColor
  if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
    then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
  if  tl_Ref  > -01
    then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
end ; // exit from long trade on a Market, Stop or Limit order

if  MarketPosition (01) <  00 and BarsSinceExit (01)  = 00
then begin
  if  ExitPrice (01) <  EntryPrice (01)
    then  tl_Color  = Prof_Color
    else  tl_Color  = Loss_Color ;

// if tl_Color changes call tl_SetColor
  if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
    then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
  if  tl_Ref  > -01
    then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
end ; // exit from short trade on a Market, Stop or Limit order

if  (@MarketPosition  = +01)  then begin
  if  (@BarsSinceEntry  = 01)  then begin
    if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
    tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                   Date [00],      Time [00], Close [00],
                              tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
  end ; { first bar of trade }

  if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
    if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
    if  tl_Color <> tl_Color [01]
      then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
    tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
  end ; // adjust the trend line as required
end ; { currently long }

if  (@MarketPosition  = -01)  then begin
  if  (@BarsSinceEntry  = 01)  then begin
    if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
    tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                   Date [00],      Time [00], Close [00],
                              tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
  end ; { first bar of trade }

  if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
    if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
    if  tl_Color <> tl_Color [01]
      then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
    tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
  end ; // adjust the trend line as required
end ; { currently short }
 *****}

end ; // Show the Trend_Lines

{*
Vars  : tl_Ref (-01),
        tl_Err  (00) ;

tl_Ref  = @TL_New (sDate, sTime, sVal, eDate, eTime, eVal) ;
tl_Err  = @TL_SetExtLeft  (tl_Ref, tfExt)
tl_Err  = @TL_SetExtRight (tl_Ref, tfExt)
tl_Err  = @TL_SetEnd      (tl_Ref, eDate, eTime, eVal)
tl_Err  = @TL_SetColor    (tl_Ref, clr)
tl_Err  = @TL_SetStyle    (tl_Ref, clr)
 *}

{***
#beginCmtry
Inputs: ShowCmtry (FALSE) ;

if  CheckCommentary and ShowCmtry  then begin
  CommentaryCL ("Strategy : '<b>", App_Name,
                         "</b>' ", @vrt.MMDDYYYY (Date),
                              " ", @vrt.HHMM.pm  (Time)) ;

end ; { expert commentary enabled for this bar }
#end ;
 ***}

{
Custom Programming Services provided by:
                 Samuel K. Tennis
                  Vista-Research
                    PO Box 1984
         Ft. Walton Beach, Florida  32549
          voice :  1(850) 243-5105
          cell  :  1(850) 582-7342
          fax   :  1(510) 743-8274
}

Reply With Quote
  #7 (permalink)
 
ticker's Avatar
 ticker 
Houston TX
 
Experience: Advanced
Platform: NinjaTrader
Trading: TF
Posts: 49 since Oct 2010
Thanks Given: 63
Thanks Received: 9


SKTennis View Post
I have an EasyLanguage solution for this. I discovered that in TradeStation when the Entry and Exit were not both visible on the screen it often would not show the green or red connecting line - so I wrote my own.

It calls some functions, you can create your own or ask for help, sorry forgot about functions.

 
Code
{
Type  : Strategy
Name  : skt Trade as TrendLine (TradeLine)
Notes : Show Trades, open and closed, as TrendLine
Create: Mar 11, 2013
Update: May 17, 2013
  Discovered an error, if Position reverses then exits on first bar of new trade it adjusts old TLine instead of drawing a new one.
Update: Jun 09, 2013
  Happy Birthday!
  Added "Shjow_TLine" Input to all the supression o9f TrendLines

  Sample Usage :

Inputs: Show_TLine        (FALSE),
        Profit_Color      (Green),
        Loss_Color          (Red) ;
Inputs: TrendLine_Size       (00),
        TrendLine_Style      (01) ;
IncludeSignal: "skt Trade as TrendLine", Show_TLine, Profit_Color, Loss_Color, TrendLine_Size, TrendLine_Style {, FALSE} ;

EasyLanguage translation provided
 for Stan Ehrlich
  by Samuel K. Tennis
  of Vista-Research (c) 2013

Any unauthorized use of this material may constitute
  a violation of U.S. and International Copyright Laws.
}
Vars  : App_Name  ("skt Trade as TrendLine") ;

Inputs: Show_TLine ( TRUE),
        Prof_Color (Green),
        Loss_Color   (Red) ;
Inputs: tl_Size       (00),
        tl_Style      (01) ;
Vars  : tl_Ref       (-01),
        tl_Err        (00),
        tl_Color      (00) ;


if  (@BarNumber <= 01)  then begin
end ; { first bar of data }

if  (Date [00]  > Date [01])  then begin
end ; { first bar of new day }

if  Show_TLine  then begin

  if  MarketPosition (01)  > 00 and BarsSinceExit (01)  = 00 {and tl_Ref  > -01}
  then begin
    if  ExitPrice (01)  > EntryPrice (01)
      then  tl_Color  = Prof_Color
      else  tl_Color  = Loss_Color ;

    if  tl_Ref  = -01  then begin
      tl_Ref  = skt.Draw_TLine (EntryDate (01), EntryTime (01), EntryPrice (01),
                                 ExitDate (01),  ExitTime (01),  ExitPrice (01),
                                tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
    end
    else begin
// if tl_Color changes call tl_SetColor
      if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
        then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
      if  tl_Ref  > -01
        then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
    end ;

// close out previous TrendLine
    tl_Ref  = -01 ;
  end ; // exit from long trade on a Market, Stop or Limit order

  if  MarketPosition (01) <  00 and BarsSinceExit (01)  = 00 {and tl_Ref  > -01}
  then begin
    if  ExitPrice (01) <  EntryPrice (01)
      then  tl_Color  = Prof_Color
      else  tl_Color  = Loss_Color ;

  if  tl_Ref  = -01  then begin
    tl_Ref  = skt.Draw_TLine (EntryDate (01), EntryTime (01), EntryPrice (01),
                               ExitDate (01),  ExitTime (01),  ExitPrice (01),
                              tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
  end
  else begin

// if tl_Color changes call tl_SetColor
    if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
      then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
      if  tl_Ref  > -01
        then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
    end ;

// close out previous TrendLine
    tl_Ref  = -01 ;
  end ; // exit from short trade on a Market, Stop or Limit order

  if  (@MarketPosition  = +01)  then begin
    if  (@BarsSinceEntry  = 01)  then begin
      if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                    else  tl_Color  = Loss_Color ;
      tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                     Date [00],      Time [00], Close [00],
                                tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
    end ; { first bar of trade }

    if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
      if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
      if  tl_Color <> tl_Color [01]
        then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
      tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
    end ; // adjust the trend line as required
  end ; { currently long }

  if  (@MarketPosition  = -01)  then begin
    if  (@BarsSinceEntry  = 01)  then begin
      if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                    else  tl_Color  = Loss_Color ;
      tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                     Date [00],      Time [00], Close [00],
                                tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
    end ; { first bar of trade }

    if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
      if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                    else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
      if  tl_Color <> tl_Color [01]
        then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
      tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
    end ; // adjust the trend line as required
  end ; { currently short }

{*****
if  MarketPosition (01)  > 00 and BarsSinceExit (01)  = 00
then begin
  if  ExitPrice (01)  > EntryPrice (01)
    then  tl_Color  = Prof_Color
    else  tl_Color  = Loss_Color ;

// if tl_Color changes call tl_SetColor
  if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
    then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
  if  tl_Ref  > -01
    then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
end ; // exit from long trade on a Market, Stop or Limit order

if  MarketPosition (01) <  00 and BarsSinceExit (01)  = 00
then begin
  if  ExitPrice (01) <  EntryPrice (01)
    then  tl_Color  = Prof_Color
    else  tl_Color  = Loss_Color ;

// if tl_Color changes call tl_SetColor
  if  tl_Ref  > -01 and tl_Color <> tl_Color [01]
    then  tl_Err  = @TL_SetColor (tl_Ref, tl_Color) ;

// Move end of trend line to exit price
  if  tl_Ref  > -01
    then  tl_Err  = TL_SetEnd (tl_Ref, ExitDate (01), ExitTime (01), ExitPrice (01)) ;
end ; // exit from short trade on a Market, Stop or Limit order

if  (@MarketPosition  = +01)  then begin
  if  (@BarsSinceEntry  = 01)  then begin
    if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
    tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                   Date [00],      Time [00], Close [00],
                              tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
  end ; { first bar of trade }

  if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
    if  Close  > EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
    if  tl_Color <> tl_Color [01]
      then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
    tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
  end ; // adjust the trend line as required
end ; { currently long }

if  (@MarketPosition  = -01)  then begin
  if  (@BarsSinceEntry  = 01)  then begin
    if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
    tl_Ref  = skt.Draw_TLine (EntryDate (00), EntryTime (00), EntryPrice (00),
                                   Date [00],      Time [00], Close [00],
                              tl_Color, FALSE, FALSE, tl_Size, tl_Style) ;
  end ; { first bar of trade }

  if  BarsSinceEntry  > 01 and tl_Ref  > -01  then begin
    if  Close <  EntryPrice (00)  then  tl_Color  = Prof_Color
                                  else  tl_Color  = Loss_Color ;
// if tl_Color changes call tl_SetColor
    if  tl_Color <> tl_Color [01]
      then  tl_Err  = @TL_SetColor    (tl_Ref, tl_Color) ;
// Move end of trend line to new close
    tl_Err  = TL_SetEnd      (tl_Ref, Date [00], Time [00], Close [00]) ;
  end ; // adjust the trend line as required
end ; { currently short }
 *****}

end ; // Show the Trend_Lines

{*
Vars  : tl_Ref (-01),
        tl_Err  (00) ;

tl_Ref  = @TL_New (sDate, sTime, sVal, eDate, eTime, eVal) ;
tl_Err  = @TL_SetExtLeft  (tl_Ref, tfExt)
tl_Err  = @TL_SetExtRight (tl_Ref, tfExt)
tl_Err  = @TL_SetEnd      (tl_Ref, eDate, eTime, eVal)
tl_Err  = @TL_SetColor    (tl_Ref, clr)
tl_Err  = @TL_SetStyle    (tl_Ref, clr)
 *}

{***
#beginCmtry
Inputs: ShowCmtry (FALSE) ;

if  CheckCommentary and ShowCmtry  then begin
  CommentaryCL ("Strategy : '<b>", App_Name,
                         "</b>' ", @vrt.MMDDYYYY (Date),
                              " ", @vrt.HHMM.pm  (Time)) ;

end ; { expert commentary enabled for this bar }
#end ;
 ***}

{
Custom Programming Services provided by:
                 Samuel K. Tennis
                  Vista-Research
                    PO Box 1984
         Ft. Walton Beach, Florida  32549
          voice :  1(850) 243-5105
          cell  :  1(850) 582-7342
          fax   :  1(510) 743-8274
}

Many thanks that is great, I appreciate you taking the time to get this. Does anyone know how I can get this coded for Ninjatrader?

Started this thread Reply With Quote
  #8 (permalink)
 bbritt 
Alexandria, LA 71301
 
Experience: Intermediate
Platform: TradeStation NinjaTrader
Trading: ES
Posts: 1 since Oct 2013
Thanks Given: 0
Thanks Received: 0

Did you have any luck building a Ninja indicator for this (connecting line for entry and exit while manual trading) - or find one somewhere? I need this also for screen shots of my trading day for my trade journal. The standard Ninja trade markers are basically useless without lines. -Thanks

Reply With Quote
  #9 (permalink)
BMM73
Genova Italy
 
Posts: 10 since Jan 2018
Thanks Given: 1
Thanks Received: 0

Hi,

is a solution available after almost five years?

thanks

Reply With Quote
  #10 (permalink)
 
glennts's Avatar
 glennts 
Corpus Christi, TX / Westcliffe, CO
 
Experience: Advanced
Platform: NinjaTrader
Broker: DDT / Rithmic / Kinetick / IQ
Trading: 6E, ES
Posts: 420 since Oct 2010
Thanks Given: 24
Thanks Received: 1,022


search for the indicator Rainbow.. it will connect entry/exit, show trade result over the exit bar and many other useful functions

Reply With Quote




Last Updated on May 12, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts