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

entry condition

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

    entry condition

    hi,
    have a question regarding TickSize function. How do I create a script for a long entry which is more than 1 tick above reference price?

    for example if the reference price is "x" and i want to place a longstop at 2 ticks above "x", how do i script that?

    is "EnterLongStop(x + 2*TickSize)" correct?

    #2
    Hi,
    I think its EnterLongLimit(x + 2*TickSize)

    Baruch

    Comment


      #3
      kaywai,

      For long stop's your code will work. Baruch's will work for long limits with that as the limit price.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Ludwik, Today, 03:52 AM
      4 responses
      25 views
      0 likes
      Last Post Ludwik
      by Ludwik
       
      Started by DawnTreader, 05-08-2024, 05:58 PM
      18 responses
      66 views
      0 likes
      Last Post DawnTreader  
      Started by xepher101, 05-10-2024, 12:19 PM
      3 responses
      44 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by jrp2099, Today, 08:01 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by ETFVoyageur, Yesterday, 02:10 AM
      4 responses
      46 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X