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 helpwanted, Today, 03:06 AM
    1 response
    10 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    7 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    385 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X