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)
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… ?
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.
hi did you find a solution i’m looking for something similar
maximum one trade per day if gain or loss