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.
    https://ninjatrader.com/support/foru...121#post791121

    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 MidenThur, Today, 12:52 AM
    0 responses
    3 views
    0 likes
    Last Post MidenThur  
    Started by seseoraf, Today, 12:51 AM
    1 response
    5 views
    0 likes
    Last Post charmingishagarg  
    Started by Rosario, Today, 12:50 AM
    0 responses
    3 views
    0 likes
    Last Post Rosario
    by Rosario
     
    Started by kemoyums, Today, 12:38 AM
    0 responses
    2 views
    0 likes
    Last Post kemoyums  
    Started by MartynBashi, Yesterday, 11:01 PM
    0 responses
    4 views
    0 likes
    Last Post MartynBashi  
    Working...
    X