ScalpMaster 10S
Forums › ProRealTime English forum › ProOrder support › ScalpMaster 10S
- This topic has 66 replies, 14 voices, and was last updated 5 years ago by
javi cano.
-
-
06/21/2020 at 11:07 PM #136714
Can someone please run this on 200k and share results?
Made this a 30s scalper instead of 10s.100k results look fine, but seemed a bit overfitted. Would like to see if 200k results comply.
DOW-30S
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130//-------------------------------------------------------------------------// Main code : ScalpMaster v3 -//-------------------------------------------------------------------------defparam cumulateorders= falsedefparam flatbefore= 070000defparam flatafter= 220000once longtrading=1once shorttrading=1TIMEFRAME(5 minutes, updateonclose)// Settingsema1= exponentialaverage[9](close)ema2= exponentialaverage[2](close)bullish = close>ema1 and close>ema2 and ema1>ema2ema1= exponentialaverage[9](close)ema2= exponentialaverage[2](close)bearish= close<ema1 and close<ema2 and ema1<ema2TIMEFRAME(1 minutes, updateonclose)// Settingsmac = MACDline[12,26,9](close)bullish1 = mac > 0bearish1 = mac < 0TIMEFRAME(30 seconds)// IndicatormyPivotSupportResistanceZones, myPivotSupportResistanceZones2 = CALL "Pivot Support/Resistance Zones"//if longtrading then// Longif close crosses under myPivotSupportResistanceZones or close crosses over myPivotSupportResistanceZones2 thenif bullish and bullish1 thenbuy 1 contract at marketendifendifendifif shorttrading then// Shortif close crosses under myPivotSupportResistanceZones or close crosses over myPivotSupportResistanceZones2 thenif bearish and bearish1 thensellshort 1 contract at marketendifendifendif// Stop LossSET STOP %LOSS 1.5trailingPercent = 0.40stepPercent = 0.014if onmarket thentrailingstart = tradeprice(1)*(trailingpercent/100) //trailing will start @trailingstart points profittrailingstep = tradeprice(1)*(stepPercent/100) //% step to move the stoplossendif//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstart THENnewSL = tradeprice(1)+trailingstepENDIF//next movesIF newSL>0 AND close-newSL>trailingstep THENnewSL = newSL+trailingstepENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstart THENnewSL = tradeprice(1)-trailingstepENDIF//next movesIF newSL>0 AND newSL-close>trailingstep THENnewSL = newSL-trailingstepENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPEXITSHORT AT newSL STOPENDIF//************************************************************************//-------------------------------------------------------------------------// Function : Pivot Support/Resistance Zones//-------------------------------------------------------------------------DEFPARAM CalculateOnLastBars = 1000PivotBAR = 3 //3 bars AFTER pivotLookBack = 4 //4 bars BEFORE pivotBarLookBack = PivotBAR + 1IF low[PivotBAR] < lowest[LookBack](low)[BarLookBack] THENIF low[PivotBAR] = lowest[BarLookBack](low) THENMySupport = BarIndex - PivotBARSupportPrice = low[PivotBAR]ENDIFENDIFIF high[PivotBAR] > highest[LookBack](high)[BarLookBack] THENIF high[PivotBAR] = highest[BarLookBack](high) THENMyResistance = BarIndex - PivotBARResistancePrice = high[PivotBAR]//high[BarIndex - MyResistance]ENDIFENDIFDRAWSEGMENT(MyResistance,ResistancePrice,BarIndex,ResistancePrice) COLOURED(255,0,0,255)DRAWSEGMENT(MySupport,SupportPrice,BarIndex,SupportPrice) COLOURED(0,128,0,255)RETURN SupportPrice, ResistancePriceAny improvements are welcome.
06/22/2020 at 3:21 PM #13678606/22/2020 at 6:05 PM #13681307/16/2020 at 4:00 PM #139434hello everyone, I tested this strategy for a week on wall street cash ($ 2)(1sec) and I am in profit of around $ 700
here the version of the code that I tested
1sec123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475//-------------------------------------------------------------------------// Codice principale : 1secondo//-------------------------------------------------------------------------//-------------------------------------------------------------------------// Code principal : CANDLE//-------------------------------------------------------------------------Defparam cumulateorders = falsen =1timeframe(15 minute,updateonclose)c160m = open > open[1] and close > close[1] and close > opentimeframe(1 minute,updateonclose)c11m = open > open[1] and close > close[1]c21m = abs(close-open) >= 17c31m = abs(close[1]-open[1])c41m = c31m > c21mtimeframe(default)c1def = open > open[1] and close > close[1]c2def = abs(close-open) >= 1IF not longonmarket and c1def and c11m and c21m and c41m and c2def and c1def and c160m thenBUY N contracts at marketset stop ploss 300ENDIF//if longonmarket and close crosses under st then//sell at market//endif//************************************************************************//trailing stop functiontrailingstart = 19 //trailing will start @trailinstart points profittrailingstep = 7 //trailing step to move the "stoploss"//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstart*pipsize THENnewSL = tradeprice(1)+trailingstep*pipsizeENDIF//next movesIF newSL>0 AND close-newSL>=trailingstep*pipsize THENnewSL = newSL+trailingstep*pipsizeENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstart*pipsize THENnewSL = tradeprice(1)-trailingstep*pipsizeENDIF//next movesIF newSL>0 AND newSL-close>=trailingstep*pipsize THENnewSL = newSL-trailingstep*pipsizeENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPEXITSHORT AT newSL STOPENDIF//***thanks
Alex
1 user thanked author for this post.
07/19/2020 at 6:40 PM #139627I applied that strategy on the futures mini dow 1s
since it’s possible to test also before a preset date, you can accumulate results.
no spread, but used a fixed commision p/trade.
tested 1s from 18 march to 17 july
1 user thanked author for this post.
07/19/2020 at 6:52 PM #13962907/19/2020 at 7:48 PM #13963407/19/2020 at 8:23 PM #139637It’s in reply to the strategy alex posted above. Sorry, didn’t read the topic back. Actually it’s a strategy of makside isn’t it?
Anyway, it’ wasn’t really about the strategy, more about the ability to have more trades on a short timeframe with futures.
it’s indeed a v11 feature. I had contact with prt with the problem with limited data and they suggested to have a look at futures with v11 & interactive broker. They explained not only is it possible to have much more units, but you have that amount from any moment in time more or less which makes it better for scalping & backtesting.
07/20/2020 at 11:55 AM #139675Hi, I’m new to robots, sorry if my question is stupid. Reviewing your backtest is sometimes tested with € 2,000 other times with € 10,000. This why is it? What does it affect when activating it in real? if i think about activating it in real, how many contracts do i have to write for activation?
07/20/2020 at 12:03 PM #13967608/11/2020 at 1:13 PM #141386Thank you Francesco
I tweaked the strategy to run on a 2 min time frame, taking signals from 10mins in row 11, and the key item of interest is the very high % of winning trades.
I’m testing on a spread betting account, so using an average spread of 2. I’m working to have a filter from a higher time frame. Will keep you all posted.
Thanks,
S
08/11/2020 at 2:25 PM #14139608/11/2020 at 2:43 PM #141401Maybe only since 23 March 20 as the Market took a big change in price action?
I am adopting a similar logic myself, bonus is … loads quicker on backtest! 🙂
Providing System does well in at least a 1 week to 1 month OOS period then it seems to be working … optimise again after the OOS period etc.
I know you purists won’t agree, but I like to be a bit rogue! 🙂
08/11/2020 at 2:44 PM #141402Maybe only since 23 March 20 as the Market took a big change in price action?
I am adopting a similar logic myself, bonus is … loads quicker on backtest! 🙂
Providing System does well in at least a 1 week to 1 month OOS period then it seems to be working … optimise again after the OOS period etc.
I know you purists won’t agree, but I like to be a bit rogue! 🙂
But if the market changes again while you have into live account your “quicker backtest system” you may regret it 🙂
08/11/2020 at 2:45 PM #141403The version I took from above is long only. A simple filter would stop trading during the market downturn. I understand the SL, and with tighter money management/small risk capital, giving positions to breathe can pay off in the longer run. Nice little strategy that I look forward to testing further.
-
AuthorPosts
Find exclusive trading pro-tools on