High Frequency Micro Trading Strategy – AAPL
Forums › ProRealTime English forum › ProBuilder support › High Frequency Micro Trading Strategy – AAPL
- This topic has 7 replies, 3 voices, and was last updated 1 year ago by robertogozzi.
-
-
09/11/2023 at 11:20 AM #220713
Hi All, looking for a stepbystep / code for my First Strategy please..
Buy Signal: When a stock’s price increases by 0.01% over the last 1 minute and its volume is greater than the average over the last 1 minute, buy the stock.
Sell Signal: When a stock’s price decreases by 0.01% over the last 1 minute and its volume is greater than the average over the last 1 minute, sell the stock.
Safety Net: If the strategy goes 1.00% below its inception, freeze trading for 15 minutes.thanks all.
09/11/2023 at 11:40 AM #220715What TF will you be using?
09/11/2023 at 12:59 PM #220728Hi,
I’m looking to setup this same strategy over a few of the highest S&P stocks like AAPL.
Can you clarify if this answers your question around TF please?
Grazie mille
09/11/2023 at 1:53 PM #220738Some times the answers are too obvious, which is similar to how questions may not be understood.
The TimeFrame is about the bar length, and within the context of PRT coding, I would say you indicated that your TimeFrame is 1 minute. Hence :
If you don’t want to know anything at an interval of faster than 1 minute, the TF you want to use is 1 minute.09/11/2023 at 2:12 PM #220742Nice explanation, thank you.
Confirmed TF 1 minute 😉
09/11/2023 at 2:33 PM #220746There you go:
1234567Lcond = (close > (close[1] * 1.0001)) AND (Volume > Volume[1])Scond = (close < (close[1] * 0.9999)) AND (Volume > Volume[1])IF Lcond AND Not LongOnMarket THENBUY 1 Contract at MarketELSIF Scond AND Not ShortOnMarket THENSELLSHORT 1 Contract at MarketENDIFas there’s no 1-minute average in a 1-minute TF, I compared the current volume against the previous one.
09/11/2023 at 4:22 PM #220774Thank you Roberto,
As this is my first trade on PRT. Could you point me in the right direction on how to execute the code please?
Thanks again, really appreciated.
09/11/2023 at 5:12 PM #220783Follow the steps on the attached pics:
- Pic1: click the highlighted tab
- Pic2: click the tab labelled NEW, while in Backtesting & Automatic Trading
- Pic3: enable Creation by Programming, then ERASE all the lines tyou can see in the programming editor
- Pic4: paste the code I posted, fill the data you need, then start the probacktest.
the code will be temporarily saved, but to make sure it is definitely saved (on the ProRealTime servers), you will need to shut down the platform using the exit keys (any unexpected interruption will make your current modified code to be lost). To save it on your PC, you’ll have to export it.
In this forum, on the PRT website and Youtube’s ProRealTime channels you will find many videos to start operating the platform.
-
AuthorPosts