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

RSS Feed , ninjatrader 8 strategy

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

    RSS Feed , ninjatrader 8 strategy

    Hello mates,
    I would like to add a "RSS feed" to my ninjatrader 8 strategy code to trade the Crude oil inventories news. When the economic time from the RSS feed macth with my computer time then allow the strategy to execute his logic.

    I want to incorporate the following Forex Factory economic RSS feed to my code:
    How coud be the logic?

    Can I use this?? : https://www.forexfactory.com/calendar.php



    They do a RSS feed so Can I automate this??.







    3:30pm

    USD

    Crude Oil Inventories



    <event><title>Crude Oil Inventories</title><country>USD</country><date>08-01-2018</date><time>2:30pm</time><impact>High</impact><forecast>-2.6M</forecast><previous>-6.1M</previous></event>

    Many thanks in advance for your help

    #2
    Hello bcomas,

    Thank you for writing in.

    Yes this would be possible however would require some custom code.

    I put together a sample indicator which will parse the short interest of a stock, pulled from a table off WSJ.com, and display that value on a chart.

    You could use this sample as a framework for how you could parse the information you’d like from the calendar.

    Once you’ve parsed the report to a date time object, you could then check if the current time was equal to or after the report time. Below would be an example of how you could use a time filter to limit trading,



    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    541 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    2 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    7 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    14 views
    0 likes
    Last Post TradeForge  
    Working...
    X