Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Trail (ticks)

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

    Auto Trail (ticks)

    I have ninja script strategy for an auto trail (sample price modification) and a seperate ninjascript strategy for a 10 EMA crossing a 20 EMA but my main problem has been trying to combine the 2 strategies together. Also is Sample Price Modification an auto trail or auto break even i havnt been able to tell based on some of the code?

    Thank You
    Last edited by RColtelli; 12-14-2011, 11:29 PM. Reason: found part of question on forum

    #2
    RColtelli, welcome to our forums - the SamplePriceModification example shows how to move the stoploss by calling the SetStopLoss in OnBarUpdate() again with your new desired stop value, it would not include multiple steps to provide a trailing feature, this could be for example achieved by trailing alongside a MA value in your code. You can combine parts of this script with the other one you found providing the entry rules on a crossover. To first of all get more familiar with our NinjaScript, please check into our tutorials from the helpguide laying the basics : http://www.ninjatrader.com/support/h.../tutorials.htm
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AaronKoRn, Today, 09:49 PM
    0 responses
    6 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,976 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X