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 NullPointStrategies, Today, 05:17 AM
    0 responses
    44 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X