MomoParticipant
Junior
hi i created a very simple indicator that marks the euro session to 1 and all other sessions to 0 see below.
Now my timezone that i am using is set to gmt +8 but when i use the backtest and test very simple open trade when indicator is 1 and close if 0 then this does not match.
i have tested by putting the timezone to utc +0 and when i run the backtest then i see the its correct. is the backtest using a different timezone or is this just a bug and how can i fix this to use my current set timezone.
below is the simple code
starttime = 150000
endtime = 230000
tradetime = 0.0
if time>=starttime and time<=endtime then
tradetime = 1.0
endif
RETURN tradetime
The time zone you set on your PC are not read by PRT.
PRT software works on PRT servers, so you need to customize trading time and hours as from attached pic.
MomoParticipant
Junior
so backtesting is not based on on the timezone set on the local pc but on the server?
i have set the settings you mentioned but still the same not getting a match
Will you please attach a pic of your settings?
Momo Kanouni – please always use the ‘Insert PRT Code’ button when putting code in your replies as it makes it much easier for others to read. I have tidied up your post for you. 🙂
Try selecting the second option (of the first 3).