- Search Metals Mine
-
honestknave replied Feb 5, 2015The clock will be disappearing when it gets a negative number: You will get a negative number (which isn't a valid time) if there is a delay between the theoretical start of a new bar and the first tick coming in. For example, the 12:00:00 bar gets ...
Local Time Clock Script
-
honestknave replied Feb 5, 2015Thinking about this some more... you'll be better off using EventSetMillisecondTimer(). The reason being: if you use a 1 second timer and a tick doesn't come in, it has to wait another whole second before it can catch up. So the tick comes in at 1.1 ...
Local Time Clock Script
-
honestknave replied Feb 5, 2015Hello howa61, Your indicator is generating an Alert(), which in MQL4 language means "display a message in a window and play a sound". You can change the alert sound in your terminal's settings, but it will apply to ALL alerts: image An alternative ...
I will code your EAs and Indicators for no charge
-
honestknave replied Feb 5, 2015That's a good example of the difference between local and server time... 2 seconds

Local Time Clock Script
-
honestknave replied Feb 5, 2015You'll need to use ObjectSetString() ObjectSetString(0,Tag,OBJPROP_FONT,"Arial Black");
Local Time Clock Script
-
honestknave replied Feb 5, 2015Hello aminhakim, A few things to think about: Scripts are executed only once, so you'll want to use an indicator or an EA to run this. You can use OnTimer() to avoid the issue of waiting for an incoming tick If you use TimeLocal() or TimeGMT() you ...
Local Time Clock Script
-
honestknave replied Feb 4, 2015Mr. Pip: I hope you haven't abandoned your excellent thread!
Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 4, 2015Sure, no problem. I run several of these already on non-USD based accounts so let me know.
Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 4, 2015Send me a PM with what exactly you're looking for and I can probably help you out.
Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 3, 2015It's been a roller coaster day - I'm glad to see people taking lots of pips! A few trades on EURUSD late in the day as things settled down. Annotated these up while waiting for my final trade that is taking its sweet time... image image image ...
Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 3, 2015You have a few options: Global Variables which have shelf life of 4 weeks from when they were last accessed. File functions which will let you read and write to an external file You should find some examples and explanations through those links. ...
Using external file to store Variable content in case of MT crash
-
honestknave replied Feb 3, 2015For those trading GBP... watch out for the high impact news in 10 mins. Yes, terribly dull. I've had to settle for playing rangebound ping pong on EURUSD this morning
Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 3, 2015It was rather anti-climatic... price never managed to push through that level and I closed it manually for +15 pips. Still, can't complain

Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 2, 2015Seems like everyone has been trading well today
I'm currently long on this, but the bulls need to pull something out the bag sharp or I'll be closing manually. Price is really struggling to push through the 1.13500 coupled with 61.8AB=CD 

Ratios & Harmonics: a Different Way to Trade
-
honestknave replied Feb 2, 2015Here is some rough code which should give you an idea of the concept. The code runs once per bar. If the code finds a gap up pattern, the time is stored. Additionally, the comment is updated each bar to reflect how long ago the last pattern ...
Counting number of past bars since price pattern occurrence
-
honestknave replied Feb 2, 2015Thank you
We're all still learning!How to give a manually entered trade the same MagicNumber as EA
-
honestknave replied Feb 2, 2015Something to bear in mind is that brokers can change or add to an order comment. So you need to be careful if your code checks for equality (==)
How to give a manually entered trade the same MagicNumber as EA
-
honestknave replied Feb 2, 2015Depending on your requirements, another option is to create your own buy and sell buttons for placing manual orders. The buttons can assign the magic number when they open the order
How to give a manually entered trade the same MagicNumber as EA
-
honestknave replied Feb 1, 2015Sadly not an expert - there are many people far better at coding than me!
I will code your EAs and Indicators for no charge