Forum

Getting a Day

Hello Folks, I am new learning MQL4. I am working on EA which should modify its values on Monday . I used DayOfWeek function in comment section to check, during backtesting whether it's changing its value from 0 to 6. but during back test it always shows 1 I dont know why. Can anybody help in this

Last OrderType

Hello Folks, I am trying to get last Ordertype. (MQL4) Below code only keeps on working when first buy position is opened. but when first Sell position is opened it always gives 0 regardless of what type of position are opened further. I have no idea what's going on. any help would be appreciated

Swapping Buy to Sell did not work

Hello folks, started learning MQL for more than a week now. made EA which simply opens order based on PARABOLIC SAR indicator. on sell indicator it sells and on buy indicator it buys. and I lost 100% loss in a year. while backtesting. I swapped the signal from sell to buy and buy to sell, thinking