trade only once per day.

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

    Hi guys, anyone can help me in coding the instructions of trading not more than once a day?

    I have a system operating on the 2 hours and I want it to trade once at most every day.

    Best Regards

    Francesco

    #46847 quote
    Despair
    Blocked
    Master

    Here you go:

    once tradecounter=0
    if intradaybarindex=0 then
      tradecounter=0
    endif
    if yourbuycondition and not tradecounter then
      buy 1 contract at market
      tradecounter=1
    endif
    Francesco78 thanked this post
    #46880 quote
    Nicolas
    Keymaster
    Master

    I made an answer to the same question yesterday in the french forum section: https://www.prorealcode.com/topic/1-position-par-jour/

    Francesco78 thanked this post
    #46913 quote
    Francesco78
    Participant
    Master

    thank you guys!

    #49463 quote
    Mansoor
    Participant
    Average

    Here is another way which I have not tested myself:

    Trading Options: Automatic Trading: Stop due to number of orders: Change the number to whatever you like. 🙂

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

trade only once per day.


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

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

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