Daily purchase code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198390 quote
    LinkLink
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
4 years, 1 month ago.

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