Advertisement
Maurizio-Ciullo

Indicatore 3 Strategie Grezze TF MR BR

Mar 23rd, 2025
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   ///////////   Indicatore 3 Strategie Grezze Trend Following / Mean reversion / Break Out /////////
  2.  
  3.   //////////    Vedi Video Nella Cartella Corsi Unger video vari Trend Following o Mean Reverting /////////
  4.  
  5. input: TF(0), MR(0), BRK(0);
  6. input: periodo(5);
  7.  
  8. // Trend following // Timeframe // Daily // Entro rottura canali massimi minimi 5 giorni fa // Uscita reverse massimo minimo dei canali o stop loss monetario 2000 //
  9. if TF=1 then begin
  10.     buy next bar highest(h, period) stop;
  11.     sellshort next bar lowest(l, period) stop;
  12. end;
  13.  
  14. // Mean Reverting // Timeframe // 60 Minuti // Entro tocco massimo minimo sessione precedente // Uscita reverse o Uscita Fine Sessione //
  15. if MR=1 then begin
  16.     if mp <= 0 then buy next bar lows(1) limit;
  17.     if mp >= 0 then sellshort next bar highs(1) limit;
  18. end;
  19.  
  20. // Break Out // Timeframe // 60 Minuti // Entro rottura massimo minimo sessione precedente// Uscita reverse o Uscita Fine Sessione //
  21. if BRK=1 then begin
  22.     buy next bar highs(1) stop;
  23.     sellshort next bar lows(1) stop;
  24. end;
  25.  
  26.  
  27. // Uscita fine sessione
  28. if BRK=1 or MR=1 then setexitonclose;
  29.  
  30. // UScita stop loss monetario per la trend following. Stop 2000 dollari non impostato ma sul video lo accenna.
  31. setstopcontract;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement