- Search Forex Factory
- 8 Results
- fxjedi replied Nov 27, 2009
Oh oops sorry Scooby, classic mistake I should have caught this before I wrote that code and told you to try it. The MQL time functions TimeLocal, and TimeCurrent always return the current time not the time of the leading candle or of the the ...
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 27, 2009
Hi Scooby, try something like this and let me know if it works, you need some edge case logic to deal with the start time being > than the end time extern int Market.Hour.Start = 22; extern int Market.Hour.Stop = 8; // main code if ...
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 27, 2009
Hi Steve, well this is a simple idea and maybe you've already considered it but how about something like this, convert values to integer then newVal = 217 - (217 MOD 5) = 217 - 2 = 215 // == 2.15 when converted back to float or newVal = i1 - (i1 % ...
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 23, 2009
Steve, I've been a professional software engineer about 12 years now and I started programming something like 30 years ago in grade school on commodore and apple computers so I hope you will take this as a real complement when I tell you that you ...
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 22, 2009
Hey Steve, thanks alot I appreciate that. I am a longtime software developer but new to this board. I'm a member of FXAW and I saw your post and that is how I ended up in this thread.
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 22, 2009
That website does not look very comprehensive and some of the information is not accurate, for example MB Trading spreads are generally much lower than shown there. MBT is a NFA Criminal and I don't want to trade with NFA criminals anymore but those ...
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 22, 2009
It should work, I use this kind of logic in my EA's all the time to increase their speed when back testing, for example if its a 5min EA I might make it only take action once every new 1m candle or every 5min candle. It seems like it would get stuck ...
scooby-doo BOJ JPY pairs trading robot
- fxjedi replied Nov 21, 2009
Hi Steve, It is possible I have misunderstood what you are trying to do but have you considered using iTime to get the time for the current candle and compare to the last saved time then you can detect a new candle rollover without hardcoding any ...
scooby-doo BOJ JPY pairs trading robot
- Posts by Member Search: 'fxjedi'