Hi everybody,
I have a favor to ask and hope someone can help with coding my hard stop strategy for a 1-minute setup.
I am looking for the hard stop coding that can do the following:
1. Look at the 1st bar of every hour (ex: 7 am bar, 8 am bar, etc), go LONG if the price is higher than the high of the 1st bar, or go SHORT if the price lower than the low of the 1st bar.
2. Hard stop will be set to 0.5% of the entry price for either LONG or SHORT, if triggered, trades will switch from LONG -> SHORT, or SHORT -> LONG
3. The trade will close out at the end of the hour (ex: 7:59 am, 8:59 am, etc) and the trade cycle continue from the next hour.
Any help will be greatly appreciated!
Thanks in advance!
Bryan
I have a favor to ask and hope someone can help with coding my hard stop strategy for a 1-minute setup.
I am looking for the hard stop coding that can do the following:
1. Look at the 1st bar of every hour (ex: 7 am bar, 8 am bar, etc), go LONG if the price is higher than the high of the 1st bar, or go SHORT if the price lower than the low of the 1st bar.
2. Hard stop will be set to 0.5% of the entry price for either LONG or SHORT, if triggered, trades will switch from LONG -> SHORT, or SHORT -> LONG
3. The trade will close out at the end of the hour (ex: 7:59 am, 8:59 am, etc) and the trade cycle continue from the next hour.
Any help will be greatly appreciated!
Thanks in advance!
Bryan