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 designer01, 03-03-2022, 04:36 PM
    2 responses
    193 views
    0 likes
    Last Post DerkWehler  
    Started by frenchFlorent, Yesterday, 11:26 AM
    4 responses
    14 views
    0 likes
    Last Post frenchFlorent  
    Started by jevillanueva7, 05-08-2023, 09:36 AM
    12 responses
    198 views
    0 likes
    Last Post jeronymite  
    Started by franatas, 02-23-2024, 02:01 AM
    2 responses
    14 views
    0 likes
    Last Post franatas  
    Started by eltonany, Today, 01:56 AM
    0 responses
    3 views
    0 likes
    Last Post eltonany  
    Working...
    X