| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Need a little coding help https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4515 |
Page 1 of 2 |
| Author: | LittleCaro [ Thu Nov 26, 2015 9:58 am ] |
| Post subject: | Need a little coding help |
Hello, I'm in the making of an ea with the incredible steve's shell. It is based on a step ma, and what i want is when the step ma changes color, we send a trend, we take our profit and we wait another change color to send the trade. Here is how i include it in the shell : Code: Select all Code: Select all What i want is only 1 trade per color. I spend a lot of time on this, and i ask here if coders have an idea to stop the ea sending orders ? Thanks ! |
|
| Author: | SteveHopwood [ Thu Nov 26, 2015 10:14 am ] |
| Post subject: | Need a little coding help |
|
|
| Author: | LittleCaro [ Thu Nov 26, 2015 10:43 am ] |
| Post subject: | Need a little coding help |
Thanks for the help Steve, but it's not working. What i need is stop send trades after the close of the trade. The step ma changes color ------> it opens a trade ----> the trade close by hiting take profit ----> the expert stops sending trades. And we repeat the cycle : step ma changes color ----> it opens a trade ------ > |
|
| Author: | SteveHopwood [ Thu Nov 26, 2015 6:08 pm ] |
| Post subject: | Need a little coding help |
Mql4 is the easiest and most basic language to code because it only needs to perform a limited number of functions. Mostly we have problems working out what to code - just as here. Here, you need code that cycles back through the candles to detect the most recent colour change, and stored the candle shift in a variable. Your code will look something like this: Code: Select all Great to see you getting to grips with this stuff. You will not regret doing so in the long term, however demented you may be driven when devising the algorithm. |
|
| Author: | SteveHopwood [ Fri Nov 27, 2015 9:38 am ] |
| Post subject: | Need a little coding help |
I meant to click 'Quote' on your post, but instead clicked 'Edit', so the post contents have disappeared. Do me a favour, please: repost your function here and send me the crap custom abortion in a pm so I can see on my chart what you are looking at. |
|
| Author: | SteveHopwood [ Fri Nov 27, 2015 10:52 am ] |
| Post subject: | Need a little coding help |
I just had a bath and thought about all this. Send me both your EA as coded so far so I can copy the inputs, and the CCA. I will show you the steps I take when doing battle with these thingies as series of tutorials here, so others can benefit should they wish to. |
|
| Author: | LittleCaro [ Fri Nov 27, 2015 1:10 pm ] |
| Post subject: | Need a little coding help |
Ok Steve, i repost here the first part of the tutorial, and on the next post i will upload te indicator the ea and template. So, i don't understand how to integrate the color change of stepma, i try this : Code: Select all |
|
| Author: | LittleCaro [ Fri Nov 27, 2015 1:23 pm ] |
| Post subject: | Need a little coding help |
Here i post the expert and indicator and template for euro in 15 minutes. You will see in the expert i make a lot of good shit, i tried to check the history to search if previous trade was long or short, so it'll filter all the trades, but with no result. I modified also the take profit, because if expert detects a loss, the TP must be higher. What we want to achieve in this thread, is to simply get only 1 trade per colour change once the TP is hit. Thanks Steve this will be really cool to learn something new. |
|
| Author: | AnotherBrian [ Fri Nov 27, 2015 2:40 pm ] |
| Post subject: | Need a little coding help |
Great idea Steve, examples will help newbies to get started, and that helps all of us. |
|
| Author: | SteveHopwood [ Fri Nov 27, 2015 11:25 pm ] |
| Post subject: | Need a little coding help |
I worked on this today. Tomorrow I will start to describe the process I go through when faced by a Crap Custom Abortion that someone is daft enough to want me to turn into an EA. This process includes learning how to drag useful information from uncooperative CCA's. The one that Little Caro posted here is a long, long way from being the worst I have ever encountered, but even so can be confusing unless you have spent nearly 10 years battling with the bloody thingies and understand the tricks that the dafter of the CCA coders have up their sleeves. |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|