Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Helpful suggestion

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

    Helpful suggestion

    Hello all,
    I currently have a custom working indicator that I'd like to use it's data to influence a custom strategy I am working on but have a few questions before I do.

    *If I wrongly assume something based on what I've read please let me know.

    1) I am not sure if it's best to have your indicator code separate from your strategy code or if it makes more sense just to take your indicator code and put it within the strategy file; any suggestion?

    2) From what I've read it seems there is a limit of what data types can be passed from the indicator to the strategy using the Series tag; am I correct?

    I'm leaning towards putting my indicator code into my strategy file because it seems easier and more concise, as well as, being able to display the indicator side of the code on the chart. I figured I'd update the indicator code within the indicator file so that I can debug and visual see my changes then once I'm satisfied I can just port it over to the strategy.

    Hopefully this wasn't too much rambling; thank you for the help.

    Travis Sloneker

    #2
    Hello Travis,

    Having an indicator set plot values means that the logic can be used for strategies, alerts, and the market analyzer. If you don't have use for these, it would be fine to put the logic directly in the strategy. It's up to you and your preference.


    As far as a know, any variable type can be public to be accessed from a calling host script. These should use the XmlIgnore() attribute if they are basic structs like string, int, double, bool, enum.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by several, 03-18-2025, 03:53 AM
    19 responses
    263 views
    1 like
    Last Post workfornowork  
    Started by brucerobinson, Today, 07:08 AM
    4 responses
    31 views
    0 likes
    Last Post bltdavid  
    Started by aligator, Today, 06:32 PM
    0 responses
    17 views
    0 likes
    Last Post aligator  
    Started by clarocque1, Yesterday, 08:17 AM
    2 responses
    19 views
    0 likes
    Last Post clarocque1  
    Started by eleven, Today, 05:23 PM
    0 responses
    12 views
    0 likes
    Last Post eleven
    by eleven
     
    Working...
    X