Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Can I write 5m bar OHLC and Indicator values to a file?
 Post subject: Can I write 5m bar OHLC and Indicator values to a file? Post rating: 0   New post Posted: Sat 28 Oct, 2017, 21:06 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 20:13
Posts: 1
Location: United KingdomUnited Kingdom
Hello.

I want to write OHLC, 20 period SMA and 14 period RSI values to a text file at the close of each 5 minute bar for EURUSD.

I would like the values for each bar close to appear on one line so that the text file looks like the example below:

[time stamp], [open], [high], [low], [close], [20SMA], [14RSI]
01/11/2017 00:00.000, 1.12345, 1.12345, 1.12345, 1.12345, 1.xxxxx, 38.455
01/11/2017 00:05.000, 1.12345, 1.12345, 1.12345, 1.12345, 1.xxxxx, 38.455
01/11/2017 00:10.000, 1.12345, 1.12345, 1.12345, 1.12345, 1.xxxxx, 38.455
...

Is this possible and can you give any examples on how I can do this?

I would prefer to do this with a Jforex strategy but I am also happy to use Visual Jforex if it is possible to do so.

I have very limited coding skills and have not used Visual Jforex at all, so practical examples are prefered if possible.

Thank you for reading this and any help is much appreciated.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com