sistema con indicatore acc/distr

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #128504 quote
    maximus78
    Participant
    Senior

    Una domanda semplice, dato il semplice codice sotto, probacktest non entra ed esce dai trades come da istruzioni:

    Compra se acc/distr >0 e chiude posizione se acc/distr<0

    Sbaglio qualcosa od è un bug della piattaforma?

    Grazie!

    Max

    defparam CumulateOrders = false
    a = AccumDistr
    if not onmarket and a > 0 then
    buy 1 shares at market
    endif
    if onmarket and a < 0 then
    sell at market
    endif
    
    #145334 quote
    robertogozzi
    Moderator
    Legend

    Alla riga 3 gli hai detto di comprare se > 0.

    Alla riga 6 gli hai detto di uscire se < 0.

    Perché dovrebbe fare diversamente?

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

sistema con indicatore acc/distr


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
maximus78 @maximus78 Participant
Summary

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

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