Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Unger Youtube: https://www.youtube.com/watch?v=ZGYfsXdHWO4&t=117s//
- // Bot Unger Opening Range Breakout Nasdaq 30 Min//
- // Avg Trade non ancora sufficiente da ottimizzare e migliorare soprattutto il lato Long//
- input: Mystop(2000), Myprofit(5000), solo_long(false), solo_short(false);
- var: LowLevel(0), HighLevel(0);
- if time = 900 then Begin
- LowLevel= Low;
- HighLevel = High;
- end;
- if time >= 900 and time <= 1500 then Begin
- if high <= HighLevel and not solo_short = true then buy next bar HighLevel stop;
- if low >= LowLevel and Dayofweek(Date) = 5 and not solo_long = true then Sellshort next bar LowLevel stop;
- end;
- if Marketposition <> 0 then Begin
- Buytocover next bar HighLevel stop;
- sell next bar LowLevel stop;
- end;
- setexitonclose;
- Setstopcontract;
- Setstoploss(Mystop);
- Setprofittarget(Myprofit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement