News Days As Indicator

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30637 quote
    karunswarokarunswaro
    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
    karunswarokarunswaro
    Participant
    Junior

    Can we read or write to files in ProRealTime?

    #30821 quote
    NicolasNicolas
    Keymaster
    Legend

    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
    karunswarokarunswaro
    Participant
    Junior

    Thanks Nicolas!!!

    #30829 quote
    karunswarokarunswaro
    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
    NicolasNicolas
    Keymaster
    Legend

    Answered in the other topic šŸ™‚

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
9 years, 6 months ago.

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