Advertisement
Maurizio-Ciullo

Bot TS SOIA bias fine sessi 30min

Feb 19th, 2023
861
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. //BIAS LONG su cambio sessione FUTURE SOIA
  3.  
  4. // timeframe 30 min
  5. // exchange time
  6. // future S soybean opp mini soybean XK (YK su IB)
  7.  
  8. input:  xstop (0), xprofit (0); // da ottimizzare in base al future usato
  9.  
  10.  
  11. //entrata alle 12:30 exchange time (19:30 europe time )
  12.  
  13. if time=1230 then
  14. buy next bar at market;
  15.  
  16.  
  17. //uscita alle 06:00 exchange time del giorno successivo (12:00 europe time)
  18.  
  19. if marketposition >0 and
  20. time=0600  then
  21. sell next bar at market;
  22.  
  23. setstopcontract;
  24. setstoploss (xstop);
  25. setprofittarget (xprofit);
  26.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement