Announcement

Collapse
No announcement yet.

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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X