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

better understanding the Renko Trading Strategy NT8 - RenkoStrategy

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

    better understanding the Renko Trading Strategy NT8 - RenkoStrategy

    greetings !

    i would like to add a couple items to this existing strategy found here - https://ninjatraderecosystem.com/use...-strategy-nt8/ created by NinjaTrader_Jim

    1 - a check for certain trading times according to a schedule
    2 - a sound notification played each time the trailing stop moves - same as the ATMs

    in trying to figure this out i was surprised to find several arrays used in the code and could not locate where the trailing stops were generated besides the initial call to settrailstop().. is there a way to enable the ca-ching sound with this ? the reference text doesnt address..

    i understand basically what an array is but confused why it was utilized.. would you kindly describe why several array structures are used in this strategy.. what does each do ? ideally comments could be located within the script code and attached to this forum to describe workings ?

    thanks so much !

    #2
    Hello jazzydee,

    Thank you for your note.

    As far as setting up time filters, I like to create those in the Strategy Builder then unlock the code and copy my created filter conditions into my strategy.

    An example of setting up a time filter in the Strategy Builder may be found here:



    There would not be a direct method to play a sound when SetTrailStop updates. You could create logic that each time a new price that's higher than the highest seen since the entry for a buy is seen, or vice versa for a short position, then play a sound using PlaySound(), but there's no overload for SetTrailStop to do that automatically.

    As far as the arrays, these are used to hold bools that are assigned when the bars are checked to see if they are rising or falling. These are then checked to see whether they are all true for the last EntryStrength (or ExitStrength, if UseExitStrength is true) and if so, an order appropriate to the direction of the trend is submitted.

    SetTrailStop would need to only be called once, in State.Configure, and would then apply to all trades taken if UseTrailStop is true.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    11 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    16 views
    0 likes
    Last Post AaronKoRn  
    Working...
    X