chiudere posizione dopo n barre.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #191601 quote
    Steven11Steven11
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
4 years, 5 months ago.

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