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

Failing to set STOPLOSS. on current Low( or High)

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

    Failing to set STOPLOSS. on current Low( or High)

    Hello

    I am not a programmer and I can only use the NT wizard to configure my trades. I have been trying the last two weeks to set up the STOPLOSS current bar high (or low).
    1) "variable 1"= "current bar high" ,"offset plus 5 pips"( or minus 5)

    2)On bar open set "variable 1"= " current bar open +5 pips"

    3)On entry " variable 1" = "current bar high ,+5 pips"
    + Draw text on chart "STOP" (at variable 1 price level)

    4) StopLoss, mode = price, = "variable 1"

    The text on the chart occurs at the right time, at the right level, but
    the "STOPLOSS" order is not placed.( and when I look at the "Orders Grid" there is nothing for stops.)
    I have tried to change the order of instructions in the wizard ie.
    setting first the "variable 1" and then "enter Short" etc.but still I just cannot get it working.

    Can you please advise
    Last edited by forextim; 04-22-2009, 07:26 AM.

    #2
    forextim,

    The reason it may not work is because to have a dynamic stop loss that takes a value based off of bars objects you have to do it from code. From the wizard you can tell it to offset to set prices, set offsets from entry price, but you it cannot evaluate the price information of bars unless you do it from actual code.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Critical_Catch, Today, 08:35 AM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by ttrader23, Today, 09:33 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by HiddenPhilosopher, 05-22-2020, 01:09 AM
    25 responses
    2,699 views
    0 likes
    Last Post Trader17  
    Started by Misplace, Today, 11:55 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by amousaber, Yesterday, 09:30 AM
    1 response
    26 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X