CODIGO DE VENTA,, QUE SE DETIENE

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #168894 quote
    Albert0769
    Participant
    Average
    DEFPARAM PRELOADBARS = 10000
    DEFPARAM CUMULATEORDERS = False
    
    PRECIO = Close
    
    MASALTO = Highest[9000](High)+1.2 ////(Spread)
    
    IF MASALTO[5000] = MASALTO[0]  THEN
    STARTBAR = BARINDEX
    ENDIF
    
    BAR00 = BARINDEX - STARTBAR
    
    IF BAR00 = 0  THEN
    ENTRADA = PRECIO
    ENDIF
    
    IF BAR00 = 1  THEN
    ENTRADA = PRECIO
    ENDIF
    
    IF (MASALTO - ENTRADA) <= 30 AND MASALTO[41] < MASALTO[40] AND  MASALTO[40] = MASALTO[0]  THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    ENDIF
    
    EXITSHORT AT MASALTO STOP
    
    /////////////////////
    
    //// Stops y objetivos:
    //SET STOP pLOSS 40
    //SET TARGET pPROFIT 500
    

     

    Hola a todos:

     

    He programado este código de venta milimétrica, pero cuando lo activo para que funcione solo en “ProOrder Auto Trading” se detiene al momento de activarlo.

    El código esta desarrollado para trabajar en el índice Dow Jones, Timeframe de 1 Segundo, y yo utilizo de momento la versión V 10.3.

    Por favor si lo podéis revisar y decirme donde esta el fallo de programación.

     

    Muchas Gracias a todos por vuestra colaboración.

    VENTA-DOBLENIVEL-S.itf
    #168929 quote
    robertogozzi
    Moderator
    Master

    ¿No leíste el mensaje de error? Te dijo la razón por la que te fuiste. No tienes suficientes datos históricos.

    Tiene 10,000 unidades precargadas (este es el máximo permitido), pero intente usar 14,000 (9000 + 5000). Hay demasiados, no puede hacer los cálculos que le pides, así que sale.

    Pruebe 500 en la línea 8.

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

CODIGO DE VENTA,, QUE SE DETIENE


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
Albert0769 @albert0769 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 05/06/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...