chiamare il numero di posizioni aperte nel precedente ordine

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59436 quote
    claudiop
    Participant
    New

    salve a tutti…

    forse è banale ma non ci arrivo proprio..

    voglio che dopo x pip mi compri +1 share rispetto al precedente ordine .. cosi di acquistare;

    1 long – 1.0000

    2 long-1.0002

    3 long-1.0004

    4 long- 1.0006

    ……

    usando il comando countofposition+1 mi conta tutte , non l ‘ultima… e la 4 diventa (1+2+3)+1  =    7

    ho provato countofposition[1]+1 ma nulla …

    aiuti??

    #59482 quote
    robertogozzi
    Moderator
    Master

    Metti all’inizio

    ONCE nLotti = 0

    e, poco dopo, magari anche la prima riga di codice, l’azzeri (quando non sei a mercato) con

    IF Not OnMarket THEN
       nLotti = 0
    ENDIF

    Ed ogni volta che il prezzo ha fatto i pips che desideri scrivi

    nLotti = nLotti + 1
    BUY nLotti...
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

chiamare il numero di posizioni aperte nel precedente ordine


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
claudiop @claudiop Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 01/14/2018
Status: Active
Attachments: No files
Logo Logo
Loading...