Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Switch candlesticks

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

    Switch candlesticks

    Hi

    Hoping someone could help me.

    Is it possible to set-up an indicator (called say CandlePattern)which uses switch for say 10 case patterns

    eg
    case 1
    pattern = Close[1] < Open[1] && Close[0] > Open[0] && Close[0] > Open[1] && Open[0] < Close[1]

    then use each case as an input (pattern) for a strategy which can then change the pattern (case 0,1,2 etc) during optimisation.

    Then use pattern within an if statement which calls CandlestickPattern (pattern (case number)) to action an entry.

    Hope this makes sense.

    Many thanks

    #2
    Hello fluke,

    This does sound possible to do.

    Are you trying to create this?

    Are you running into errors?

    Below is a link to a post with helpful information about getting started with NinjaScript.


    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    4 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    40 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X