Before I go delving into the way to do this, I want to know if this is possible. Sometimes on lower time frames it can be quite frantic to calculate the trade position size to adhere to your money management rules. So I want to be able to calculate the pip size of a price bar, and from that, along with the current exchange rates, calculate my position size. Then print the figure out on the chart whenever the strategy throws up its signal?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Post position size on charts
Collapse
X
-
Post position size on charts
Hi
Before I go delving into the way to do this, I want to know if this is possible. Sometimes on lower time frames it can be quite frantic to calculate the trade position size to adhere to your money management rules. So I want to be able to calculate the pip size of a price bar, and from that, along with the current exchange rates, calculate my position size. Then print the figure out on the chart whenever the strategy throws up its signal?Tags: None
-
Thanks JoshOriginally posted by NinjaTrader_Josh View PostYes you can do that. To print values onto the chart you could use DrawText() or DrawTextFixed().
So now I need to make a calculation based on the high, low and close value of the last bar, and then pass the result into the Drawtext function. How would I go about this?
Comment
-
For example this snippet draws the High / Low range of the last completed bar in the upper right corner of the chart -
For our indicator coding tutorials to get you started, please check this link - http://www.ninjatrader-support.com/H...verview18.htmlCode:protected override void OnBarUpdate() { double myRange = High[0] - Low[0]; DrawTextFixed("myRangeText", myRange.ToString(), TextPosition.TopRight); }
Comment
-
Thanks Bertrand
I've now set my three variables (myEntry, myStop, myPos). Is it possible to include all three of these in the string with a carriage break between them, so I have a list consisting of entry price, stop loss, position size printed on the chart?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
61 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment