DAX 30 sec 5 trads/day
Forums › ProRealTime English forum › ProOrder support › DAX 30 sec 5 trads/day
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by
bullbear.
-
-
11/23/2019 at 12:53 PM #113469
Have, as you know, worked on an algo that has taken many trads / day.
Do not believe in an complicated code, then there will be fewer trads.
Here is a simple code that takes 5 trads / day with low DD.
I haven’t tested it with WF.
It’s probably a bit over op.
An idea anyway.
Spread=1
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465DEFPARAM CumulateOrders=falsedefparam flatbefore =090000defparam flatafter = 180000// Conditions to enter long positionsindicator1 = Average[20](close)indicator2 = Average[50](close)c1 = (indicator1 CROSSES OVER indicator2)indicator100 = closeindicator101 = Supertrend[5,4]c100 = indicator100 > indicator101IF c1 and c100 THENBUY 1 CONTRACT AT MARKETendif//************************************************************************// TSL trailing stop function//************************************************************************//************************************************************************//trailing stop functiontrailingstart = 17// 20trailing will start @trailinstart points profittrailingstep = 5// 5trailing 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 STOPENDIFset stop ploss 172 users thanked author for this post.
11/23/2019 at 1:05 PM #113472Love the principle … we think alike! 🙂
Love that staircase equity curve!
Will it make any money? Easy to find out … I will Forward Test on Demo!
I let you know if I make any improvements.
Thank You
1 user thanked author for this post.
11/24/2019 at 2:43 PM #11350211/24/2019 at 6:51 PM #113512I did a similar for short positions.
Uses the same trailing as for long positions with the same settings.
All in order not to over-optimize.
It doesn’t look very funny, but still it makes 136 € in 10 days.
Think it is next to impossible to manage to get an algo with such a short TF.
You probably have to optimize about it very often if you are going to make it work.
Will run it on demo for the week to com.
Who knows the two might complement each other?
You should probably not have too high hopes 🙂
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465DEFPARAM CumulateOrders=falsedefparam flatbefore =090000defparam flatafter = 180000// Conditions to enter long positionsindicator1 = Average[70](close)indicator2 = Average[80](close)c1 = (indicator1 CROSSES UNDER indicator2)indicator100 = closeindicator101 = Supertrend[4,11]c100 = indicator100 > indicator101IF c1 and c100 THENsellshort 1 CONTRACT AT MARKETendif//************************************************************************// TSL trailing stop function//************************************************************************//************************************************************************//trailing stop functiontrailingstart = 17// 20trailing will start @trailinstart points profittrailingstep = 5// 5trailing 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 STOPENDIFset stop ploss 171 user thanked author for this post.
11/24/2019 at 11:37 PM #11352311/25/2019 at 3:56 PM #11355511/25/2019 at 4:04 PM #113558Long
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465DEFPARAM CumulateOrders=falsedefparam flatbefore =090000defparam flatafter = 180000// Conditions to enter long positionsindicator1 = Average[10](close)indicator2 = Average[50](close)c1 = (indicator1 CROSSES OVER indicator2)indicator100 = closeindicator101 = Supertrend[7,1]c100 = indicator100 > indicator101IF c1 and c100 THENBUY 1 CONTRACT AT MARKETendif//************************************************************************// TSL trailing stop function//************************************************************************//************************************************************************//trailing stop functiontrailingstart = 19// 20trailing will start @trailinstart points profittrailingstep = 1// 5trailing 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 STOPENDIFset stop ploss 24Short
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768//-------------------------------------------------------------------------// Main code : MySystem(30)//-------------------------------------------------------------------------DEFPARAM CumulateOrders=falsedefparam flatbefore =090000defparam flatafter = 180000// Conditions to enter long positionsindicator1 = Average[70](close)indicator2 = Average[100](close)c1 = (indicator1 CROSSES UNDER indicator2)indicator100 = closeindicator101 = Supertrend[7,13]c100 = indicator100 > indicator101IF c1 and c100 THENsellshort 1 CONTRACT AT MARKETendif//************************************************************************// TSL trailing stop function//************************************************************************//************************************************************************//trailing stop functiontrailingstart = 20// 20trailing will start @trailinstart points profittrailingstep = 17// 5trailing 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 STOPENDIFset stop ploss 44 -
AuthorPosts
Find exclusive trading pro-tools on