Max 1 trade if successful, 2 trades if first trade fails

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #157573 quote
    eckaw
    Participant
    Veteran

    Hi all

    How would one go about coding:

    – Make 1 trade, if it ends up in gains = no more trades that day (I’ve seen this snipped of code in the 69 moving average code)

    – if first trade fails then execute a second trade if the entry condition happens again.

    I would like to code a breakout strategy to trade only during market open and have a tight stop loss. If I get stopped out I’d like the strategy to have another go (most likely when it breaks out the other direction, if the first trade was a fake-out)

    GraHal thanked this post
    #157588 quote
    robertogozzi
    Moderator
    Master

    A What do you want price to break? A time range, say 8-10, or previous day’s High/Low, or last week’s, etc… ?

    #157598 quote
    eckaw
    Participant
    Veteran

    I’m currently working on Nicolas excellent Breakout of Range Trading Strategy: https://www.prorealcode.com/prorealtime-trading-strategies/breakout-range-ts/

    My idea is to launch it on different markets with 1 trade per day when it breaks through a previous x bar range, during market open only when there is extra volatility.

    #178669 quote
    nnrichard
    Participant
    New

    hi did you find a solution i’m looking for something similar

    maximum one trade per day if gain or loss

    #178671 quote
    nnrichard
    Participant
    New
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Max 1 trade if successful, 2 trades if first trade fails


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
eckaw @eckaw Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by nnrichard
4 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/12/2021
Status: Active
Attachments: No files
Logo Logo
Loading...