Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////// STRATEGIA FINITA SU AZIONARIO AMERICANO META PARTE 2 DI 2 Azionario Meta 15Min
- ////////////////////////////////////////////////////// INIZIO SVILUPPO TIMEFRAME 60 MIN, TEST PORTAFOGLIO 30 MIN "VEDI VIDEO CARTELLA QTA MASTERMIND", APPLICAZIONE STRATEGIA FINALE 15 MIN
- // Header e Footer sono solo per il backtest in sample out of sample ricuvuto dallo study, nella strategia non serve può essere eliminato, serve solo per lo sviluppo.
- ---------------- HEADER INIZIO: DA ELIMINARE ----------------}
- Inputs: isSampleOutOfSampleActive(0), displayMode(1);
- if isSampleOutOfSampleActive = 0 or (
- ((displayMode = 1 or displayMode = 3) and isSampleOutOfSampleActive = 1 and ((Date >= 1120518 and Date <= 1146500) or (Date >= 1163824 and Date <= 1189806) or (Date >= 1207130 and Date <= 1233112) or marketposition <> 0)) or
- ((displayMode = 2 or displayMode = 3) and isSampleOutOfSampleActive = 1 and ((Date > 1146501 and Date <= 1163823) or (Date > 1189807 and Date <= 1207129) or (Date > 1233113 and Date <= 1250435) or marketposition <> 0))) then begin
- {---------------- HEADER FINE: DA ELIMINARE ----------------}
- Inputs: be(200);
- Vars: n(0);
- n = 10000 / Close;
- setStopPosition;
- if MarketPosition = 0 then begin
- //Il prezzo di chiusura di ieri e' sceso di almeno lo 0.5% rispetto a due giorni fa.
- if (CloseD(1) < CloseD(2) ) then begin
- if ( (HighS(0) - OpenS(0)) > ((HighS(1) - OpenS(1)))) then begin
- buy n shares next bar at market;
- end;
- end;
- end;
- setbreakeven(be);
- SetStopLoss(300);
- SetProfitTarget(450);
- {---------------- FOOTER INIZIO: DA ELIMINARE ----------------}
- end;
- {---------------- FOOTER FINE: DA ELIMINARE ----------------}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement