![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
I'm wondering how I can most easily draw the profit/loss of a trade on the chart upon exiting?
Using the strategy wizard I'm finding it harder than I expected. If the DrawText action had the ability to select a data source as an input, i.e. (...) + Unrealized PnL it would be easy, but that causes an error which could be because only strings are allowed in this field. I also thought of creating a string variable and setting it to "Unrealized PnL" prior to closing the position, but I couldn't do that either. It seems rather limiting in my opinion to define variables at the start of a strategy if they can't be changed in response to conditions... ![]() Any ideas?
Last edited by Elliott Wave; 04-06-2008 at 11:32 PM.
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
I think that this might be difficult with the Wizard. At first thought, I can't think of a way to accomplish this.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DrawText API doc? | mazachan | General Programming | 1 | 03-04-2008 03:12 PM |
| DrawText | Mike Winfrey | General Programming | 1 | 12-21-2007 04:57 PM |
| Handling of Exit Long and Exit Short before EOD | Trader Rob | Strategy Development | 3 | 10-22-2007 02:13 PM |
| DrawText, DrawLine, etc... | funk101 | Indicator Development | 2 | 05-27-2007 01:13 PM |
| Can not get DrawText to work (NT6) | RedDuke | General Programming | 7 | 05-13-2007 06:10 PM |