Swing Trading Script Idea
Forums › ProRealTime English forum › ProOrder support › Swing Trading Script Idea
- This topic has 7 replies, 3 voices, and was last updated 3 years ago by Dow Jones.
-
-
08/21/2020 at 4:06 PM #142224
Hello everyone,
I am new here. I have a script in mind, and wanted to check if this is possible with ProRealTime? I’d appreciate thoughts/feedbacks on this.
- Manually enter list of stocks
- Breakout – the price is breaks ATH on higher volume
- The volume is 150% > volume (50)
- Weekly EMA > 13
- Enter long
- On breakout buy 50% (stop buy order)
- If price goes up 1%, buy 25% (stop buy order)
- If price goes up 1% more, buy 25% more (stop buy order)
- If Price falls down below ATH then sell 100%
- Sell 1/3 if close of day breaches 8 day EMA for the second time within 3 days
- Sell 100% if below 21 day EMA
- If the price goes back up to 21 EMA next day then buy back 100% of stock again
- If the price goes down below 21 EMA then sell 100% again
I have zero scripting experience, and would appreciate expert feedback before I hire a freelancer/contractor to help script this.
Thanks,
Ammar.
08/21/2020 at 4:12 PM #14222508/21/2020 at 4:19 PM #142226The answer is NO, just because of your first requirement “Manually enter list of stocks“, which is not possible.
Whenever you run a strategy you have to manually choose only ONE instrument to trade. To change it you have to stop your strategy, then change instrument on your chart, then restart your strategy again.
Moreover, though you did not require to sell different percentages, ONLY 100% can be closed. Currently partial closing of positions is not supported by the broker (you still can do that while backtesting).
08/21/2020 at 5:00 PM #142230Dear Robert,
What if I apply the strategy to multiple instruments? At the start of the week, I identify twenty stocks that are close to breakout ATHs. I initiate the strategy for all 20 of them simultaneously.
Regarding partial closing, is that true for ALL brokers?
Apologies if questions are dumb — I am completely new to the concept of automated trading systems.
08/21/2020 at 5:11 PM #142234Autotrating is currently supported only by IG, so…. by ALL brokers!
Yes, you can have 20 copies oof the same strategy and run all of them from 20 different charts (or one chart, simply changing instrument name each time). You’ll have to do this each week.
08/21/2020 at 6:50 PM #14224208/21/2020 at 8:07 PM #142247Yes, all of them.
08/22/2020 at 7:28 AM #142260workaround for the partial closing?
Workaround probably is possible, that’s you need to have 2 strategies collated and apply on same instrument. Technically it is like 2 strategies with different exit conditions.
For example,
You have Stock A, Strategy 1 will manage 33 stocks, Strategy 2 will manage 67 stocks.
- Sell 1/3 if close of day breaches 8 day EMA for the second time within 3 days -> Strategy 1, sell it, Strategy 2, do nothing
- Sell 100% if below 21 day EMA -> Strategy 1, nothing to do, Strategy 2, sell it
From here, you can also see what is the requirement for Strategy 2 that manage the 67 stocks when Strategy 1 achieved the condition. Whether to stay on the same stop loss or move up the stop loss.
-
AuthorPosts
Find exclusive trading pro-tools on