Sistema trading Mini SP en graficos de 5 minutos

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #66770 quote
    RafaelN
    Moderator
    Senior

    A continuación una solicitud que ha sido enviada a ProRealTime:

    Utilizo medias simples de (4) periodos y de (90) periodos. Objetivos diarios : beneficio + 5 puntos perdidas – 5 puntos o minimizar perdidas con cambio de posición.

    Entro LARGO cuando precio toca media de (90) por encima y recojo 5 puntos de beneficio si rebota. Lo mismo si entro CORTO o sea VENDO cuando precio toca media de (90) por debajo y recojo beneficio si baja 5 puntos.

    Colocamos STOP LOSS de 5 puntos.
    Si no saltára el STOP LOSS , cuando la media de (4) sesiones corte la media de (90) cambiamos el orden de la posición cuando el precio toque la media de (4) y seguimos hasta recoger beneficio de 5 puntos y cerramos posición. Si no conseguimos recoger 5 puntos seguiremos cambiando de posicíon siempre que la media de (4) corte la de (90) y mientras no haya un total de 5 puntos de perdidas total diario.

    Y una proposición de respuesta:

    MM4=Average[4](close)
    MM90=Average[90](close)
    nbpoint=5
    
    if intradaybarindex=0 then
    yesterdaygain=strategyprofit
    trading=1
    endif
    
    if abs(strategyprofit-yesterdaygain) >= nbpoint*pointvalue then
    trading=0
    endif
    
    
    c1= close crosses over MM90
    if not longonmarket and trading and c1 then
    buy at market
    endif
    
    
    c2=close crosses under MM90
    if not shortonmarket and trading and c2  then
    sellshort at market
    endif
    
    c3=MM4 crosses under MM90 and (close crosses over MM90 or close crosses under MM4)
    if longonmarket and trading and c3 then
    sellshort at market
    endif
    
    c4=MM4 crosses over MM90 and (close crosses over MM90 or close crosses under MM4)
    if shortonmarket and trading and c4 then
    buy at market
    endif
    
    set stop ploss 5
    set target pprofit 5
    Nicolas thanked this post
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Sistema trading Mini SP en graficos de 5 minutos


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
RafaelN @rafaeln Moderator
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 03/30/2018
Status: Active
Attachments: No files
Logo Logo
Loading...