1 registered members (flink),
767
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Trading Hours again using latest add-on...
#471572
03/10/18 10:52
03/10/18 10:52
|
Joined: Feb 2015
Posts: 652 Milano, Italy
MatPed
OP
User
|
OP
User
Joined: Feb 2015
Posts: 652
Milano, Italy
|
Hi, I would like to trade an asset only during the allowed frame. The asset is US-SPX-500 and, accordingly with my broker Oanda can be traded: Sun-Thu: 23:00 - 21:14; 21:30 - 21:59 Thu-Fri: 23:00 - 21:14; 21:30 - 21:59 GMT Time
WeekEnd = 4+8;
AssetFrame = UTC;
StartMarket = 23; (or StartMarket = 0; ?)
EndMarket = 2159;
Now if the barperiod is high the gap between 21:14 and 21:30 is not relevant and
if(!suspended()) enterLong();
should make the trick. Questions: - in a multi-asset TS is the approach correct? - StartMarket 23 o 0? - to handle the trading gap between the only way is to check the time with lhour() and minute()? Thank you in advance
Last edited by MatPed; 03/10/18 10:54.
|
|
|
Re: Trading Hours again using latest add-on...
[Re: Zheka]
#471584
03/10/18 15:45
03/10/18 15:45
|
Joined: Feb 2015
Posts: 652 Milano, Italy
MatPed
OP
User
|
OP
User
Joined: Feb 2015
Posts: 652
Milano, Italy
|
Zheka, thank you for your reply, but I do not understand. The US SPX 500 can be traded.
Sun-Thu: 23:00 - 21:14; 21:30 - 21:59 Thu-Fri: 23:00 - 21:14; 21:30 - 21:59 GMT Time
or (is equivalent)
Sun-Thu: 17:00 - 15:14; 15:30 - 15:59 Thu-Fri: 17:00 - 15:14; 15:30 - 15:59 Chicago Time not ET
can you suggest me how to properly set: - Weekend - AssetMarket - StartMarket - EndMarket
Thank You
Last edited by MatPed; 03/10/18 15:45.
|
|
|
Re: Trading Hours again using latest add-on...
[Re: Zheka]
#471590
03/10/18 17:21
03/10/18 17:21
|
Joined: Feb 2015
Posts: 652 Milano, Italy
MatPed
OP
User
|
OP
User
Joined: Feb 2015
Posts: 652
Milano, Italy
|
I don't think it will work. I am trading several assets with different market time. The VPS and the broker's server is UTC time. Oanda stops the server during weekend. For stability purposes is better to use Weekend = 4 I guess that start week will mess up everything. I do not want to restrict trading to stock Exchange Trading Hours.
Zheka, have you experienced with this setting in a TS Live? I want to fine tune a 23 assets TS already live. Zorro syncronize all the orders placed outside market hours, but the broker server send me a lot of error messages. On top of that the broker is aware, in advance, what I am willing to do. Oanda is a MM...
Last edited by MatPed; 03/10/18 17:22.
|
|
|
Re: Trading Hours again using latest add-on...
[Re: Zheka]
#471603
03/10/18 20:07
03/10/18 20:07
|
Joined: Feb 2015
Posts: 652 Milano, Italy
MatPed
OP
User
|
OP
User
Joined: Feb 2015
Posts: 652
Milano, Italy
|
Yes, you said that "VPS/broker's server actual time zone has no bearing on your system", but it is not fully correct. In order to avoid issue I have aligned, VPS, Zorro and Broker Server Time. On top of this there is the weekend downtime of the server to take in consideration.
I can setup a demo account and test the different settings, but it is time consuming. I was looking for somebody with "live" experience in order to reduce the effort.
Last edited by MatPed; 03/10/18 20:08.
|
|
|
Re: Trading Hours again using latest add-on...
[Re: MatPed]
#471606
03/10/18 20:38
03/10/18 20:38
|
Joined: Jul 2017
Posts: 785
Zheka
User
|
User
Joined: Jul 2017
Posts: 785
|
VPS/broker's server actual time zone has no bearing on your system. is in line with It does not matter which time zone - you can either use your PC's time zone, or the VPS time zone, or any other time zone - but the VPS time must be correct and match the zone Anyway, wishing you a good deal of luck.
|
|
|
|