pregunta sobre programacion

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #189334 quote
    diegofe_2000diegofe_2000
    Participant
    Senior
    cordial saludo
    me pregunta es muy sencilla : como coloco un stops en el mínimo de la vela con el cual mi programa abrió una orden, y este se haga efectiva aun cuando hayan pasado muchas velas.
    #189340 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ahi esta:

    IF Not OnMarket THEN
       myStopLoss = 0
    ENDIF
    IF close crosses over average[200,0](close) AND Not OnMarket THEN
       BUY 1 Contract AT Market
       myStopLoss = low
       SET TARGET pPROFIT 30
       SET STOP   LOSS    close - low
    ENDIF
    IF LongOnMarket THEN
       SELL AT myStopLoss STOP
    ENDIF
    GraphOnPrice myStopLoss coloured(255,0,0,255)
Viewing 2 posts - 1 through 2 (of 2 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

pregunta sobre programacion


ProOrder: Trading Automático y Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 03/04/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...