Sistema basado en Bandas de Bollinger

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #60498 quote
    RafaelNRafaelN
    Moderator
    Senior

    A continuación una solicitud que ha sido enviada a ProRealtime:

    Buenos días, quiero saber si existe la posibilidad de hacer el siguiente código.

    Quiero que compre cuando el precio actual cruza la línea de bollinger inferior por debajo y quiero que venda cuando el precio actual cruza la línea de bollinger superior por encima.

    Es posible. Gracias

    Y una proposición de respuesta:

    // Conditions to enter long positions
    bollsup=BollingerUp[20](close)
    bollinf=BollingerDown[20](close)
    
    IF NOT LongOnMarket AND close crosses under bollinf THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    // Conditions to exit long positions
    If LongOnMarket AND close crosses over bollsup THEN
    SELL AT MARKET
    ENDIF

     

     

Viewing 1 post (of 1 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

Sistema basado en Bandas de Bollinger


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
RafaelN @rafaeln Moderator
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 01/25/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...