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

Camarilla pivot strategy

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

    Camarilla pivot strategy

    Hey there !
    I'm trying to make my first own script
    Using Camarilla Pivot, it's working amazing specially during rang, well

    My probleme is, i'm trying to add a micro contract each time i'm crossing the upper or lower band, how could I do that please ?

    thanks

    #2
    Hello Lau24,

    Thanks for your post.

    You could consider creating a strategy that checks if the current market price (Close[0]) crosses above the upper band of the Camarilla Pivots indicator and call an entry method to place an order.

    EntriesPerDirection and EntryHandling could be used to control the maximum number of entries allowed per direction while a position.

    If you set Entry Handling to EntryHandling.AllEntries, NinjaScript will process all entry order methods up to the maximum allowable entries set in the EntriesPerDirection property. For example, if you set EntriesPerDirection to 3 and use EntryHandling.AllEntries, up to a total of 3 entry orders will process.

    If you set Entry Handling to EntryHandling.UniqueEntries, NinjaScript will process order entry methods up to the maximum allowable entries set by the EntriesPerDirection property for each uniquely named entry. For example, if you have two entry order methods using unique signal names ("entry1" and "entry2"), set EntriesPerDirection to 3, and use EntryHandling.UniqueEntries, a maximum number of 3 entry orders will process for each uniquely named entry order (up to 3 orders for "entry1" and 3 orders for "entry2").

    See the help guide documentation below for more information.
    EntriesPerDirection: https://ninjatrader.com/support/help...rdirection.htm
    EntryHandling: https://ninjatrader.com/support/help...ryhandling.htm

    Let us know if we may assist further.

    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by JesseOffshore, Today, 09:40 PM
    0 responses
    1 view
    0 likes
    Last Post JesseOffshore  
    Started by WHICKED, 04-26-2024, 12:56 PM
    4 responses
    138 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by ezrollin, 02-26-2022, 11:14 PM
    7 responses
    207 views
    0 likes
    Last Post kenz987
    by kenz987
     
    Started by rocketman7, Today, 08:34 PM
    0 responses
    4 views
    0 likes
    Last Post rocketman7  
    Started by rt61968, 02-17-2018, 05:24 PM
    3 responses
    2,736 views
    0 likes
    Last Post MasterEtrad3  
    Working...
    X