Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Indicatore Entries Today //
- // Limita Ingressi Sui Giorni Di Calendario o Sulle Sessioni //
- // * ATTENZIONE: INSERIRE ORA ULTIMA BARRA A: T=1600 * PER INDICARE ULTIMA BARRA SESSIONE
- input: MultipleEntries(1);
- var: oktrade(true), MP(0);
- MP = marketposition;
- if T=1600 then oktrade=true; // *
- if MP<>MP[1] and MP<>0 then oktrade=false;
- //// MULTIPLE ENTRIES
- if MultipleEntries=1 then begin
- if T>=1730 or T<1500 then buy next bar HighSession(1,0) stop;
- if T>=1730 or T<1500 then sellshort next bar LowSession(1,0) stop;
- end;
- //// NO MULTIPLE ENTRIES w/ EntriesToday / Calendar Day
- if MultipleEntries=0 and EntriesToday(d)=0 then begin
- if T>=1730 or T<1500 then buy next bar HighSession(1,0) stop;
- if T>=1730 or T<1500 then sellshort next bar LowSession(1,0) stop;
- end;
- //// NO MULTIPLE ENTRIES w/ oktrade / Session
- if MultipleEntries=-1 and oktrade then begin
- if T>=1730 or T<1500 then buy next bar HighSession(1,0) stop;
- if T>=1730 or T<1500 then sellshort next bar LowSession(1,0) stop;
- end;
- setexitonclose;
Advertisement
Add Comment
Please, Sign In to add comment