stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Another Go at an EA - Using Steves shell code
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1613
Page 1 of 1
Author:  Nufty [ Wed Mar 13, 2013 5:30 am ]
Post subject:  Another Go at an EA - Using Steves shell code

Hi

Still trying this coding caper... its fun, but I really do think I suck at it.

I am trying to code an EA which follows a simple Manual Trading system I use (It can scalp on 5 mins or take long term trades on 4 hour charts). This system is quite profitable for me.

The principal is

I use a Trend EMA - can be 200 can be higher!
I then have a fast and a slow EMA and wait for a cross - if the cross is above the Trend EMA I only take bullish crosses, if its below, I only take bearish.

I use Fibs as my stop loss and take profit. 161.8 being TP and 61.8 SL - I can change this to 0 for SL on shorter time frames and change the way I trade the fibs on the longer (ie trade three lots take profit at 161.8 and allow the third to run to 261.8 - with a SL at the original entry point or 100% line.)

I have been working on this for a while now - and would like to share what I have so far .

Before anyone trys the code - It DOESNT WORK.

My trouble at this time (There is going to be plenty more) is in the complexity of using Fibs as SL and TP. To be honest, I am completely lost in the code.

I will continue to chip away at it until I can see where by thought process is missing the freaken point ... lol

Here is the code if anyone wants to jump in and make suggestions, and a quick pic to explain the entry and the use of the fibs.

Thanks for any assistance

NUFTY

PS I have a second system using this basic set up, which trades a bounce of the medium EMA - I will get to that one once I have this one under control :)
All times are UTC Page 1 of 1