One order each day?

Forums ProRealTime English forum ProOrder support One order each day?

Viewing 12 posts - 1 through 12 (of 12 total)
  • #12358

    Hello!

    I have been trying to limit my system to only 1 order each day but I haven’t figured out how to do it.

    Can someone please help me or point me in the right direction?

     

    Best regards,

    Dvid

    #12361

    Clarify this:

    Is it , 1 order & 1 execution ? or, 1 trade (buy and sell order executed) ? or even,

    1 order & 1 non-execution ?

     

     

    #12362

    Sorry.

    I mean 1 entry/day, not necessarily exit the same day, that depends on the market.

    But, if exit the same day, then the system should not try to enter the market again.

    I guess what I am looking for is some sort of counter.

    If no entry today, then buy. If 1 entry today already, then no buy. I just don’t know how to put it into code.

    #12364

     

    What time frame are you coding it for ? Ill reply with the code

    #12365

    Presently I am looking at 15 minutes.

    Thank you! That would be great!

    #12387

    Try this as an example :

     

    #12388

    Thank you very much! That works like a charm! 🙂

    #12459

    Well, it worked in backtests, but PRT won’t let me start the system in automatic trading: strategy.request.program.parsing.error.

    I don’t know where the fault may be.

    #12511

    Exchanging TIME for CURRENTTIME worked instead:

    Rule1 = currenttime > 090000 and currenttime < 170000 and not onmarket[0]
    Rule1b = (barindex-tradeindex>=(4*15)) //4 x 15mins = 24hours

    if rule1 and rule1b and … then

    buy 1 contract at market

    endif

    #12512

    hi

    could you explain what rule 1b does or how it works?  Is it the number of bars since the last trade >= 60?

    thanks

    Chris

    #12517

    Hi Chris,

    Yes, I believe so.

    #12520

    Correction  it should be 4lots x 15mins x 24hours :

     

     

Viewing 12 posts - 1 through 12 (of 12 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login