Conversione sistema su GAP overnight per DAX, da Easylanguage per Tradestation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #104352 quote
    Giuliano_GGiuliano_G
    Participant
    Average

    Data 1 –> 1H
    Data2 –> Daily
    Dal lunedì al giovedì entra in posizione alle 2200 ed esce alle 800 del giorno dopo.
    Condizioni Long:
    CloseDN –> la quotazione delle 2200 del giorno prima deve essere inferiore a quella delle 2200 di 2 giorni prima
    Compressione –> Il range del giorno prima deve essere inferiore del range di 2 giorni prima
    Condizioni Short:
    CloseDN –> la quotazione delle 800 del giorno prima deve essere inferiore a quella del massimo di 2 giorni prima
    Compressione –> Il range del giorno prima deve essere inferiore al range di 2 giorni prima

    Di seguito codice EasyLanguage

    var: Compressione(false),CloseDN(false),Trend(false),Espansione(false),CloseUP(false);

    CloseDN = close[0] of data2 < close[1] of data2;
    CloseUP = open[0] of data2 > high[1] of data2;
    Compressione = (high[0] of data2 – low[0] of data2) < (high[1] of data2 – low[1] of data2);
    Espansione = (high[0] of data2 – low[0] of data2) > (close*0.01);

    if dayofweek(date)>=1 and dayofweek(date)<=4 and time=2200 and CloseDN and Compressione then
    buy next bar at open;
    if time=800 then sell next bar at open;

    if dayofweek(date)>=1 and dayofweek(date)<=4 and time=2200 and CloseUP and Espansione then
    sellshort next bar at open;
    if time=800 then buytocover next bar at open;

    #104355 quote
    Giuliano_GGiuliano_G
    Participant
    Average

    Ho sbagliato a copiare, piccola correzione: per lo short la prima condizione si chiama CloseUP ed è corretta la definizione, la seconda condizione è “Espansione” –> il range del giorno prima maggiore del 1% della quotazione al momento dell’ingresso

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

Conversione sistema su GAP overnight per DAX, da Easylanguage per Tradestation


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Giuliano_G @giuliano_g Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by Giuliano_GGiuliano_G
7 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 08/07/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...