chiudere posizione dopo n barre.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #191601 quote
    Steven11
    Participant
    Average

    Buonasera,

    vorrei far chiudere al sistema di trading la posizione dopo n (un determinato numero di candele) alla chiusura di contrattazione della ennesima candela. Grazie in anticipo

    #191612 quote
    robertogozzi
    Moderator
    Master

    Ecco:

    If OnMarket and ((BarIndex - TradeIndex) > 20) then //uscire dopo 20 barre
       Sell      at Market
       Exitshort at Market
    Endif
    Steven11 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

chiudere posizione dopo n barre.


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Steven11 @steven11 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/11/2022
Status: Active
Attachments: No files
Logo Logo
Loading...