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

Help whit Placing Order Strategy

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

    Help whit Placing Order Strategy

    Hello,

    I'm new around here, and so i'm on Programing! I'm trying to make a simple Strategy by the Market Wizard, but i cant find the option i need...

    What i would like to do is this:

    - Based on Renko 3 Chart.

    -"Something" that see if the candle close Green or Red (since chart is Renko 3, it would be something like "Buy +3 if Green | Sell -3 if Red".

    - Since i have the problem of placing orders "late", i find a solution that can be simple, (I hope) that is: " If price Close > Open, wait untill price is "+4" and buy in "+3"" . So i would let price go 1 tick above to LIMIT IN.

    I hope i made my Self clear, and not to mutch confuse. Is some 1 could help me on how to add the last part (in blue) on wizzard, or just writte me some code, that i can base on i would appreciate alot!

    Thank you

    #2
    Hello PauloP,


    There is not a way to reference renko bars in the strategy wizard.
    You would need to manually program a renko bar series into your strategy.


    Here is the AddRenko() and BarsInProgress Help Guides to assist you further.


    Here is the Order Methods Help Guide that details that various order methods you could use.


    For example:
    Code:
    [COLOR=#000000][FONT=Tahoma][COLOR=#000000][FONT=Tahoma]protected override void Initialize()
    {
        AddRenko("ES 09-16", 3, MarketDataType.Last);
    }
     
    protected override void OnBarUpdate()
    {
        if (BarsInProgress == 1)
        {
       // Do something;
       }
    }[/FONT][/COLOR][/FONT][/COLOR]
    Shawn B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    18 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X