Copy of No me coge Stop trailing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #175563 quote
    ANTONIUSUANTONIUSU
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    Prueba esto:

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

    Gracias por la respuesta tan rápida

    #175573 quote
    ANTONIUSUANTONIUSU
    Participant
    Junior

    Hola otra vez.-

    Sigue sin cogerlo, según archivo adjunto.

    Screenshot_987.jpg Screenshot_987.jpg
    #175578 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sin el código no puedo ayudarte más

    #175592 quote
    ANTONIUSUANTONIUSU
    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
    ANTONIUSUANTONIUSU
    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.
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

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 ANTONIUSUANTONIUSU
5 years, 1 month ago.

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