Anyway to show entry/exit trades with a connected line between them? - NinjaTrader | futures io social day trading
futures io futures trading


Anyway to show entry/exit trades with a connected line between them?
Updated: Views / Replies:1,256 / 7
Created: by ticker Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

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

  #1 (permalink)
Elite Member
Houston TX
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: TF
 
ticker's Avatar
 
Posts: 49 since Oct 2010
Thanks: 63 given, 9 received

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

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

Reply With Quote
 
  #2 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary

hit f2 then you can draw connect line yourself.

Reply With Quote
 
  #3 (permalink)
Elite Member
Northern Germany
 
Futures Experience: Intermediate
Platform: NT
Favorite Futures: FDAX, CL
 
vvhg's Avatar
 
Posts: 1,583 since Mar 2011
Thanks: 1,016 given, 2,807 received


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)
Elite Member
Houston TX
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: TF
 
ticker's Avatar
 
Posts: 49 since Oct 2010
Thanks: 63 given, 9 received


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?

Reply With Quote
 
  #5 (permalink)
Elite Member
Northern Germany
 
Futures Experience: Intermediate
Platform: NT
Favorite Futures: FDAX, CL
 
vvhg's Avatar
 
Posts: 1,583 since Mar 2011
Thanks: 1,016 given, 2,807 received


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)
Trading Apprentice
Fort Walton Beach, Florida
 
Futures Experience: None
Platform: EasyLanguage
Favorite Futures: SP
 
Posts: 4 since Feb 2014
Thanks: 0 given, 0 received

TradeStation Solution

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
}


Last edited by SKTennis; February 17th, 2014 at 05:04 PM. Reason: Calls Functions not included
Reply With Quote
 
  #7 (permalink)
Elite Member
Houston TX
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: TF
 
ticker's Avatar
 
Posts: 49 since Oct 2010
Thanks: 63 given, 9 received


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?

Reply With Quote
 
  #8 (permalink)
Elite Member
Alexandria, LA 71301
 
Futures Experience: Intermediate
Platform: TradeStation NinjaTrader
Favorite Futures: ES
 
Posts: 1 since Oct 2013
Thanks: 0 given, 0 received

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

Reply



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

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exit the day after entry? Orjan EasyLanguage Programming 14 November 4th, 2013 11:22 AM
Strategy Entry/Exit Visualization zeller4 NinjaTrader Programming 6 November 8th, 2012 11:22 AM
a simple entry exit bar johni EasyLanguage Programming 7 July 23rd, 2011 05:34 AM
Coding a simple entry and exit johni EasyLanguage Programming 10 July 1st, 2011 07:44 AM
1 entry order 5 exit orders togier Traders Hideout 2 April 11th, 2011 04:27 AM


All times are GMT -4. The time now is 07:07 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-16 in 0.14 seconds with 35 queries on phoenix via your IP 54.226.113.250