News Days As Indicator

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30637 quote
    karunswaro
    Participant
    Junior

    Hi,

    I want to show Forex News Days (Say FOMC news 20170315) as indicator?

    If I have a file which has a list of FOMC news Dates, can I write indicator code to read this file from prorealtime and process dates and show these dates as 1 (indicator).

    Thanks,

    Karun

    #30752 quote
    karunswaro
    Participant
    Junior

    Can we read or write to files in ProRealTime?

    #30821 quote
    Nicolas
    Keymaster
    Master

    Sorry but nothing can be imported into ProBuilder. You’ll have to make your own indicator with multiple dates conditions, here is a rough idea:

    //add FOMC dates and separate them with "OR"
    FOMC = date=20170403 or date=20170223 or date=20160523
    
    if FOMC then
     test = 1
    else
     test = 0
    endif
    
    return test as "it's an FOMC day!"
    #30828 quote
    karunswaro
    Participant
    Junior

    Thanks Nicolas!!!

    #30829 quote
    karunswaro
    Participant
    Junior

    Hi Nicolas,

    The Date is not showing properly, can you please look into the other thread? https://www.prorealcode.com/topic/date-indicator/

    Thanks in advance,

    Karun

    #30848 quote
    Nicolas
    Keymaster
    Master

    Answered in the other topic 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

News Days As Indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
karunswaro @karunswaro Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Nicolas
8 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/02/2017
Status: Active
Attachments: No files
Logo Logo
Loading...