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 ct, Today, 01:53 AM
    0 responses
    6 views
    0 likes
    Last Post ct
    by ct
     
    Started by SmartArtsStudio, Yesterday, 11:24 PM
    0 responses
    4 views
    0 likes
    Last Post SmartArtsStudio  
    Started by kenz987, Yesterday, 10:06 PM
    0 responses
    8 views
    0 likes
    Last Post kenz987
    by kenz987
     
    Started by AaronKoRn, Yesterday, 07:24 PM
    0 responses
    9 views
    0 likes
    Last Post AaronKoRn  
    Started by Aquatrade, 05-15-2021, 11:46 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X