Announcement

Collapse
No announcement yet.

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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X