- Search Crypto Craft
- 39 Results (1 Threads, 38 Replies)
- lohikeitto replied Feb 6, 2009
You are right Rabid, I get all together and shorten the code. //+------------------------------------------------------------------+ //| IsTimeOK //+------------------------------------------------------------------+ bool IsTimeOK(int StartHour, int ...
Working through midnight?
- lohikeitto replied Feb 5, 2009
Ok, How about this? As I tested a bit, seems to work correctly. //+------------------------------------------------------------------+ //| IsTimeOK //+------------------------------------------------------------------+ bool IsTimeOK(int StartHour, ...
Working through midnight?
- lohikeitto replied Feb 5, 2009
I've just written now a function to do it. (have not tested it, but I think it will work) What you have to is just to throw StartHour & EndHour to the function. Read the comment included in the code. ...
Working through midnight?
- lohikeitto replied Feb 3, 2009
Hi Terranin, Thanks for the great tool. I have tried your account copier, and it works great. It was really exciting when I saw every activities on an account were copied to another account! This can be the best solution for troublesome ...
Copying trades from one account to another
- lohikeitto replied Jan 29, 2009
Here you go eegle, This works for both 2-4 digits & 3-5 digits brokers (maybe, I didn't test this for 2-4 digits brokers). I made 1000pts Price (1.4000, 120.00 etc.) to stand out. Sometimes Price seems to slip 1pt, but never mind it's trivial.
I Need A Simple Indicator
- lohikeitto replied Jan 26, 2009
Yes, It will be useful, not only beautiful continuous tone. Although I don't trade 1min chart and don't trade manually, It will visually help to confirm breakout on longer timeframe also. (I added step variable because price step become too many for ...
Dynamic colors?
- lohikeitto replied Jan 25, 2009
Ok, Here you go Ronald. Basically, It's the same thing as your original code. I just modded some processing of double value. The problem of this indicator is .... you can't see the price on the right side of the chart

Dynamic colors?
- lohikeitto replied Jan 25, 2009
Although I'm not sure what you really want to do, isn't this nearly what you want ? //+------------------------------------------------------------------+ //| Support and Resistance Heat Map.mq4 | //| Copyright c 2009, Ronald Raygun | //| | ...
Dynamic colors?
- lohikeitto replied Jan 25, 2009
mladen's formula is perfect. So I modded my code above. MathAbs for minus value is added, but it will be unnecessary because we usually check the values before sending it to the function.
Dynamic colors?
- lohikeitto replied Jan 25, 2009
Hi Ronald, I just wrote a small script to test. It seems that C'XXX,XXX,XXX' format works, but doesn't allow variables. So I think you'd better calculate color value (e.g. 12345678) from each RGB values. I tested several combinations and recorded ...
Dynamic colors?
- lohikeitto replied Jan 20, 2009
Here is a sample code. //+------------------------------------------------------------------+ //| Global Variables test //+------------------------------------------------------------------+ /* MetaEditor's explanation datetime GlobalVariableSet( ...
MT4 global variables: my new best friend
- lohikeitto replied Dec 26, 2008
The alert you saw means that "There is a function named "StopLoss()", but it's not used. so compiler delete it for exp-file because it's unnecessary." (This is nothing but a notice, not an error.) If you use (reference, call) the function, the alert ...
Trade Manager help
- lohikeitto replied Dec 13, 2008
"iExposure" will do exactly what you want. If I remember right, it is default (custom) indicator. So you already have got it. It shows P/L and more info for existing open symbols in separate window.
Indicator needed
- lohikeitto replied Dec 5, 2008
There are many indicators that draw regression line/channel. For reference, search web by following keyword. for regression line/channel: auto regression channel mq4 --- there are a lot of similar ones i-Regr mq4" ----- this one draw regression ...
Automatic Trend line, trend channel, support, resistance detection
- lohikeitto replied Dec 3, 2008
Kiwi06, Include files that adamp has written is a kind of general library. It contains functions that he will use often. It can be called when EA needs these functions. "not referenced and will be removed from exp-file" means the EA just doesn't use ...
Updated EA, Backtesting, common mistakes and some working code
- lohikeitto replied Nov 30, 2008
Simplest way to do it. int TimeLimit = 80; int CurrentBar; int TimeLimitHour; int TimeLimitMin; //+------------------------------------------------------------------+ //| expert initialization function | ...
Guys, please help!
- lohikeitto replied Nov 24, 2008
Thanks codobro, I have found a code posted by Ronald Raygun (at the thread "MAs at newbar..." or something) and thought it to be most sophisticated way to do it. int CurrentBar; int init() { CurrentBar = Bars; return(0); } int start() { ...
How to make EA that send Open Price of Candle for every new candle
- lohikeitto replied Nov 24, 2008
Hi mbah_sangkil, I think it will work if you put this condition before Sendmail Order. if (Volume[0] == 1) "Volume[i] == 1" means first tick of the bar i. (and bar 0 means current bar) If you want it to be timeframe independent, You can use ...
How to make EA that send Open Price of Candle for every new candle
- lohikeitto replied Nov 24, 2008
Hi adamp, I'm simply astonished when I read your "My First EA" thread. Read API Yesterday, and post the first EA Today... This is the capability of a real skilled programmer! And as a trader, you are proceeding in right direction. You have noticed ...
Updated EA, Backtesting, common mistakes and some working code