Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 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