Open a position on Monday

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27557 quote
    Henry
    Participant
    Average

    A request that was addressed to ProRealTime:

    I am wanting to build a system that just buys the open of the market on a Monday.

    Entry is at the open of the cash market on the ASX
    Target is 7 points and stop is 7 points

    Suggestion for an anwser:

    if dayofweek=5 then
    buy 1 share at market
    endif
    
    Set stop ploss 7
    Set target pprofit 7
    #27616 quote
    robertogozzi
    Moderator
    Master

    It’s clearly a mistake, due to rush I guess. To test if it’s Monday it should read “if dayofweek=1”.

    #27637 quote
    Nicolas
    Keymaster
    Master

    Thanks Roberto, but I think it’s right since test are made on Close and trade on next open. So if you want to buy at Monday open, you must do your test at Friday Close 🙂

    robertogozzi thanked this post
    #27646 quote
    ritzy43
    Participant
    New

    Thank you for the help on this.  I have no idea to do this programming but this is greatly appreciated.  If you wanted to stop to be a break of the opening 5m bar how would you do that?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Open a position on Monday


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Henry @henry Participant
Summary

This topic contains 3 replies,
has 4 voices, and was last updated by ritzy43
9 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/07/2017
Status: Active
Attachments: No files
Logo Logo
Loading...