How to limit the number of intraday trades ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63317 quote
    mombasa
    Participant
    New

    Hi everyone,

    I would like to insert a command line in my system to limit the number of intraday trades to 2.

    Please advise.

    Thank you in advance…

    #63320 quote
    robertogozzi
    Moderator
    Master

    This should do:

    ONCE TradeCount = 0
    IF IntraDayBarIndex = 0 THEN
       TradeCount = 0
    ENDIF
    .
    .
    IF your_conditions AND TradeCount < 2 THEN
       BUY ....
       TradeCount = TradeCount + 1
    ENDIF
    mombasa thanked this post
    #64374 quote
    mombasa
    Participant
    New

    Thank you Roberto…

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

How to limit the number of intraday trades ?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
mombasa @mombasa Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by mombasa
8 years ago.

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