one trade an hour on minute bar system
Forums › ProRealTime English forum › ProOrder support › one trade an hour on minute bar system
- This topic has 8 replies, 3 voices, and was last updated 1 year ago by JS.
-
-
03/30/2023 at 7:46 AM #212477
Hi, fellow traders.
I’ve made a breakout system on a minute bar chart.
However, I want at max one trade on each hour frame.
For example, when an order is executed at 16:05, and the stoploss/ gain is hit before 17:00, I don’t want the system to start a new trade ( if the variables are met) before 17:00.
On the other hand, if the stoploss is not hit before 17:00 it should stay open.
The reason I try to work with a minute bar system is because that way the ystem reacts faster on a break-out ( with hour bars, you have to wait until the next hour).
Is there a way to do this?
kind regards,
03/30/2023 at 9:02 AM #212506Hi,
Do you really want a maximum of 1 transaction per hour or do you want a maximum of 1 transaction every hour…
- Transaction closed at 16:15 then the next transaction can take place after 17:15… (no transaction for a whole hour)
- Transaction closed at 16:15 then the next transaction can take place after 17:00… (part of an hour no transaction)
03/30/2023 at 9:22 AM #212510Hi JS,
Thanks for the reply. I’m looking for a solution like your second option ( number 2).
Kind regards,
03/30/2023 at 10:13 AM #212519Hi,
Try this one…
One trade a hour1234567891011DefParam CumulateOrders=falseIf NOT OnMarket and (BarIndex - TradeIndex(1)) < CurrentMinute thenTradeOn = 0ElseTradeOn=1EndIfIf MyConditions and TradeOn=1 thenBuy 1 contract at Market...03/30/2023 at 10:28 AM #212520Thank you JS,
I’ll try the code this evening at home and I’ll keep you posted!
regards,
03/31/2023 at 7:21 AM #212587Unfortunate, it didn’t work out.
The system kept generating orders during the same hour ( after the stoploss or stopgain was hit).
regards,
03/31/2023 at 1:14 PM #21260904/01/2023 at 10:42 AM #21263804/01/2023 at 12:09 PM #212640 -
AuthorPosts
Find exclusive trading pro-tools on