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 ageeholdings, Today, 05:22 AM
    0 responses
    4 views
    0 likes
    Last Post ageeholdings  
    Started by llanqui, 04-28-2024, 10:32 AM
    2 responses
    17 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by DroneBlackCa, Today, 05:17 AM
    0 responses
    3 views
    0 likes
    Last Post DroneBlackCa  
    Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
    7 responses
    49 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by deamenvc, Today, 05:00 AM
    0 responses
    4 views
    0 likes
    Last Post deamenvc  
    Working...
    X