Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////// Indicatore 3 Strategie Grezze Trend Following / Mean reversion / Break Out /////////
- ////////// Vedi Video Nella Cartella Corsi Unger video vari Trend Following o Mean Reverting /////////
- input: TF(0), MR(0), BRK(0);
- input: periodo(5);
- // Trend following // Timeframe // Daily // Entro rottura canali massimi minimi 5 giorni fa // Uscita reverse massimo minimo dei canali o stop loss monetario 2000 //
- if TF=1 then begin
- buy next bar highest(h, period) stop;
- sellshort next bar lowest(l, period) stop;
- end;
- // Mean Reverting // Timeframe // 60 Minuti // Entro tocco massimo minimo sessione precedente // Uscita reverse o Uscita Fine Sessione //
- if MR=1 then begin
- if mp <= 0 then buy next bar lows(1) limit;
- if mp >= 0 then sellshort next bar highs(1) limit;
- end;
- // Break Out // Timeframe // 60 Minuti // Entro rottura massimo minimo sessione precedente// Uscita reverse o Uscita Fine Sessione //
- if BRK=1 then begin
- buy next bar highs(1) stop;
- sellshort next bar lows(1) stop;
- end;
- // Uscita fine sessione
- if BRK=1 or MR=1 then setexitonclose;
- // UScita stop loss monetario per la trend following. Stop 2000 dollari non impostato ma sul video lo accenna.
- setstopcontract;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement