trade only once per day.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #46846 quote
    Francesco78Francesco78
    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
    DespairDespair
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    Francesco78Francesco78
    Participant
    Master

    thank you guys!

    #49463 quote
    MansoorMansoor
    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.
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

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 MansoorMansoor
8 years, 11 months ago.

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