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.
    http://ninjatrader.com/support/forum...609#post503609

    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 kawalecld, Today, 12:21 PM
    0 responses
    2 views
    0 likes
    Last Post kawalecld  
    Started by farzibopsu, Today, 11:52 AM
    0 responses
    4 views
    0 likes
    Last Post farzibopsu  
    Started by exjayess, Today, 11:04 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by robertlaub, Today, 11:11 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by sdauteuil, Today, 10:28 AM
    0 responses
    6 views
    0 likes
    Last Post sdauteuil  
    Working...
    X