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

Targets and Stops whilst pyramiding.

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

    Targets and Stops whilst pyramiding.

    Hello,

    I have written a strategy whose stops and targets are managed by using the code in your SampleOnBarUpdate strategy. This all works fine but when i try to set the pyramiding to greater than one the no of entries goes up ok but no extra stops or targets are added. I'm using this method of stops/targets since i have multiple DataSeries so wish to specify which one to enter order on. Ive tried all the various combinations of Entry Handling and StopTargetHandling to no avail. Could you please point me in the right direction of what i have to alter to increase the no of stops and targets to match the increasing lot size.

    Thanks and Kind Regards,

    Col.

    #2
    Hello cdsmart,

    Welcome to the NinjaTrader forums!

    Is TraceOrders enabled? If not, set TraceOrders = true; in State.Configure to enable this.

    Then re-run the script. Do any messages from TraceOrders appear in the NinjaScript Output window? (This would let us know if and why an order is being ignored)

    Below is a link to a forum post that shows how to use the NinjaScript Output window.


    What do you have EntryHandling set to?
    What do you have EntriesPerDirection set to?
    Where these modified in State.SetDefaults (defaults are only pulled when first adding an instance of the script) or are these set in State.Configure?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MarianApalaghiei, Today, 10:49 PM
    2 responses
    8 views
    0 likes
    Last Post MarianApalaghiei  
    Started by love2code2trade, Yesterday, 01:45 PM
    4 responses
    28 views
    0 likes
    Last Post love2code2trade  
    Started by funk10101, Today, 09:43 PM
    0 responses
    8 views
    0 likes
    Last Post funk10101  
    Started by pkefal, 04-11-2024, 07:39 AM
    11 responses
    37 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    8 responses
    46 views
    0 likes
    Last Post bill2023  
    Working...
    X