Code error that buys me every minute

Forums ProRealTime English forum ProOrder support Code error that buys me every minute

Viewing 2 posts - 1 through 2 (of 2 total)
  • #205194

    Hi, I already have my code finished the only thing that happens is that what my code does is to buy and the next minute sell and the minute I sell it buys again and so on but what I want is that it buys me every time my open trade goes down 1.5%, thanks

    #205202

    LONGONMARKET no se puede comparar con un precio, ya que es una constante numérica lógica que solo puede tener el valor 0 o 1 (falso o verdadero).
    Si desea consultar el último precio de compra o venta, debe utilizar TradePrice, también escrito TradePrice(1), o CLOSE para el precio actual.

    Estas líneas son inútiles y son lógicamente defectuosas.
    1. no son necesarios porque nunca realiza operaciones CORTAS
    2. son lógicamente incorrectas porque se utiliza IF SHORTONMARKET e inmediatamente después IF LONGONMARKET; uno excluye al otro:

    Ahi esta:

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login