Last Minute Bar strategy (DAX,FTSE,DOW)

Last Minute Bar strategy (DAX,FTSE,DOW)

I have an strategy that I usually trade manually, the following is the code for its automatisation.  I tested in 100K bar with no WF, I do not use WF because this scenario happens very seldom. Since now I will activated for trading live.

Here is the description for short entries (long entries are opposite):

  • The markets is overbought at 17:29 (european last minute market). I define overbought market when the market is moving with a very strong trend: one moving average has been above another one for a long period of time without crossing each other
  • Many traders are willing to close positions in the last minutes for not let open positions overnight
  • We short entry in the last minute.

I know that this strategy is catching a knife that is falling but very reliable somehow.

These are the settings for DAX, FTSE and DOW JONES:

For DAX:

  • P1=5 //period for the fist moving average. From 3 to 15
  • P2=33 //period for the second moving average. From 20 to 30
  • Pi=70  // numbers of periods without crossing the moving average
  • maxrisk0=12 //pips per trade to risk
  • Kp=3 // risk-reward  ratio from 1 to 3
  • Kt=0 // extra time for closing positions. From 0 to 3

For FTSE:

  • P1=2 //period for the fist moving average. From 3 to 15
  • P2=25 //period for the second moving average. From 20 to 30
  • Pi=60  // numbers of periods without crossing the moving average
  • maxrisk0=7 //pips per trade to risk
  • Kp=3 // risk-reward  ratio from 1 to 3
  • Kt=0 // extra time for closing positions. From 0 to 3

For Dow Jones (another time):

  • P1=8 //period for the fist moving average. From 3 to 15
  • P2=17 //period for the second moving average. From 20 to 30
  • Pi=40  // numbers of periods without crossing the moving average
  • maxrisk0=12 //pips per trade to risk
  • Kp=3 // risk-reward  ratio from 1 to 3
  • Kt=0 // extra time for closing positions. From 0 to 3

Hope you like it and improved.  Since now I will activate it for trading live.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Gianluca • 03/09/2018 #

    Hi Leo, thank you for sharing yuor TS, wich TF we have to use?

    • Leo • 03/09/2018 #

      I just optimise in one minute frame. But let me know if this concept works in other time frames but be sure to set time for the last candle in open markets.
      Thanks in advance.

  2. lumarino • 03/09/2018 #

    How has the results of applying this strategy been live? Thank you for your feedback and possible improvements to your initial strategy. Thank you

    • Leo • 03/09/2018 #

      One win and one lost. So a tie. I do not have further improvements.
      Cheers

  3. lumarino • 03/09/2018 #

    No penultimo minuto do Dow (20:58h) a simulação apresenta melhores resultados que no ultimo minuto (20:59h) 😉

  4. lumarino • 03/09/2018 #

    Hello Leo. Good evening. Being a programming apprentice and in the PRT I would appreciate a more detailed explanation of your code. Global and what specifically about b1 = lowest [Pi] (b0) what does (b0) in this case? and that part of the code (Barindex-TRADEINDEX)> 7 + Kt and (close-TRADEPRICE) / pipsize> 0.5 * stoplosslong and the evolution of those parts of the code? Thank you

  5. Leo • 03/09/2018 #

    Hi Luminario,
    b0 is a condition that the curve SMA1 is below SMA2. As long as this condition is met, then b0 is equal 1.
    b1 means that the minimum value for b0 is equal 1 it means , b0 neves was cero for a period of time Pi. That the condition for trade i.e. The curve SMA1 was below SMA2 during a period of time Pi. For me that’s oversold just before markets are closing and it is time for buy.
    I always notice that this quick rebound do not last so much therefore I add a condition that if ( Barindex- tradeindex) is more than 7 minutes and something Kt, and trading is already wining half of the stoploss I add, better to close the trade.
    Hope you get the meaning of the code. Than write us, we are eager to reply you

  6. nwesterhuijs • 03/09/2018 #

    Last statements for closure seem incorrect in my opinion:
    – “IF (Barindex-TRADEINDEX)>11+Kt and (close-TRADEPRICE)/pipsize 11+Kt THEN”
    – “IF (Barindex-TRADEINDEX)>11+Kt and (TRADEPRICE-close)/pipsize 11+Kt”

    You want the trade to close after 11 minutes whether in profit or in loss. Currently after 11 minutes if you are in profit it will wait until it is in loss before it closes the trade. This does imply your trade needs to go from negative to positive between the 9th and 11 minute after the trade is entered, and the chance of this happening is limited, but possible. Worst even if that happens and the trade continues beyond 18:00 after which the trade is controlled by SL and TP.

    • Leo • 03/09/2018 #

      This is a 1 min strategy where the markets has been very oversell / overbought and this code opens a position in opposite direction trying to catch the carry trade from all intraday trades who closes position at the very end of the markets close, if after 11 minutes I am losing better I close the trade because it means the future markets will still pushing the markets in his previous trend.
      You can always modify the strategy for better results.
      Cheers

  7. bertrandpinoy • 03/09/2018 #

    hi Leo, are you still using thoses strategy right now?

  8. avatar
    crazytrader • 03/09/2018 #

    Any improvements of this?

  9. princedon184 • 311 days ago #

    hi my name is prince i need help

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+3 more likes

Related users ' posts
idunnomuch IS this working in the latest version of prorealtime? I get the indicator, but not over my c...
bernardmorel egalement apparait en dessous du graphique mais vide
bernardmorel Bonjour est t il possible de remettre en ligne the strat car il y a une indication qui d...
FernetTrader think i found a solution!
monochrome Thanks for the indicator. Very interesting!
monochrome Can you please share how you made it work? I cant seem to make it work in a strategy
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
Zigo
4 years ago
Zex-Indicator
Zex-Indicator
6
Indicators
bertrandpinoy Hello Zigo can you turn into an automatic strategy?
eckaw Hey @Zigo thanks for this indicator. May I ask what the multiplier 1.682 is derived from? I ...
Zigo Hello, eckaw, its not so important I had meant 1.618 and not 1.682. It has nothing to do wit...
jimkn0pf Christopher, wie saehe denn die Formel ohne Kontrollkerze (3. Kerze) aus?
rama what is the buy condition or sell condition for this can you suggest a code k1=1 buy and k1...
rama I would like to know at point 1 an alert or binary indicator so that I can place order
maxlys Bonjour Nicolas, merci pour ce code qui a l'air intéressant. Comment ajouter dans le code l'...
Marius Zammit Still learning and very new to all this. Can this indicator be turned into an automated trad...
Nicolas Yes sure, please create a dedicated post in the automated trading forum.
leederbyshire Hi is it possible to replace the dots with red/green vertical lines? Thank you.
darbes Hi How does it go on live ? JC
antonio73 Balmora74, io vedo che funziona anche su timeframe ad 1 minuto con piccole ottimizzazioni, t...
Juananantoniorodriguez hola buenas, a este sistema automático, Cómo se le podría poner un stoploss de beneficio sim...
arnaudat Merci nicolas, j'ai déjà pris cette version et en plus je suis sur les futures. Par contre d...
ullle73 hi nicolas, when im making a strategy out of this i get the error "PRC_VWAP z-score" called ...
Nicolas Please open a new topic in the ProOrder forum section and post the code there in order to ch...
Bard Problems with Safari latest s/ware and this site and links and adding code. Let me add the...
grimweasel47 Ok thanks Nicolas - could this be adapted to take into account MFI and then have price, volu...
Nicolas I don't understand what you mean exactly, would be better to open a topic about this idea wi...
Nicolas Yes, that's how it goes when using loops..
JosephFelix Hi, Could I please have help with adding these indicators 'on price'? Every indicator that I...
Nicolas Just add it on price by clicking the wrench on the left upper side of the price chart.
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
s00071609 Is it possible to have fibo numbers like 1, 2, 3, 5,8 sequence by modifying the calculation?
Nicolas sorry i dont get it. you want to plot the next level at current price + ratio?
s00071609 I meant not plotting 4, 6 and 7. This question about having 1,3,5,8 sequence was meant to be...
YvesRobert Merci beaucoup Nicolas. Existe t'il un petit programme qui permet de tracer sur la graphe en...
Nicolas Oui il y a celui ci: https://market.prorealcode.com/product/prt-renko/?lang=fr
YvesRobert Bonjour Nicolas, j'ai une question technique à te poser. Je visualise souvent le cours en RE...
ALE
7 years ago
settival CIAO ALE CREDO DI AVER SETTATO PER BENINO LO SCALPING INDICATOR MA NON VISUALIZZO I SEGNALI ...
graff.laetitia Hello, I'm sorry to bother you, I'm new to trading, I managed to download the indicator but ...
Alby118 i can get it to work? dax 1 min. upload indicator on the4 chart. thank you
GraHal Is this the Discussion Topic you need @Gregg https://www.prorealcode.com/topic/scalping-i...
bertrandpinoy bonjour Nicolas y a t il une possibilité de signal sonore dès qu une vente ou un achat serai...
Nicolas Oui cela nécessitera une adaptation du code cependant, merci de formuler une demande sur le ...
Dadoo Incredible workLeo. Thankyou to share you time and knowledge
tommygtb what does the criteria mean in the box on the screen is it the time frame the screener sear...
Saberi2023 Hello dear Can you please write it also in java script?
Nicolas
7 years ago
swapping Bonjour Nicolas, comment doit-on modifier le code (ou ajouter la variable "style") pour que ...
Nicolas Il faut changer la dernière ligne du code par : return ibuf108 style(line,2) as "Vostro", ...
swapping Merci beaucoup Nicolas, c'est mieux ainsi ...
Steven Bahia Hi Nicolas - great indicator - is there a way to place a alert when the Oscillator crosses ...
Nicolas Alerts can't be programmed, you have to set them yourself with the Alert tool of the platfor...
Steven Bahia just to add to this would there be a way to establish a entry price from the Oscillator

Top