One day break after loss

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #181822 quote
    DerekODerekO
    Participant
    New

    How can i code the following condition in ProBuilder:

    => “After a loss, there should be at least 1 day break to reentry the market”

    So i need an additional condition to rest one day after a closed position with an loss. I use the “Daily Timeframe”.

    Thank You for anwers!

    #181832 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ProOrder is the correct forum, not ProBuilder. I moved it.

    Once TradeOFF = 0
    TradeOFF = TradeOFF - (TradeOFF = 1)
    If StrategyProfit < StrategyProfit[1] then
       TradeOFF = 1
    Endif
    If MyLongConditions and TradeOFF = 0 then
       Buy at Market
    Endif

    Use TradeOFF as an additional condition to enter a trade.

    DerekO thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

One day break after loss


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
DerekO @dereko Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/18/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...