Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Risk-Reward drawing tool as input for indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using Risk-Reward drawing tool as input for indicator

    Hello, I am trying to create an indicator where I require as input parameters:

    Risk-Reward drawing tool
    Cash value on the account

    My plan is to use the Risk-Reward drawing tool to measure manually my risk for operation, then use it as parameter input to calculate the # of lots to open an operation based Cash Value on the account and Risk, a plus update Order

    How can I get the data from the Risk-Reward drawing tool (if possible)
    and from where can I get the Cash Value on the account,

    Regards,
    Alejandro

    #2
    Hi Alejandro, thanks for your post.

    The RiskReward object properties are documented here:
    https://ninjatrader.com/support/help...riskreward.htm

    It has three ChartAnchor objects and one "Ratio" integer.

    When you call Draw.RiskReward() this object is returned.

    To get CashValue from an indicator you need to set up an Addon style Account object, we have a full code example of doing this here:
    https://ninjatrader.com/support/help...ount_class.htm

    Specifically, you would use the Account.Get() method.

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by yodaler, Today, 06:12 PM
    0 responses
    2 views
    0 likes
    Last Post yodaler
    by yodaler
     
    Started by op1031, Today, 05:16 PM
    0 responses
    1 view
    0 likes
    Last Post op1031
    by op1031
     
    Started by fscabrera03, Today, 01:18 PM
    1 response
    11 views
    0 likes
    Last Post fscabrera03  
    Started by BottomShark77, Today, 12:20 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by bowling, Today, 06:16 AM
    3 responses
    29 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X