Candlestick Scalper 1s discussion
Forums › ProRealTime English forum › ProOrder support › Candlestick Scalper 1s discussion
- This topic has 171 replies, 16 voices, and was last updated 2 years ago by CMM.
-
-
09/15/2020 at 9:19 AM #144300
did you try dynamic ATR trailing stop ? and ADX ? on my original strategy
I think it would be a way to increase the profit . On my side, i’m currently working on it and results are better.
Regarding the values of the supertrend, it’s always difficult to find the best values and more complicated to use it during trading range period..
09/15/2020 at 9:47 AM #144305I did not, however trailing stops can vary results also reducing gains in some programs and conditions, as we only have 6 months data at the mo its probably best to run one that seems to work, I am runnning it live as it has good risk management and return if successful and will quit if it fails at my predefined loss, but you could run them live side by side and compare, with halving the entry on each, or putting one on a demo.
When putting up ideas its always useful to use the “insert PRT Code” box to insert the code you are talking about, it makes it easier to copy and check. Sometimes you also need some randomness, so for instance I have a cable program that improves with the longs set to a positive stop, and shorts to a reduced stop after 60 pips, making both positive stops decreases profits no matter how far you backtest it. So you can tweak something but if it does what it states on the tin then sometimes just go with whats working.
Slap up the code here I’ll backtest it to 6 or 7 months, try it alongside on the demo probably as well. 1 minute code only good for backtesting, I’ve found anything below 1 minute does not give reliable results when backtested and is for very limited periods which doesnt give a balanced view of how programs react across the market conditions over time.
You can use time codes to limit trading during expected slow periods, however can’t predict all conditions of course, that’s why we employ risk management.
Copy the code in and I’ll see how it looks on backtest…
09/15/2020 at 10:05 AM #144311“When putting up ideas its always useful to use the “insert PRT Code”…. I know that..
it was just a question. My work is on the way and the PRT code isn’t finished.
Same point of view, i no longer work on units smaller than M1..
09/17/2020 at 8:22 PM #14458509/17/2020 at 8:27 PM #144587What did you change then?
09/17/2020 at 8:36 PM #14458909/17/2020 at 8:51 PM #144590Look forward to the code then..
09/18/2020 at 3:33 PM #144681Is it possible to poste the itf-file?
09/23/2020 at 7:58 AM #145030So this is the monthly feedback of forward testing. Pretty much all others except the one minute not good at all, the code below for 1 minute ran on defailt of 1s doing well.
The original code below is doing the best, with 15 mins and 1 mins timeframes ran on a default timeframe of 1 second and generally its saoring above all the others with one month data exactly. I will post the results below which is £1 per pip £300 stoploss.. The live tested one has only partial data as was put up late after some modification so doesnt have a months data yet but remains positive.
ran on 1second123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475//-------------------------------------------------------------------------// Main code : Makside DJI S1//-------------------------------------------------------------------------//-------------------------------------------------------------------------// 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 STOPENDIF5 users thanked author for this post.
09/24/2020 at 7:41 PM #14527309/24/2020 at 8:28 PM #14527509/28/2020 at 10:37 AM #14564709/28/2020 at 10:58 AM #14564909/28/2020 at 11:23 AM #14565410/08/2020 at 7:19 PM #146787 -
AuthorPosts
Find exclusive trading pro-tools on