Hi Steve
just a suggestion but you might want to put in the variable lot sizing code as an option
john
just a suggestion but you might want to put in the variable lot sizing code as an option
john
Day Trading vs. Swing Trading vs. Position Trading 86 replies
SteveHopwood EAs 4 replies
DislikedHi Steve
just a suggestion but you might want to put in the variable lot sizing code as an option
johnIgnored
DislikedHI Steve,
It's maybe a stupid question but how to trigger a trade when all (custom) conditions are met ?
I saw in the Spider EA you use "trend=up" to BUY and "trend=down" to SELL.
Example : I have 4 indicators in separate functions, when they all goes in the same direction I change trend to "up" or "down".
if(isxx==blue && stm==blue && tl==blue && emt==blue) { trend = up;}
if(isxx==red && stm==red && tl==red && emt==red) { trend = down;}
It doesn't seems to work with the shell EA (OOTB) on page 1.
Thanks for your help,
LhIgnored
DislikedI have this effect on people. Ask the kids I teach.
The shell is not an ea generator. It is a shell for coders to use to save themselves a lot of copy/pasting when creating their own ea's. To use it, you first have to be a proficient coder.
Ignored
DislikedYes indeed, my EA is done and working (10 minutes) ... Wonderful shell !
Made just slight changes for taking trade at the next candles.
Thx again.
btw : you're more than welcome to test itIgnored
DislikedCockeyed Cowboy you old Cobol programmer you. I haven't seen stuff like that in 40 years.Ignored
DislikedLatest update in post 1. I have replaced the single moving average trend-detection function with calls to AllAverages instead. You will see the advantage of doing this as soon as you load up the indi.
I have written a shell user guide that you can edit and distribute should you wish to release your EA here at FF. Use it freely.
Ignored
DislikedLatest update in post 1. The CBI module means that robots using it are multi-traders even if the original strategy was a single-trader. This necessitates changes to CountOpenTrades() and start(), so that management functions are called from within CountOpenTrades(). I have made some additions to CloseAllTrades() as well.Ignored