only 2 limits orders per day

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #211847 quote
    ashehzi
    Participant
    Average

    Hi guys,

    I am trying to create a program which leaves only 2 limit orders per day i.e. 1 long and 1 short. If long is triggered, the other gets cancelled and vice versa. But the question is how can I run it only once a day? If I run the program on 1h timeframe, it gets re-executed another hour if NOT ONMARKET. I just don’t want another execution that day. Is it possible via some function like tradeprice or something? Your help is appreciated.

    Regards

    #211850 quote
    phoentzs
    Participant
    Master

    Here is an example code using the function.

    ashehzi and robertogozzi thanked this post
    #211868 quote
    ashehzi
    Participant
    Average

    Thanks, that’s helpful.

Viewing 3 posts - 1 through 3 (of 3 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

only 2 limits orders per day


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ashehzi @ashehzi Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by ashehzi
3 years, 5 months ago.

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