[SIZE=2][FONT=Courier New][COLOR=#0000ff]private[/COLOR][/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] tp_ticks = 10[/SIZE][/FONT]
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
DrawHorizontalLine("short tp" ,Position.AvgPrice - (tp_ticks)* TickSize,Color.Green
Collapse
X
-
DrawHorizontalLine("short tp" ,Position.AvgPrice - (tp_ticks)* TickSize,Color.Green
i'm trying to draw line based on (tp_ticks) which is a private int = 10
Code:Tags: None
-
Does this work for you?
Code:[SIZE=2][SIZE=2]DrawHorizontalLine([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"short tp"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], Position.AvgPrice - (tp_ticks * TickSize), Color.Green, DashStyle.Solid, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);[/SIZE][/SIZE] [SIZE=2][SIZE=2][/SIZE][/SIZE]
BertrandNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AdamDJ8, 05-07-2024, 09:18 PM
|
2 responses
15 views
0 likes
|
Last Post
by -=Edge=-
Today, 02:24 AM
|
||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
46 responses
4,100 views
3 likes
|
Last Post
by tradgrad
Today, 02:19 AM
|
||
Started by usasugardefender, Today, 01:42 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 01:42 AM | ||
Started by haas88, 03-21-2024, 02:22 AM
|
15 responses
182 views
0 likes
|
Last Post
by haas88
Today, 01:29 AM
|
||
Started by brianfnoel, Today, 01:24 AM
|
0 responses
6 views
0 likes
|
Last Post
by brianfnoel
Today, 01:24 AM
|
Comment