Advertisement
Maurizio-Ciullo

Strategia EUR-USD Be Quant QTA

Sep 25th, 2023
2,292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // EUR/USD
  2. //Timeframe: 15 Minuti
  3. // Pattern Versione Larry William: if close[1] < open[1] and close < low[1] then buy at market;
  4.  
  5. inputs: sl(700), shortOn(0), longOn(0);
  6.  
  7. if time = 0 and c > c[1] and marketposition = 0 and shortOn = 1 then sellshort next bar at market;
  8. if time = 800 and marketposition <= 0 then begin
  9.     buytocover next bar at market;
  10.     if h > h[1] and c < c[1] and longOn = 1 then buy next bar at market;
  11.  
  12. end;
  13. if time = 2300 and marketposition > 0 then sell next bar at market;
  14.  
  15.  
  16. setstoploss_pt(sl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement