DETENER SISTEMA SI FALLA FALLA UNA OPERACIÓN EN EL DIA

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #119789 quote
    yosemite
    Participant
    New

    Hola Buenas tardes, estoy tratando de detener mi sistema de trading en el caso que falle una operación en el día,  mientras  que si acierta pueda seguir continuando.
    Esto es lo mas cercano que he conseguido. Muchísimas gracias por la ayuda

    
    
    //RESETEAR OPERACIONES AL PRINCIPIO DEL DIA
    IF INTRADAYBARINDEX = 0 THEN
    NOMASOPERACIONES = 0
    ENDIF
    // Condiciones para ORDEN de entrada de posiciones largas
    IF NOT LongOnMarket AND COMPRALARGO AND NOMASOPERACIONES = 0 THEN
    BUY 1 CONTRACTS AT MARKET
    set stop ploss 15
    //si la posicion anterior es perdida no se hacen mas operaciones
    IF POSITIONPERF (1) > 0 THEN
    NOMASOPERACIONES = 1
    else
    NOMASOPERACIONES = 0
    
    ENDIF
    ENDIF
    #119794 quote
    robertogozzi
    Moderator
    Master

    Mueva la línea 16 a la línea 9 (y la línea 9 se convierte en la línea 10).

    Juan Salas thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

DETENER SISTEMA SI FALLA FALLA UNA OPERACIÓN EN EL DIA


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
yosemite @yosemite Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
6 years ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 02/17/2020
Status: Active
Attachments: No files
Logo Logo
Loading...