How to limit the number of intraday trades ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63317 quote
    mombasamombasa
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    mombasamombasa
    Participant
    New

    Thank you Roberto…

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

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

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