123 HIGH&LOW ROSS

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #180746 quote
    Gaspare
    Participant
    Veteran
    uno= high[8] < high[7] AND high[7] < high[6]
    // low croissant
    uno1 = low[8] < low[7] AND low[7] < low[6]
    
    due = high[6] > high[5] AND high[5] > high[4] AND high[4] >= high[3]
    due1 = low[6] > low[5] AND low[5] > low[4] And low[4] > low[3]
    
    tre = high[3] < high[2] AND high[2] < high[1] AND high[1] > high
    tre1 = low[3] < low[2] AND low[2] < low[1] AND low[1] > low
    
    unolow= high[8] > high[7] AND high[7] > high[6]
    unolow1 = low[8] > low[7] AND low[7] > low[6]
    
    duelow = high[6] < high[5] AND high[5] < high[4] AND high[4] <= high[3]
    duelow1 = low[6] < low[5] AND low[5] < low[4] And low[4] < low[3]
    
    trelow = high[3] > high[2] AND high[2] > high[1] AND high[1] < high
    trelow1 = low[3] > low[2] AND low[2] > low[1] AND low[1] < low
    
    IF uno and due and tre and uno1 and due1 and tre1 then
    Ross=1
    Elsif unolow and duelow and trelow and unolow1 and duelow1 and trelow1 and trelow1 then
    Ross=-1
    ELSE
    Ross = 0
    Endif
    
    return  Ross
    

    Salve, ciao Roberto

    ho trovato questo indicatore di Nicolas di qualche anno fa, ma purtroppo non va,

    mi comprime il grafico tutto su una linea orizzontale.

    Per favore lo puoi controllare e inserire una strategia automatica, grazie.

    #180749 quote
    robertogozzi
    Moderator
    Master

    Perché devi metterlo sotto il grafco.

    Che vuoi che faccia la strategia?

    #180750 quote
    Gaspare
    Participant
    Veteran

    anche sotto il grafico non va, solo una linea orizzonale

    per la strategia si va long sopra il 2 o si va short sotto il 2

    sempre con ordini stop con 2 pip sopra per il long

    e 2 pip sotto per lo short

    Grazie

    #180753 quote
    robertogozzi
    Moderator
    Master

    Restituisce 0 se non c’è segnale, 1 se rialzista, -1 se ribassista-

    Forse hai selezionato poche unità-

    Prova da 10K in su.

    Te la farò domani.

    x.jpg x.jpg
    #180755 quote
    Gaspare
    Participant
    Veteran

    grazie Roberto

    #180833 quote
    Gaspare
    Participant
    Veteran

    Ciao Roberto

    non te ne sei dimenticato ,vero?

    #180855 quote
    robertogozzi
    Moderator
    Master

    No, sono stato molto occupato ieri.

    Non hai specificato 2 pips sopra/sotto cosa, per cui ho messo il massimo/minimo, semmai lo cambi tu:

    uno= high[8] < high[7] AND high[7] < high[6]
    // low croissant
    uno1 = low[8] < low[7] AND low[7] < low[6]
     
    due = high[6] > high[5] AND high[5] > high[4] AND high[4] >= high[3]
    due1 = low[6] > low[5] AND low[5] > low[4] And low[4] > low[3]
     
    tre = high[3] < high[2] AND high[2] < high[1] AND high[1] > high
    tre1 = low[3] < low[2] AND low[2] < low[1] AND low[1] > low
     
    unolow= high[8] > high[7] AND high[7] > high[6]
    unolow1 = low[8] > low[7] AND low[7] > low[6]
     
    duelow = high[6] < high[5] AND high[5] < high[4] AND high[4] <= high[3]
    duelow1 = low[6] < low[5] AND low[5] < low[4] And low[4] < low[3]
     
    trelow = high[3] > high[2] AND high[2] > high[1] AND high[1] < high
    trelow1 = low[3] > low[2] AND low[2] > low[1] AND low[1] < low
     
    IF uno and due and tre and uno1 and due1 and tre1 then
       Ross=1
    Elsif unolow and duelow and trelow and unolow1 and duelow1 and trelow1 and trelow1 then
       Ross=-1
    ELSE
       Ross = 0
    Endif
    ONCE EntryL = 0
    ONCE EntryS = 0
    IF Ross = 1 THEN
       EntryL = high + 2 * pipsize
       EntryS = 0
    ENDIF
    IF Ross = -1 THEN
       EntryS = low - 2 * pipsize
       EntryL = 0
    ENDIF
    IF close < EntryL AND Not LongOnMarket THEN
       BUY 1 CONTRACT AT EntryL STOP
    ENDIF
    IF close > EntryS AND Not ShortOnMarket THEN
       SELLSHORT 1 CONTRACT AT EntryS STOP
    ENDIF
    SL = 100
    TP = SL * 3
    SET STOP   pLOSS  SL
    SET TARGET pROFIT TP
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

123 HIGH&LOW ROSS


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Gaspare @gaspare Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 3 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/01/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...