richiamare ultima operazione long e short

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

    vorrei porre condizioni del tipo “se l’ultima entrata a mercato era long allora…” , ma non riesco a capire come posso riferirmi all’ultima/penultima operazione eseguita dopo che è stata chiusa.

    #165023 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La miglior cosa è salvare in una variabile il tipo di entrata, quando la esegui:

    ONCE TipoEntrata = 0    //1=Long, 2=Short
    IF MieCondizioniLong THEN
       BUY AT Market
       TipoEntrata = 1
    ELSIF MieCondizioniShort THEN
       SELLSHORT AT Market
       TipoEntrata = 2
    ENDIF

    qindi TIPOENTRATA è la variabile che ti dice di che tipo era l’ultima entrata.

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

richiamare ultima operazione long e short


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
bahl @bahl Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/23/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...