Hanh Tran
Hanh Tran
I am Hanh Tran, I love coding by MQL4
Friends 1
Hanh Tran
Added topic An EA with more than magic numbers and trading on 01 screen.
I want an EA with more than magic numbers? May you help with big thanks
Hanh Tran
Hanh Tran
My problem:

double LcSoNenTrongNgay = 0;

LcSoNenTrongNgay = MathRound(LcHourOfDay/4) + 1;
LcSoNenTrongNgay = MathRound(LcHourOfDay/4);
int LcSoNenTinh = 5+ LcSoNenTrongNgay;

=>possible loss of data due to type conversion

May you help this, pls? Big thanks!
Hanh Tran
Hanh Tran
I want to convert the server time to GMT time?
Hanh Tran
Registered at MQL5.community