Random entry level

Forums ProRealTime English forum ProOrder support Random entry level

Viewing 8 posts - 1 through 8 (of 8 total)
  • #202824

    Hi guys, i did this code that should go short at minimum of previous day and long at maximum prev day,

     

    Problem is that sometime the entry level is totally random not according with the code, like in the photo. Do you know why? Thanks

     

     

    #202826

    This is the photo

    #202830

    Firstly you should graph on the price chart what is the value of dlow(1), so you have an hint of what the code is using:

    Are you using custom trading hours? Because the OHLC constants returned by instruction such as Dlow are always using the official instrument timezone.

    #202832

    Thanks Nicholas, custom trading hours? I don’k know what it is so i think no im not using that, just left the default chart price but now i can understand the problem, the problem is on the Mondays. I’m on the Gold (Spot Gold mini 10 oz, hope this is the right chart for the standard gold quote) and i see that dlow(1) and dhigh(1) don’t take the lowest and the highest price of the previous Friday but something different. I think i can solve this but can you explain me why this happens? Gold quotations are by Monday 0.00 to Friday 22.30 right ? So what’s there that changes the variable of dlow(1) and dhigh(1) ??

    #202833

    Since I use similar stuff I can say… On Mondays Dhigh and Dlow is taken over from Sunday trading. Sunday evening the forex and gold market is open from 10:00 p.m. and a Sunday candle is lit. A dhigh(1), which is used on Monday, then refers to this candle.

    #202834

    good evening, does this code change anything

     

    #202850

    Really? So the gold market opens on Sunday at 10.00 pm like the Forex? that is strange cause on the gold’s chart it doesn’t show the Sunday candle, it jumps directly from Friday to Monday, in the Forex currencies it shows a candle in Sunday intstead.

    #202851

    thank you FIFI but don’t worry, i have already solved it in a simple way, changing the variable when it is Monday using something like this:

     

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

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