Is there a way to tell a strategy to wait before opening a new trade after a loss? e.g. If a bet loses, I want my strategy to wait 10 minutes before considering entering a trade again (i.e. it should ignore any trade signals that might occur in that 10 minute period)
I’m just about to go out but you could try something like this ..this uses the bars as the time and looks to enter once the price has moved a certain distance from the first entry…
1
2
3
4
5
6
7
8
IFc1ANDNOTLongOnMarketTHEN
BUY2PERPOINTATMARKET
ENDIF
//let's add another order while price continue to move lower (more than 10 points) than the last order taken with a condition of 5 bars elapsed since then
You can use BARINDEX and TRADEINDEX like Big Hug said in his previous post. You can also make comparison between schedules if you store “time” in a variable, when you launch an order.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue