STOP TRADING AUTOMATICO CON 3 PÉRDIDAS CONSECUTIVAS

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #69306 quote
    SportacusSportacus
    Participant
    New

    Buenas,

    Alguien puede decirme cómo parar un sistema de trading automático intradía con 3 pérdidas consecutivas hasta el día siguiente?

    Yo tengo lo siguiente pero no me funciona:

    Al inicio del código:

    IF Time=153500 THEN
    BadTrades=0
    ENDIF

    En el medio del código:

    IF condicionesentrada>0  THEN
    IF BadTrades<3 THEN
    BUY 3 CONTRACTS AT MARKET
    SET STOP pLOSS 25 pTRAILING 50
    ENDIF
    ENDIF

    Al final del código:

    IF POSITIONPERF(1)<0 THEN
    BadTrades=BadTrades+1
    ELSIF POSITIONPERF(1)>=0 THEN
    BadTrades=0
    ENDIF

    Alguien sabe cómo programar esta funcionalidad? Gracias.

    #69309 quote
    SportacusSportacus
    Participant
    New

    Perdonad, lo estoy utilizando con velas de 5M.

    Gracias.

    #69356 quote
    atlanteatlante
    Participant
    Senior

    Hola. me gustaria saber como no se pone una funcion para poner en cualquier indicador no el cruce o mayor que o igual o por encima sino una funcion que identifique los cambios de color y que ademas se pueda definir que colores son los que me dan alcistas y bajistas, eso seria perfecto.

    gracias de antemano atlante.

    xxx@xxx

    [moderator’s edit: no email por favor, gracias]

    #69374 quote
    NicolasNicolas
    Keymaster
    Legend

    foro incorrecto, el tema se movió al foro automático de negociación.

    #69889 quote
    TempusFugitTempusFugit
    Participant
    Veteran

     

    IF Time=153500 THEN
    BadTrades=0
    ENDIF

     

    En el medio del código:

    IF condicionesentrada>0 THEN
    IF BadTrades<3 THEN
    BUY 3 CONTRACTS AT MARKET
    SET STOP pLOSS 25 pTRAILING 50
    ENDIF
    ENDIF

     

    Al final del código:

    IF STRATEGYPROFIT-STRATEGYPROFIT[1]<0 THEN
    BadTrades=BadTrades+1
    ELSIF TRATEGYPROFIT-STRATEGYPROFIT[1]>0 THEN
    BadTrades=0
    ENDIF

     

    Intenta con esto

    Sportacus thanked this post
    #74999 quote
    SportacusSportacus
    Participant
    New

    GRACIAS TempusFugit!! Funciona bien. Saludos.

Viewing 6 posts - 1 through 6 (of 6 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

STOP TRADING AUTOMATICO CON 3 PÉRDIDAS CONSECUTIVAS


ProOrder: Trading Automático y Backtesting

New Reply
Author
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by SportacusSportacus
8 years, 2 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 04/27/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...