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

Using greater than and less than in the same condition?

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

    Using greater than and less than in the same condition?

    Heres a screenshot of what I have so far, but this doesn't work:

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


    If this offers any clarification, I am trying to create instructions for the condition:

    Value < CurrentBid < Value

    Any ideas?

    Thanks,
    Loren

    #2
    Try something like:

    value < bid && value < value
    RayNinjaTrader Customer Service

    Comment


      #3
      Thank you sir, I realized that was a dumb question just after I posted it. But heres one thats hopefully not so dumb...

      I am trying to set up a position management system that has the following:
      x% Firm Stop
      x% Trail Stop
      x% Profit Target to dump half the position

      Heres the way I have it set up:

      Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


      The problem with this is that for some reason, trail stops are not triggering. Firm stops and profit targets are however.

      The way only way I can find to dump half a position is to open two half positions at the start, hence the 4 order types.

      Can anyone tell me why the trail stops arent triggering?

      Comment


        #4
        You can't set firm and trailing stops for the same order. You have to choose one. Also you can change "firm" stop's price by changing it inside the script, so it will become kind of "trailing"
        Last edited by roonius; 03-01-2009, 12:31 AM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Max238, Today, 01:28 AM
        4 responses
        36 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by r68cervera, Today, 05:29 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geddyisodin, Today, 05:20 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by timko, Today, 06:45 AM
        2 responses
        14 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by habeebft, Today, 07:27 AM
        0 responses
        7 views
        0 likes
        Last Post habeebft  
        Working...
        X