codice da VT a Pro

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #81032 quote
    sgiavellisgiavelli
    Participant
    New

    Buon pomeriggio,chiedo cortesemente se qualcuno può tradurmi il seguente codice.Grazie

    Var: miamedia = MOV(C,5,S);

    if  (C<miamedia) then

    enterlong(nextbar,atopen);

    endif;

    if positiondir=1 and (C>miamedia) then

    exitlong(nextbar,atopen);

    endif;

    #81042 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Avevi pubblicato il topic nel forum in lingua spagfnola, così l’ho trasferito su quello italiano.

    Spero troverai qualcuno che riesca a farlo (io non so).

    #81149 quote
    NicolasNicolas
    Keymaster
    Legend

    Potrebbe essere tradotto in questo modo:

    miamedia = average[5](close)
    
    if  (Close<miamedia) then
    
     buy at market 
    
    endif
    
    if longonmarket and (Close>miamedia) then
    
     sell at market 
    
    endif
    #81635 quote
    sgiavellisgiavelli
    Participant
    New

    Grazie mille Sig. Nicolas per la traduzione del codice precedente,ho provato con questo ma  non sono assolutamente capace.Se cortesemente potete aiutarmi.

    Var: miamedia;

    miamedia= MOV(C,5S);

    if crossover (c,miamedia) then

    enterlong(nextbar,atopen);

    endif

    if crossunder (c,miamedia) then

    exitlong(nextbar,atopen);

    endif;

    #81671 quote
    NicolasNicolas
    Keymaster
    Legend

    Dovresti imparare come programmare con ProRealTime! 😉

    miamedia = average[5](close)
    
    if  (Close crosses over miamedia) then
    
     buy at market 
    
    endif
    
    if longonmarket and (Close crosses under miamedia) then
    
     sell at market 
    
    endif
    #81702 quote
    sgiavellisgiavelli
    Participant
    New

    Buonasera,

    La ringrazio molto Sig. Nicolas per la sua gentile disponibilità.

    Cordialmente

    Stefano

Viewing 6 posts - 1 through 6 (of 6 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

codice da VT a Pro


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
sgiavelli @sgiavelli Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by sgiavellisgiavelli
8 years ago.

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