chiamare il numero di posizioni aperte nel precedente ordine

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

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

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

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