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

Need help with an EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4659
Page 1 of 1
Author:  Sniper [ Mon Mar 21, 2016 4:29 am ]
Post subject:  Need help with an EA

Hi guys, I was wondering if someone could be kind enough to have a look at this EA that i used many many years ago but since digging it out of my archives i can't get it too work?
Cheers in advance.
Author:  Sniper [ Mon Mar 28, 2016 5:35 am ]
Post subject:  Need help with an EA

Can anyone help please?
Author:  milanese [ Mon Mar 28, 2016 6:37 am ]
Post subject:  Need help with an EA

Sniper ยป Mon Mar 28, 2016 5:35 am wrote:Can anyone help please?
attached, you can ignore the warnings as they are only warnings that the code is not optimal coded in the warned parts , the errors are removed.
3_SMA_HiLoSysNewBuilds.mq4
3_SMA_HiLoSysNewBuilds.ex4
Cheers :)

Tommaso
Author:  Sniper [ Tue Mar 29, 2016 1:54 am ]
Post subject:  Need help with an EA

Thanks so much Tommaso.. :good:
Author:  oldfella [ Sun Apr 10, 2016 2:02 pm ]
Post subject:  Need help with an EA

Hi,

I am not sure whether I should be asking these questions here but it seemed the most appropriate thread.

I am trying to learn Empty4 coding which at my age is not easy and is a very slow process. To that end I used a code generator to give me the code for a very basic "Buy" situation so that I could review the code and hopefully understand the process, that part is OK, but here is the part I don't get. Why with 1 signal given, there are multple buys and sells due either to S/L or TP.
As this was run in strategy tester which I know is not the best because of the tick situation and was done on the UK10015. I was wondering whether this was a problem of scale as with currency a pip = 0.0001 whereas with an index it is either a 1 point or a fraction such as 0.5. would this make the 1st statement in:

int start()
{
double MyPoint=Point
if(Digits==3 || Digits==5) MyPoint=Point*10;

Completely wrong.

Even then there are trades that only take 1 "Buy and Sell on each Bar" .

Is there any coder who can help my understanding and tell me what is wrong.

Have attached a picture of the trade which is using the DeMarke Oscillator crossing 0.3 as the signal.

Regards Oldfella
All times are UTC Page 1 of 1