creación sistema volumen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #203862 quote
    DECO2021DECO2021
    Participant
    New

    Hola.

    Alguien sabe programar este sistema??? :

    En cuanto aparezca una vela con un volumen exagerado con respecto a las anteriores ( en el ejemplo 200 contratos en el futuro del petróleo en 5 minutos ) a la apertura de la siguiente vela se entra largo o corto en función de hacia donde rompa, con stop en la vela de referencia del alto volumen y relación riesgo beneficio 2 a 1.

    El riesgo seria de un 2% de la cuenta en cada entrada. No acumulando ordenes abiertas al mismo tiempo. Empezando con 10.000e.

    Adjunto foto de muestra con el ejemplo.

    Muchas gracias de antemano.

    programar-sistema-volumen-en-backtesting-1.jpg programar-sistema-volumen-en-backtesting-1.jpg
    #204447 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ahi Esta:

    ONCE Capital = 10000                //10000 Euros
    ONCE Riesgo  = Capital / 100 * 2    //2%
    ONCE Minimo  = 0
    ONCE Maximo  = high * 3
    VolumenMedio = average[100,0](volume)
    IF volume > (VolumenMedio * 2) AND Not OnMarket THEN
       Minimo = low
       Maximo = high
    ENDIF
    IF Not OnMarket THEN
       IF close > Maximo THEN
          BUY 1 Contract at Market
          SL = min((close - Minimo) / PipSize * PipValue,Riesgo)
          TP = SL * 2
          SET STOP   $LOSS   SL
          SET TARGET $PROFIT TP
          Minimo  = 0
          Maximo  = high * 3
       ELSIF close < Minimo THEN
          SELLSHORT 1 Contract at Market
          SL = min((Maximo - close) / PipSize * PipValue,Riesgo)
          TP = SL * 2
          SET STOP   $LOSS   SL
          SET TARGET $PROFIT TP
          Minimo  = 0
          Maximo  = high * 3
       ENDIF
    ENDIF
    //graph SL
    //graph TP
    //graph (close - Minimo)  / PipSize * PipValue AS "Long SL"
    //graph  (Maximo - close) / PipSize * PipValue AS "Short SL"
    //graphonprice Maximo coloured("Green")
    //graphonprice Minimo coloured("Red")
    DECO2021 and rrmp12 thanked this post
    #204480 quote
    DECO2021DECO2021
    Participant
    New

    Muchísimas gracias.

    Me ha sido de gran ayuda. Yo solo no podría haberlo hecho.

    Saludos.

    rrmp12 thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

creación sistema volumen


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
DECO2021 @deco2021 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by DECO2021DECO2021
3 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 11/09/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...