View Single Post
  #1 (permalink)  
Old 06-17-2006, 12:07 AM
Aaragorn's Avatar
Aaragorn Aaragorn is offline
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
EMA CROSS upgrade...coders guru please help

After reading codersguru's lessons me and the expert advisor wizzard got this far with creating code. I'm just trying to learn to make EA's. I would prefer someone who knows what they are doing to do this but I do want to learn too so I'm trying to make a start at it at least.

This is basically to define the things I'd like to see added to the EMA CROSS already created by coder's guru. Man I would love to see HIM take on this upgrade instead of leaving it to a novice like me.

I like the EMA CROSS system perhaps because I've spent alot of time studying moving average dyanamics. It's something I can get my brain around. What you will notice is that I like to give the user the option to engage certain functions or not in a strategy. This allows for many variations in testing different combinations which forms the basis for comparing and re-evaluating results. I find such compare and evaluation reveals what works well together. I believe in giving users the choice.

I get to explain a couple of the parameters here and where I found the ideas...

I've watched a few different systems operate now. I've gotten ideas from them I'd like to see all incorporated into the EMA cross.

The basket profit idea I got from watching the divergence trader EA which opens multiple orders and pools the equity from them to reach a target and then closes all the orders in the pool together. It occurred to me that this might be an effective method to clean up positions which get 'left behind' in the present EMA CROSS- EA. These positions which go unprofitable need to be cleaned up. I don't know if it will work but it's an idea. I hate to see the EMA CROSS method give back so much after it's made such good gains. It's all about damage control before the damage gets big. clean up the small messes as they happen. that's the idea with this function. (optional of course)

I'm wanting other functions which aren't in the present versions of the EMA cross, (or anywhere else I know of) I'd like to see the ability to execute on a custom bar period. I have no idea how to pull this off but I like the concept since I could do that in my spreadsheet and found several advantages to doing it. Why can't it be done in the metatrader? I think just because no one I know of has DONE it yet. I'm told it can be done buy building the candles from one minute data. There is a custom candle indicator already but I don't know if it engages EA's to execute on that custom candle data or not...well I'd like to see this done with the EMA CROSS method because my spreadsheet told me how advantageous it is to do that with moving average cross strategies. Trust me it matters.

I'd like to see the ability to scale stop losses and trailing stop losses. If we can scale into and out of positions then we should be able to scale down stop loss and trailing stop losses to close positions based on conditions we like. It needs fleshing out but the general idea is to make some conditions to get the most out of closing strategies thru creative stop loss use.

I'd like to see the ability to scale lot sizes because presently the EMA Cross places two orders at the same time one buy and one sell. This seems like hedging at 100% and that doesn't seem like having much confidence in the signal cross to me. Again if the lots were scaled so the opposing direction were half the size of the signal direction then that would minimize losses right there making less drawdown to recover in the first place.

I put a close all hotkey option in this so that with two keyboard keys the user could manually close all orders. That could be for damage control AND for discretionary profit taking. It just keeps the discretionary trader able to take immediate action which could be good for some highly intuitive types of people or whatever.

The specified trading hours is not new but I've not seen the ability to go in and out more than once so I made three sessions for engagement during hot trading hours.

I also made a spot for a MACD and a Stochastic to join this EA if desired. I've seen the three work well together in the CAT50fx system which I've seen work in other places too. It's optional if this can be created like I envision it.

The reversal option already exists in the present version of the EMA CROSS. I just made a place for that here even though I don't fully know how it's done.

In fact I don't know how alot of this is done or how much is doable. All I know is what I'd like to see done. I assume that coder's guru doesn't have the same limitations that I do when it comes to what is 'doable'. I can tell you I know I don't have the understanding to do all this right now. But I don't think that should stop me from envisioning or communicating what I can envision. Envisioning is something I CAN do. So this is just doing what I can. I know it's not much. I hope I'll get some help with this (from real programmers) doing what I'm not ready to tackle myself. I'll keep learning but all assistance is appreciated. This is just trying to communicate what I'm envisioning at this point so someone else who codes can see what I'm thinking. As I learn more I'll communicate what I learn how to communicate. I'm expressing more than I did when I first came here. I didn't even know how to start to make an EA. Now I have all these ambitious ideas (ambitious for me anyway).


If I had to prioritize all this I would say the most important is the function to scale lots because I see that as reducing losses which the current version really needs from my testing of it.

Second importance would be the trading session hours that lets the user put the EA on standby during certain times of the day.

the rest of this is of interest because of what might make a flexible EA for strategy testing purposes but those two functions I can see giving immediate reward to the present EA.

I suppose the rest is just to give me something to learn on as I try to learn to make EA's and do coding. It may add something to the outcome and it may just help me learn to program.

the rest of what's there is probably not necessary to do any explaining...it's pretty common

Last edited by Aaragorn; 06-17-2006 at 12:15 AM.
Reply With Quote