pregunta sobre programacion

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #189334 quote
    diegofe_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
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
4 years ago.

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