Topics
10 Oct 2021, 15:29
 765
 1
10 Oct 2021, 15:14
 1041
 6
08 Oct 2021, 09:10
 756
 2
05 Oct 2021, 21:56
 2025
 5
Replies

charltonadams38
25 Oct 2021, 13:32

RE: RE: RE:

firemyst said:

charltonadams38 said:

firemyst said:

Okay, I'll bite. Do you have an email address where I can contact you?

Hi, my email address is charltonadams38@gmail.com.

 

Sent you an email and haven't received a reply, so wanted to make sure you've received it?

Hey 

I got your email and tried to reply but my reply bounced. 

Any other email address I can use to mail you?

 

 


@charltonadams38

charltonadams38
22 Oct 2021, 08:26

RE:

firemyst said:

Okay, I'll bite. Do you have an email address where I can contact you?

Hi, my email address is charltonadams38@gmail.com.


@charltonadams38

charltonadams38
06 Oct 2021, 11:39 ( Updated at: 06 Oct 2021, 13:32 )

RE:

amusleh said:

Hi,

When a new bar opens all of its OHLC prices are same as its open price, but when new ticks are coming the high, low, and close will start to develop and change.

If you access the last bar OHLC values inside OnBar method it will be all same, because the OnBar method is called when a new bar opens and the new bar OHLC are all same.

Try this:

using cAlgo.API;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        protected override void OnTick()
        {
            Print("Open: {0} | High: {1} | Low: {2} | Close: {3}", Bars.OpenPrices.LastValue, Bars.HighPrices.LastValue, Bars.LowPrices.LastValue, Bars.ClosePrices.LastValue);
        }
    }
}

If you change the OnTick to OnBar you will see whenever a new bar opens the method will be called and all OHLC prices will be same.

Hi amusleh

First, thank you for your reply and valuable input.

Second, I would like to buy using onTick() will I be able to access the hourly data of a daily candle right before a new candle opens?

For example, I would like to get the High just before a new daily candle starts to ensure the dailyHigh is as accurate as possible.

I am new to programming trading bots and I've been reading through the documentation but there is so much to read through it is hard to find the information I am looking for, hence the reason I have been using OnBar().

Thank you


@charltonadams38

charltonadams38
06 Oct 2021, 11:39

RE:

Hi amusleh

First, thank you for your reply and valuable input.

Second, I would like to buy using onTick() will I be able to access the hourly data of a daily candle right before a new candle opens?

 

For example, I would like to get the High just before a new daily candle starts to ensure the currentHigh is as accurate as possible.

 

I am new to programming trading bots and I've been reading through the documentation but there is so much to read through it is hard to find the information I am looking for, hence the reason I have been using OnBar().

 

Thank you

 


@charltonadams38