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
How do I add equity curve and pnl of a strategy on a chart?
Collapse
X
-
How do I add equity curve and pnl of a strategy on a chart?
I want to add equity curve to the chart of a strategy using the strategy builder...also I want to add the pnl of the strategy on the chartTags: None
-
yes....thank you....can you help me understand strings and hows it work and what it could be used for
Comment
-
Hello rickyblah12,
A string is a collection of characters. Like a sentence.
"Hello world" <- this is a string. If the string is printed, the output would be Hello world.
Strings are used for messages, names, and labels.
The text from this entire post could be saved as a string.
Below is a public link to a 3rd party educational site on strings.
Chelsea B.NinjaTrader Customer Service
Comment
-
-
Hello rickyblah12,
I'm not quite sure I am understanding your inquiry.
Can you further clarify what you are asking?
Draw.TextFixed() would be called when you want to draw text on the chart such as the RealizedPnL value.
This could be in OnBarUpdate() or OnPositionChanged() or OnOrderUpdate() / OnExecution()..
Below is a link to the help guide on Draw.TextFixed().
Chelsea B.NinjaTrader Customer Service
Comment
-
Chelsea what I mean is if...set 1 is how you showed me....set 2 is my long strategy and set 3 is my short strategy....would it show n update like that?1 Photo
Comment
-
-
Hello rickyblah12,
Not with the strategy builder. If you unlock the script you can manually code using the overload that allows for a brush.
Draw.TextFixed(NinjaScriptBase owner, string tag, string text, TextPosition textPosition, Brush textBrush, SimpleFont font, Brush outlineBrush, Brush areaBrush, int areaOpacity)
Chelsea B.NinjaTrader Customer Service
Comment
-
ok thank you...how do I make horizontal line like this that corresponds with the equity curve of a strategy1 Photo
Comment
-
ok...how come when I add the realized pnl to show the historical profit and I add the unrelealized profit on the bottom right corner it doesnt show me both at the same time ? either one or the other
Comment
-
Hello rickyblah12,
If you are drawing two objects, these will need to have different unique tag names.
What tag names are you using for the drawing objects?
Also, you would likely want to draw these in different areas so they are not drawn on top of each other.Chelsea B.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
4 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
52 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
Comment