Time settings

Viewing 9 posts - 1 through 9 (of 9 total)
  • #27849

    Hi there

    First of all I want to thank you for a very good site with plenty of useful information. I´m new to Prorealtime, so this is like heaven for me 🙂

     

    Now back to my problem. Is it possible to edit some settings so my daily Forex bars closes when New York session closes? Now it´s two hours off and I can´t find the correct settings for that.

    Optimal for me would be that Monday open is when Asian session first opens after weekend and the bar closes when NY closes. Next candle opens again after that and so on…

     

    #31379

    I’m pleased you are like in “heaven” 🙂

    Yes, you can change yourself your desired schedules for any instrument. Just right click on your chart and look for the ‘customised trading schedules’ link in the popup window. You’ll be able to change trading hours according to any GMT+X.

    #34324

    Apologies if this is not exactly related to original question but I contacted IG about how we should be setting times in PRT code so that if they run for a long period of time they would stay in sync (daylight savings) with those times listed on their site (Eg. for Indices – https://www.ig.com/uk/indices-spread-bet-product-details)

    There are the PRT Custom Trading Hours Schedules as Nicolas has mentioned and there are the IG listed times to take into consideration when trying to work this out…

    Is difficult to explain but for example the following code is for the DAX30 (Germany 30 DFB) and uses the exact same figures as those shown on IG’s website – PRT is set to ‘Use the local market time zone (UTC+1:00) Europe/London British Summer Time’ for Indices – Europe (I am in the UK)

    However it does not state on IG’s website whether these times are GMT (as the table does for some other indices) and without getting into too much complicated/mind boggling detail all I want to know is how do I set everything up in order to stay in sync with IG’s times if a strategy runs for months/years (here’s hoping eh!) when taking into account daylight saving…?

    IG were helpful/passed it onto PRT (IT Finance) but the reply was poor and the IG bloke obviously didn’t get his head around what I was asking/didn’t pass the message on well unfortunately so I am no closer to working this out (and quite possibly will just give up/move on/forget about it/think up less brain taxing alternatives!)

    Cheers

    Max

    #34336
    Not sure I fully understand your issue but what I do is to use local time always and then adjust in the code for the DST settings for each market, as for the US example below.
    if Targetmarket = 1 then
    //Wall Street
    if (Month = 10 and Day = 31) OR (Month = 11 and Day < 7) then
    // 2016 Daylight saving time, 1 hour difference UK & US
    FirstPositionAt =  131000
    EndofSessionTime = 201000
    NoNewPositionsAfter = 191000
    else
    FirstPositionAt =  141000
    EndofSessionTime = 211000
    NoNewPositionsAfter = 201000
    endif
    #34352

    I don’t think it is possible, I don’t know why, but it isn’t! Probably this is due to lack of rules, each broker opens and closes when he prefers!

    Unfortunately many think it is a matter of changing the time zone… NOPE, time zones are simply a tag, they don’t affect the BARs themselves. I think they don’t care much about this issue (probably it is not that important). I decided to nod and stop investigating, it’s time consuming and won’t do much!

    I enclose a screenshot of a 4-hout FXCM chart and a 4-hour IG/PRT chart, as you can see several candlesticks are pretty different, one may show a big bear candle and the other one a completely different picture. Of course the price is pretty much the same or slightly different, but the way the market gets to that price is not the same!

    Daily bars are not much different, still there are some differences.

     

    #34375

     

    Probably this is due to lack of rules, each broker opens and closes when he prefers!

    Right!

    Comparing 2 CFD dealers candlesticks should always result in the same fact: their candlesticks are rarely the same.

    Forex is not a centralized market and CFD brokers are making their “own prices”. That is also a reason why some automatic strategies behavior would differ from a broker to another.

    1 user thanked author for this post.
    #34407

    Excellent thank you @AutoStrategist! Yes that is along the lines of what I am talking about – I knew it would have to be coded in one way or another but just could not get my head around it and your example is very helpful and is giving me some motivation to at least attempt working it out 🙂


    @robertogozzi
    and @Nicolas – thanks for the input but am not sure I follow how it relates to what I was asking about as I am wanting to set variable spreads dependant on time of day – totally take on board what you’ve said though so thanks for that and the biggest take away for sure is ‘ I decided to nod and stop investigating, it’s time consuming and won’t do much!’

    Never a true’r word said and I have most definitely been there many many times and couldn’t agree more! 😉

    #34459

    I was answering Niklaz.

     

     

     

    #34463

    ooops apologies of course my mistake sorry about that 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login