- Search Crypto Craft
-
luxinterior replied May 9, 2010While the above code may work it's a bit of a kludge. Try using the iHour and iMinute and specify PERIOD_M1 as the time frame. Read about them in the help file. Regards Lux
Mql4 Coding Help
-
luxinterior replied May 9, 2010T4F - The fix above should work but I would also suggest you get into the habit of using curly braces too. For example... if(bCanTrade == true){ // do some stuff... }else if(iOrderCnt > 0){ // do some stuff... }else{ // do something else... } It'll ...
finnished my first indicator now want to add EA to it. a few questions.
-
luxinterior replied May 8, 2010Sounds like your talking about a select box. No you can't do that in mql. Lux
MT4 script user Input select-field
-
luxinterior replied May 8, 2010If possible put your indicator code in the EA. Just start a new EA project and create a function called CheckSignal that returns an integer. Check for a signal using the code you created for the indicator within it and return op_buy or op_sell or if ...
finnished my first indicator now want to add EA to it. a few questions.
-
luxinterior replied May 8, 2010I'm always suspicious when somebody posts code in an ex4. If you're being genuinely altruistic like I and many other real coders are around here then post the mql file. If you have other motives then don't bother. I often wonder whether it's because ...
Need for auto stop loss EA
-
luxinterior replied May 7, 2010Well it's decompiled code so somebody's copyright has been infringed. Lux
New trader needs advice on a EA
-
luxinterior replied May 2, 2010Yes you could have a separate EA that would have the same magic number as the first EA and would therefore be able to access the orders it placed. The problem I could see though is if you are deleting pending orders that the first EA has placed then ...
Running Two EA's Simultaneously
-
luxinterior replied May 2, 2010Also if you're posting code it's better to use the the forums code tags. Makes it easier to read and you're more likely to get responses. Lux
Cant take this any more!! (iMaOnArray)
-
luxinterior replied Apr 29, 2010I fixed this for you. Enjoy! Lux
How to change indicator to allow multiple instances on one chart
-
luxinterior replied Apr 29, 2010I assume it's in a loop then and is incrementing i each time. Again I'd assume it starts at 1. Change that to 0 or better yet just post the indicator and I'll do it quickly for you.
LuxEMA SMA Signal Alert Question
-
luxinterior replied Apr 29, 2010The indicator you're using is set to check on close of bar so just change the 1 at the end to 0 and it'll check the currently forming bar. You'll see things like this... iMA(NULL,0,13,8,MODE_SMA,PRICE_CLOSE,1); Change the 1 to 0 and you're all good. ...
EMA SMA Signal Alert Question
-
luxinterior replied Apr 27, 2010Well you can disable dll calls in the indicators properties but I'm not sure how this will help fix your problem. I would imagine the vendor is just trying to protect their intellectual property. They have no way of knowing if you're a genuine ...
how do i stop a an EA
-
luxinterior replied Apr 26, 2010There's a few ways you could do it depending on what you need and how often you want alerts. You could set a static variable when it sends an email that would a value representing the current color. Keep checking that variable. If it's the same as ...
Send Email Functionality for this indicator
-
luxinterior replied Apr 21, 2010You can't change the normal text comments that usually appear top-left but if you want to do that use objects instead. Lux
Can you we customize the color or size of comments()?
-
luxinterior replied Apr 18, 2010Which it would do by default anyway so as I say the code is redundant. Which is the problem the OP is trying to address. I've already suggested a solution and I think he's solved his problem now so no need for further discussion. Lux
running two experts at the same time.
-
luxinterior replied Apr 18, 2010That code makes no sense because you're comparing like with like. Your statement basically says if 1=1 and 2=2 then do something. The test will always be true. It also doesn't look like it would address the problem of what do do when the EA is ...
running two experts at the same time.
-
luxinterior replied Apr 18, 2010That'll work. Just watch out though if you happen to open up a trade on the same pair because your EA will start managing that too which may not be what you want. Good luck Lux
running two experts at the same time.
-
luxinterior replied Apr 18, 2010Use a script to open trades and that way you can assign the same magic number. You can either write one or find one posted around the Internet. Lux
running two experts at the same time.
-
luxinterior replied Apr 18, 2010I would imagine it's because stop losses are not always honored over the weekend. Similar situation for news spikes too. LUx
The ForexMick Trade Journal- Jacko style