Updating Candle/Bar of the session

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Updating Candle/Bar of the session

Postby 030985 » Fri Jan 11, 2019 11:02 am

Hello and Happy New Year to FXCodeBase team :)

Sorry for the vague title as I am not sure how to call it.

The idea is to have candles/bars representing the whole session and updating every minutes (or every 5 minutes, or every 15 minutes, etc...or every tick )
First we would be able to choose a StartTime and a EndTime, which will specify the time window of the "session" for every day on chart history.
Let's take an example with StartTime being 10:00 and EndTime being 16:00.

Then let's say we look at a 1 minute chart :
if it is between 10:00 and 16:00, the indicator will create a new candle/bar every minute, starting from 10:00, with the CLOSE of the candle being the same as CLOSE price on the 1 minute chart above, but with OPEN of the candle being always the same, that is to say the OPEN price of the candle/bar at 10:00. And as a consequence the High/Low of the candle would be calculated based on the Highest and Lowest Price observed between 10:00 and now.
If it is outside the time window (in our example after 16:00 and before 10:00) nothing happens.

If we look at a 5 minute chart, the logic would be the same except the new candles would be created every 5 minutes, etc...
That would be great to have a TICK version also to apply to TICK charts.

- It would be nice to be able to see the OPEN, HIGH, LOW, CLOSE price in the data window when we click on the chart, and so being able to have the datas of the created candles if we export the chart to Excel. And as a consequence being able to apply indicators on it too.
- Also it would be nice to see the candles for every session in the history and not only the last one.

Thank you always for your great work, and I hope the description is clear enough. Thank you very much. :)

030985
030985
 
Posts: 56
Joined: Sun Apr 01, 2012 12:04 pm

Re: Updating Candle/Bar of the session

Postby Apprentice » Sun Jan 13, 2019 7:45 am

So, we will only draw candles between StartTime and EndTime?
Your request is added to the development list under Id Number 4419
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Updating Candle/Bar of the session

Postby 030985 » Sun Jan 13, 2019 9:40 am

Apprentice wrote:So, we will only draw candles between StartTime and EndTime?
Your request is added to the development list under Id Number 4419


Yes, only between chosen StartTime and Endtime.
Thank you very much.

030985
030985
 
Posts: 56
Joined: Sun Apr 01, 2012 12:04 pm

Re: Updating Candle/Bar of the session

Postby Apprentice » Thu Jan 17, 2019 5:10 am

Something like this?
CandleOfSession.lua
(4.18 KiB) Downloaded 321 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Updating Candle/Bar of the session

Postby 030985 » Sat Jan 19, 2019 2:19 am

Yes, it seems working as intended so far !
As Always, thank you very much for taking the request into consideration quickly. :)

030985
030985
 
Posts: 56
Joined: Sun Apr 01, 2012 12:04 pm


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 16 guests