10s-Scalp-SP500 Does it work?
Forums › ProRealTime English forum › ProOrder support › 10s-Scalp-SP500 Does it work?
- This topic has 24 replies, 4 voices, and was last updated 1 year ago by robertogozzi.
-
-
07/01/2022 at 10:40 AM #196517
@Grahal
And everyone else dealing with this topic.
For a long time I tried to create a scalper in a matter of seconds with a lot of complex code and then eventually came to the conclusion…
Why not completely simple? A simple trade initiation and a simple trend seem to suffice. This code here seems to work in the M1 as well. What do the great masters say about this? Would something like this be tradable?
Opinions are welcome.Unfortunately, the Paste code function doesn’t work here:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123//================================================//SP500 Spread 0.4//Filter//Trail//maxSLDEFPARAM CUMULATEORDERS = falsedefparam preloadbars = 10000//Risk ManagementPositionSize=5MA1 = Average[x1,0](close)MA2 = Average[x2,0](close)MA3 = Average[x3,0](close)L1 = MA1 crosses under MA3L2 = MA1 crosses over MA3L3 = MA3 > MA3[1]S1 = MA2 crosses over MA3S2 = MA2 crosses under MA3S3 = MA3 < MA3[1]long = L1 and L3short = S1 and S3ExitL = L2ExitS = S2// trading windowONCE BuyTime = 150000 //080000ONCE SellTime = 210000// position managementIF Time >= BuyTime AND Time <= SellTime THENIf long Then //and myADXBuy PositionSize CONTRACTS AT MARKETENDIFIf short Then //and myADXsellshort PositionSize CONTRACTS AT MARKETENDIFendifSET STOP %LOSS hl //1SET TARGET %PROFIT hlif longonmarket and ExitL thensell at marketendifif shortonmarket and ExitS thenexitshort at marketendifif time = 220000 then //and dayofweek=5sell at marketexitshort at marketendif////////////////////////////////////////////TrailingStop in Punkten//************************************************************************//trailing stop functiontrailingstartL = start //LONG trailing will start @trailinstart points profit //30trailingstartS = start //SHORT trailing will start @trailinstart points profittrailingstepL = step //trailing step to move the "stoploss" //1trailingstepS = step //trailing step to move the "stoploss"Distance = 1 * PipSize //7//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstartL*pipsize THENnewSL = tradeprice(1)+trailingstepL*pipsizeENDIF//next movesIF newSL>0 AND close-newSL>=trailingstepL*pipsize THENnewSL = newSL+trailingstepL*pipsizeENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstartS*pipsize THENnewSL = tradeprice(1)-trailingstepS*pipsizeENDIF//next movesIF newSL>0 AND newSL-close>=trailingstepS*pipsize THENnewSL = newSL-trailingstepS*pipsizeENDIFENDIF//stop order to exit the positionsIF newSL>0 THENIF LongOnMarket THENIF (close - Distance) > newSL THENSELL AT newSL STOPELSIF (close + Distance) < newSL THENSELL AT newSL LIMITELSESELL AT MarketENDIFELSIF ShortOnMarket THENIF (close - Distance) > newSL THENEXITSHORT AT newSL LIMITELSIF (close + Distance) < newSL THENEXITSHORT AT newSL STOPELSEEXITSHORT AT MarketENDIFENDIFendif//************************************************************************1 user thanked author for this post.
07/01/2022 at 10:56 AM #19652007/01/2022 at 11:30 AM #196526Would something like this be tradable?
Looks like it well might, only sure way to find out is to Forward Test on Demo for a month?
Longs may give trouble when market turns back up? A couple of Longs are ‘going the wrong way’ for longer than I be comfortable with, example attached.
Thanks for sharing phoentzs; if I improve I’ll post on here.
07/01/2022 at 11:44 AM #1965281 month unchanged? I might have rather re-optimized every week since I only have 200000 bars. If you have 1 million bars… can you please post the result? Do you think it is advisable to add a longer MA as a filter? In my opinion, the system then becomes too slow.
07/01/2022 at 12:03 PM #19652907/01/2022 at 12:39 PM #196534The 1% was set more intuitively.
Let’s try something, and it starts on my profile! 😉
07/01/2022 at 1:02 PM #19653507/01/2022 at 1:14 PM #196536It looks like I have to pass on this one, but it is not clear to me why.
The below resembles what you showed in your first post. But I can’t find a way to show this curve other than using the $50 version which leads to 50 times more of everything. That is, device what you see for gain by 50 and it comes close to your results. But … and this is the thing … when I use the $1 contract then nothing resembles. This should mean that you use points etc. in there which relate to the contract size, also confirmed by your number of contracts (4) which don’t give a linear result when I make e.g. 1 of it. Less than one does not give a result at all, so I actually don’t understand what to do to get the same.
Something else GraHal already said : the drawdown is not right. But not really the drawdown – merely the loss in one trade (2nd attachment sorted on performance). Thus this fact alone makes the result coincidental, also testified by the (in itself coincidental) other results I received over different periods.
By means of the 3rd attachment (1M bars) I hope to show you how your result was about (haha) 100% over-optimised (see the June 23 mark). There too all values are 50x higher than I think what you used (an order is 750K against today’s EUR/USD).
Thus : Mwah. 🙂
1 user thanked author for this post.
07/01/2022 at 1:51 PM #196540Well, with simple means, this code is used to trade the market swings. Optimized for one week, of course. If the settings still work the next day or even a week later, that would be sufficient. Could you maybe try on SP500 or other indices? I believe Forex is subject to different laws. If only because the SL is given as a percentage.
07/01/2022 at 1:54 PM #19654107/01/2022 at 3:43 PM #196544Could you maybe try on SP500 or other indices?
That is what you looked at. 😉
I also tried Tech100 (Nasdaq) which was an accident. More profit but again a huge DD the last month.
Please notice that in my experience there is no way that another index works better on any random strategy (random is what is your strategy to me).What would you add to make it more robust?
Maybe I don’t feel qualified to “teach” anything here ? But *if* I had to say something, I would say that there is no base that I can see. And well, then there is also nothing to expand on or change. This is a bit of “high flying” (blahblah) of course but if the idea is not there, then what to do (all right, you pointed out the market swings, which I don’t see 🙁 ).
If a Stategy performs as poor in the past as I saw from this one, then usually there is nothing much to do about it. In this case one could attest that if the MA is made so long that hardly any trades occur, then those huge DD’s could me smoothed out (didn’t you see something along those lines yourself ?). But then the “scalping” would be less of that, right ?
Optimized for one week, of course. If the settings still work the next day or even a week later, that would be sufficient.
FWIW : That would not be my thinking. So it is difficult to discuss.
07/01/2022 at 3:58 PM #19654707/01/2022 at 5:14 PM #196559Haha, I scratched 4 versions of text because I all didn’t like what I had to say. But it would be something that is not depending on the shorter averages.
As I said before (longer ago), I am not a guy of “signals”. It is all more technical stuff. In this case (and again) make your MA’s such that 10 times less trades occur. From there “do things” to earn what you want. … But you wouldn’t be scalping …
And think like this (I think I told about that too, earlier on) :
Suppose that your better entries will bring hardly any profit. But make it 10K for the nice talk. Technical appliances (which is programming) would turn that into 15-20K, would I be behind the keyboard. Better trailing, better limit entries, better matching, etc. But what do I tell really with this ?
… That this important part allows for (for example) less trades or even less gain per trade, thus a theoretical less total gain, which I would earn back at the subjects in my previous sentence. Net it is better now because the more relaxed entry system will be inherently more robust (it is not stressing to meet very-market-depending conditions).And again I end with : you can do nothing with it. Still it is my answer because still it is how I “operate”. And just saying : would you feel like your idea is worth to expand on, or would I think that myself, then it would take me months (really !) to make something of it. Maybe it takes me months to finally ditch it.
Somehow many people think this is easy. Well, it is far from that. Now that should be useful data. 🙂07/01/2022 at 7:14 PM #196567how exactly?
You didn’t pick up on my cryptic hint? 🙂
07/01/2022 at 8:39 PM #196568It would of course be very easy, probably too easy, to find something at least remotely robust enough to make money using simple means in this time frame. Normally I also move in much larger time frames with my strategies. But the seconds range fascinates me. So I think, with a few indicators, something must be possible? After all, it also works in the H1. 😉 Apart from that, I still have no idea what exactly Peter means. A handful of strategies run with me as a portfolio in the 10s TF with quite good success. But, it’s all price action stuff… market open, breakout range, daily breakouts or even pattern trading (where the signal comes from H1 or higher). So all things where you expect some volume or momentum and the price is going at least a bit in the right direction… and that’s where the 10s time frame comes in… with a trail. Works… as long as the trail is set up well.
-
AuthorPosts
Find exclusive trading pro-tools on