Scalping strategy, what do you think about it?
Forums › ProRealTime English forum › ProOrder support › Scalping strategy, what do you think about it?
- This topic has 21 replies, 6 voices, and was last updated 7 years ago by Cameron.
-
-
06/30/2017 at 1:27 PM #39487
Hi all.
I have built a simply scalping strategy that works pretty well (have been live trading for around 6 months.) It works of the 1 and 5 minute charts and does really well on the GBPUSD, AUDUSD AND EURUSD (does work well on any yen pair). Now the strategy risks 20 pips to make a profit of 4 but is highly, highly consistent. That being said, I am a terrible coder so I thought I would throw it out to the community to discuss how we can best optimise the risk to reward ratio. I also think it would be great if anyone knows how to hedge a losing position at say 10 pips down then when another buy is triggered remove the hedge and add an additional position. I also need it to kill positions for me a couple of hours before NY closes on Friday and not open until 4 hours after the market opens in the Asian session on Monday. I am open to any thoughts at all to be honest so if you have one, please lets open some discussion.
Below is the indicator first, then the code. I would be really interested to hear what people think
Indicator
12345678REM Calculation of Bollinger oscillatordelta = CLOSE - BOLLINGERDOWNwidth = 4.7 * STDBBO = delta * 100 / widthRETURN BBO AS"Bollinger Band Oscillator"Script
123456789101112131415161718192021// Definition of code parametersDEFPARAM CumulateOrders = True // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = CALL bolcam(close)c1 = (indicator1 < 0)indicator2 = RSI[13](close)c2 = (indicator2 < 25)indicator3 = RSI[13](close)indicator4 = BollingerDown[20](RSI[13](close))c3 = (indicator3 < indicator4[1])indicator5 = RSI[13](close)indicator6 = BollingerDown[20](RSI[13](close))c4 = (indicator5 CROSSES OVER indicator6)IF c1 AND c2 AND c3 AND c4 THENBUY 1 CONTRACT AT MARKETENDIF// Stops and targetsSET STOP pLOSS 20SET TARGET pPROFIT 406/30/2017 at 2:29 PM #39502on eurusd 5 min and 1 min gives me loss with 100K bars
06/30/2017 at 2:42 PM #3950306/30/2017 at 2:51 PM #3950506/30/2017 at 3:40 PM #39511If the “bolcam” indicator wasn’t already in Francesco’s platform, he wouldn’t have tested successfully the strategy, so I presume he has imported it.
Did you include spread in your backtests Cameron? (haven’t test it myself, that’s why I’m asking you).
06/30/2017 at 6:23 PM #39520Exactly Nicolas, Cameron, would you mind to send a picture of your results? did you remember to click “backtest in tick by tick mode”?
Thanks!
06/30/2017 at 10:46 PM #39526Hi all. Yes I had a spread of 1 pip for eudusd (i will send results on Monday) across all pairs. Have a great weekend
1 user thanked author for this post.
07/02/2017 at 11:29 PM #3960307/02/2017 at 11:35 PM #3960707/03/2017 at 8:58 AM #3963607/03/2017 at 9:02 AM #39638hi Cameron, apologies I am travelling today, will try to have a look this evening
07/03/2017 at 9:07 AM #3964107/03/2017 at 4:51 PM #39711Hello Cameron, your results are ok, but they consider only a very short period of time, I think only 10k bars, for this reason they dont look statistically significant.
YOur strategy is interesting but you should I think make it work on 100k bars.
Thanks
Francesco
07/03/2017 at 5:09 PM #39712it gives me a 94% strike.
Sounds logic since you are averaging down if the price continue to fell. The stoploss is fine, but you need at least 4 trades to stay flat after only 1 loosing order. Francesco is right, you should test it on a longer period. Good luck 🙂
07/03/2017 at 11:33 PM #39739Thanks gentlemen. I appreciate it. A quick question, I use IG from Australia so have limited data to test with. May I ask, what do you think the best way to have a system tested is ? Are there people I can pay to do it or should I purchase a full license with PRT direct. I have been trading it live for around 6 months and it gives me similar results to my test but I would sleep easier with some longer and more robust testing.
Also, the strat doesn’t average down. It just does a straight 20-4. I was wondering if averaging down would improve it but I struggle with some of the code.
Thanks again 🙂
-
AuthorPosts
Find exclusive trading pro-tools on