Advertisement
Maurizio-Ciullo

4 Bot Azion Caret 14 MC Webiar Registr Azion

Mar 22nd, 2025
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 4 Bot Azionario Caretella 14 Multicharts: Webiar Registrato Azionario
  2.  
  3. Il test è stata verificata su 50 sottostanti per verificare l'idea, vedi screenshot nella cartella
  4.  
  5. 4 Sottostanti sono stati scelti:
  6.  
  7. 1) Verizone (VZ): Lavora sulla stagionalità "Timeframe Giornaliero"
  8. 2) Apple (AAPL): Lavora sulla stagionalità "Timeframe Giornaliero"
  9. 3) America Airlines (AAL): Lavora sulla price action "Timeframe 4H"
  10. 4) (S&P 500): Lavora sulla volatilità "Timeframe 1H" * ATTENZIONE CARICA 2 DATAFRAME, (DATA 2 S&P 500 TIMEFRAME 1D)
  11.  
  12.  
  13. //////////////// 1) Strategia Stagionalità Verizone VZ Timeframe Giornaliero ////////////////
  14.  
  15.  
  16. Var: n(0);
  17. n = round(100000/close, 0); // CALCOLO DELLE SHARES
  18.  
  19. // LATO LONG
  20. if dayofmonth(date) = 22 then buy n shares next bar at market;
  21. if marketposition = 1 and dayofmonth(date) >= 30 then sell next bar at market;
  22.  
  23. // LATO SHORT
  24. if dayofmonth(date) = 29 then sellshort n shares next bar at market;
  25. if marketposition = -1 and dayofmonth(date) <= 29 and and dayofmonth(date) >= 12 then buytocover next bar at market;
  26.  
  27.  
  28. //////////////// 2) Strategia Stagionalità Apple (AAPL) Timeframe Giornaliero ////////////////
  29.  
  30.  
  31. Var: n(0);
  32. n = round(100000/close, 0); // CALCOLO DELLE SHARES
  33.  
  34. // LATO LONG
  35. if barsinceentry >= 31 or dayofmonth(date) = 22  then sell next bar at market;
  36. if dayofmonth(date) = 23 and marketposition = 0 then buy n shares at market;
  37.  
  38.  
  39. //////////////// 3) Strategia Price Action America Airlines (AAL) Timeframe 4H ////////////////
  40.  
  41.  
  42. // Livelli prezzi tondi superiori e inferiori con mediana
  43.  
  44. Vars: evenPrice(0), highBand(0), lowBand(0, medianP(0), n(0);
  45. n = round(100000/close, 0)
  46.  
  47. evenPrice = Round(Close, 0);
  48. medianP = (evenPrice + evenPrice) / 2;
  49.  
  50. if close[1] < medianP and close > medianP then buy n shares next bar at market;
  51.  
  52. // Target, Stop Loss E Trailing Stop
  53. setstoploss_pt(50);
  54. setbreakeven_pt(25);
  55. setprofittarget_pt(70);
  56.  
  57. //////////////// 4) Strategia Volatilità (S&P 500) Timeframe 1H *ATTENZIONE CARICA 2 DATAFRAME, (DATA 2 S&P 500 TIMEFRAME 1D) ////////////////
  58.  
  59. if close of data2 < low[1] of data2 and close < BollingerBand(close, 20, -2) then buy 2 shares next bar at market;
  60.  
  61. // Chiusura Mediana Bande Bollinger 1 Contratto
  62. if close >= Average(close, 20) and Marketposition > 0 then sell 1 shares next bar at market;
  63.  
  64. // Chiusura Sopra Bande Bollinger 1 Contratto
  65. if close >= BollingerBand(close, 20, 2) and Marketposition > 0 then sell 1 shares next bar at market;
  66.  
  67. // Chiusura Il Venerdì se ho ancora posizioni aperte
  68. if dayofweek(date) = 5 and Marketposition > 0 then setexitonclose;
  69.  
  70. // Stop Loss Monetario
  71. setstoploss(1250);
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement