Copy of No me coge Stop trailing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #175563 quote
    ANTONIUSU
    Participant
    Junior

    Buenas tardes.-

    En mi estrategia sobre Bitcoin(1$) en IG quiero poner un stop trailing del 1% y como no admite porcentajes estoy intentado sin éxito:

    N = ROUND(TRADEPRICE / 99)
    SET STOP pTRAILING N

    Tampoco me funciona:

    N = TRADEPRIVE / 100
    
    SET STOP pTRAILING N

    Ni:

    N = TRADEPRICE / 99
    SET STOP pTRADING N

    ¿Cómo debo operar?

    Gracias

    #175564 quote
    robertogozzi
    Moderator
    Master

    Prueba esto:

    SET STOP pTRAILING (TradePrice * 0.01) / PipSize
    #175567 quote
    ANTONIUSU
    Participant
    Junior

    Gracias por la respuesta tan rápida

    #175573 quote
    ANTONIUSU
    Participant
    Junior

    Hola otra vez.-

    Sigue sin cogerlo, según archivo adjunto.

    Screenshot_987.jpg Screenshot_987.jpg
    #175578 quote
    robertogozzi
    Moderator
    Master

    Sin el código no puedo ayudarte más

    #175592 quote
    ANTONIUSU
    Participant
    Junior

    Buenos días.-

    El código sería:

     

    1
    2

    IF StrategyProfit < StrategyProfit[1] THEN
    EntryPrice = TRADEPRICE

    ENDIF

    IF Not OnMarket AND close >= EntryPrice THEN
    BUY 0.1 Contract at Market
    SET STOP pTRAILING (TradePrice * 0.01) / PipSize
    ENDIF

    Saludos

    #175675 quote
    ANTONIUSU
    Participant
    Junior

    Buenos días.-

    Sin embargo el siguiente código si que funciona.

    IF Not OnMarket AND close >= EntryPrice THEN
    BUY 0.1 Contract at Market
    SET STOP pTRAILING 455
    ENDIF
    
    

    He sustituido (TradePrice * 0.01) / PipSize por su valor 455.

    Pero como el Stop está limitado al 1% si el Bitcoin subiera por encima de 45500 dejaría también de ser operativo.

    Saludos

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

Copy of No me coge Stop trailing


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
ANTONIUSU @antoniusu Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by ANTONIUSU
4 years, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 08/17/2021
Status: Active
Attachments: 3 files
Logo Logo
Loading...