Close on a specific day at a specific time

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #222524 quote
    phoentzs
    Participant
    Master

    Hello, how can I access a close intraday at a specific time on a specific day within a week, i.e. from Monday to Friday? As an example, I would have liked to know on Tuesday where the price was on Monday at 9:00 a.m. What would be the code for that?

    #222525 quote
    fifi743
    Participant
    Master

    like this

    signal=0
    if OpenDayOfWeek =1 and opentime=090000 then
    signal=1
    Prix=close
    endif
    
    return signal,prix
    #222526 quote
    phoentzs
    Participant
    Master

    That sounds good. I’ll try that.

    #222528 quote
    phoentzs
    Participant
    Master

    And if I want the price to be 1% lower from this price? Prix=close*0.99???

    #222529 quote
    fifi743
    Participant
    Master

    I’m not sure

    prix=close-(close/100)
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Close on a specific day at a specific time


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by fifi743
2 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/16/2023
Status: Active
Attachments: No files
Logo Logo
Loading...