Daily purchase code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198390 quote
    Link
    Participant
    Senior

    How would the code be to acquire a position on January 1 at a certain time and close on the same day at a certain time every year?

    #198393 quote
    robertogozzi
    Moderator
    Master

    Provided Jan. 1st markets are open:

    If OpenMonth = 1 and OpenDay = 1 then
       If Time = 100000 then
          Buy at market
       Elsif Time = 160000 then
          Sell ar market
       Endif
    Endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Daily purchase code


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Link @tony-manero Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/02/2022
Status: Active
Attachments: No files
Logo Logo
Loading...