Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4 Bot Azionario Caretella 14 Multicharts: Webiar Registrato Azionario
- Il test è stata verificata su 50 sottostanti per verificare l'idea, vedi screenshot nella cartella
- 4 Sottostanti sono stati scelti:
- 1) Verizone (VZ): Lavora sulla stagionalità "Timeframe Giornaliero"
- 2) Apple (AAPL): Lavora sulla stagionalità "Timeframe Giornaliero"
- 3) America Airlines (AAL): Lavora sulla price action "Timeframe 4H"
- 4) (S&P 500): Lavora sulla volatilità "Timeframe 1H" * ATTENZIONE CARICA 2 DATAFRAME, (DATA 2 S&P 500 TIMEFRAME 1D)
- //////////////// 1) Strategia Stagionalità Verizone VZ Timeframe Giornaliero ////////////////
- Var: n(0);
- n = round(100000/close, 0); // CALCOLO DELLE SHARES
- // LATO LONG
- if dayofmonth(date) = 22 then buy n shares next bar at market;
- if marketposition = 1 and dayofmonth(date) >= 30 then sell next bar at market;
- // LATO SHORT
- if dayofmonth(date) = 29 then sellshort n shares next bar at market;
- if marketposition = -1 and dayofmonth(date) <= 29 and and dayofmonth(date) >= 12 then buytocover next bar at market;
- //////////////// 2) Strategia Stagionalità Apple (AAPL) Timeframe Giornaliero ////////////////
- Var: n(0);
- n = round(100000/close, 0); // CALCOLO DELLE SHARES
- // LATO LONG
- if barsinceentry >= 31 or dayofmonth(date) = 22 then sell next bar at market;
- if dayofmonth(date) = 23 and marketposition = 0 then buy n shares at market;
- //////////////// 3) Strategia Price Action America Airlines (AAL) Timeframe 4H ////////////////
- // Livelli prezzi tondi superiori e inferiori con mediana
- Vars: evenPrice(0), highBand(0), lowBand(0, medianP(0), n(0);
- n = round(100000/close, 0)
- evenPrice = Round(Close, 0);
- medianP = (evenPrice + evenPrice) / 2;
- if close[1] < medianP and close > medianP then buy n shares next bar at market;
- // Target, Stop Loss E Trailing Stop
- setstoploss_pt(50);
- setbreakeven_pt(25);
- setprofittarget_pt(70);
- //////////////// 4) Strategia Volatilità (S&P 500) Timeframe 1H *ATTENZIONE CARICA 2 DATAFRAME, (DATA 2 S&P 500 TIMEFRAME 1D) ////////////////
- if close of data2 < low[1] of data2 and close < BollingerBand(close, 20, -2) then buy 2 shares next bar at market;
- // Chiusura Mediana Bande Bollinger 1 Contratto
- if close >= Average(close, 20) and Marketposition > 0 then sell 1 shares next bar at market;
- // Chiusura Sopra Bande Bollinger 1 Contratto
- if close >= BollingerBand(close, 20, 2) and Marketposition > 0 then sell 1 shares next bar at market;
- // Chiusura Il Venerdì se ho ancora posizioni aperte
- if dayofweek(date) = 5 and Marketposition > 0 then setexitonclose;
- // Stop Loss Monetario
- setstoploss(1250);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement