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

EA request Heiken Ashi
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3263
Page 9 of 17
Author:  milanese [ Tue Nov 19, 2013 4:44 pm ]
Post subject:  Re: EA request Heiken Ashi

Ok I removed some part of checking code that could have been the reason for the strange behavior..

Cheers :)

Tommaso
Author:  TraderDesk [ Tue Nov 19, 2013 5:04 pm ]
Post subject:  Re: EA request Heiken Ashi

milanese wrote:Ok I removed some part of checking code that could have been the reason for the strange behavior..

Cheers :)

Tommaso
It now opens a position immediately when I apply the EA.... :)
Author:  milanese [ Tue Nov 19, 2013 5:16 pm ]
Post subject:  Re: EA request Heiken Ashi

TraderDesk wrote:
milanese wrote:Ok I removed some part of checking code that could have been the reason for the strange behavior..

Cheers :)

Tommaso
It now opens a position immediately when I apply the EA.... :)
this can happen because it checks every tick and initializing process could cause that it opens immediatly..that was why I had before made always versions that handle only closed candels..
but will we bring it run like you want it to run, it only question of time :D

Cheers :)

Tommaso
Author:  TraderDesk [ Tue Nov 19, 2013 5:29 pm ]
Post subject:  Re: EA request Heiken Ashi

milanese wrote:
TraderDesk wrote:
milanese wrote:Ok I removed some part of checking code that could have been the reason for the strange behavior..

Cheers :)

Tommaso
It now opens a position immediately when I apply the EA.... :)
this can happen because it checks every tick and initializing process could cause that it opens immediatly..that was why I had before made always versions that handle only closed candels..
but will we bring it run like you want it to run, it only question of time :D

Cheers :)

Tommaso
I see now....Well I guess we can get to that later... It feels like the EA is getting more responsive but I still see it opening positions after only 2 bars when I have it set for 4. Take a look at the chart and settings to see if that is what you see as well...

Thanks....
prob3.png
Author:  TraderDesk [ Tue Nov 19, 2013 5:36 pm ]
Post subject:  Re: EA request Heiken Ashi

I still see the EA not opening the position until 15 pips AWAY from the HA line. It should be within 15 pips of the HA line.... See the below EURUSD chart where I had the EA open for a while. It would not open until price jump past 15 pips...

Maybe we should chang the variable PriceFromHALine to PriceWithinHALine as well... what do you think?
Thanks...
prob5.png
Author:  milanese [ Tue Nov 19, 2013 5:48 pm ]
Post subject:  Re: EA request Heiken Ashi

TraderDesk wrote:I still see the EA not opening the position until 15 pips AWAY from the HA line. It should be within 15 pips of the HA line.... See the below EURUSD chart where I had the EA open for a while. It would not open until price jump past 15 pips...

Maybe we should chang the variable PriceFromHALine to PriceWithinHALine as well... what do you think?
Thanks...
prob5.png
:o now I got what you mean, totally missunderstood by me so far :lol: ok I will change this and too look to resolve this bar problem..

Cheers :)

Tommaso
Author:  milanese [ Tue Nov 19, 2013 7:20 pm ]
Post subject:  Re: EA request Heiken Ashi

Ok we will try this one..

Cheers :)

Tommaso
Author:  TraderDesk [ Wed Nov 20, 2013 8:20 am ]
Post subject:  Re: EA request Heiken Ashi

milanese wrote:Ok we will try this one..

Cheers :)

Tommaso
Good morning Tommaso,

The EA is looking better with the updates. I am trying to think of a way to keep things simpler. I can see that it is very easy for this EA to get too complicated for your time and I do not want to take up your valuable time too much.

On the Heiken Ashi indicator would you be able to use the changing of the color where it goes from RED to BLUE and visa-versa for the original new position? So when Price Action goes above/below the HA Line after the close of the next bar it will turn BLUE for bullish and RED for bearish. So the logic I imagine would be like this:

Color turned BLUE - Check
DelayTheEntryForXBars=2 : 2 Bars must be BLUE
PriceWithinHALine=10 :ASK Price is within 10 pips

---------------------------------------------------------

Color turned RED - Check
DelayTheEntryForXBars=2 : 2 Bars must be RED
PriceWithinHALine=10 : BID Price is within 10 pips

The EA should only open a new position with the CHANGE of the color so when I run it the EA will wait until the next change of color. Because I have it looking at pips my thought is we need to look at ticks because if we wait until the close of the bar Price could of changed.
new1.png
Please notice that for BUY we should look at the ASK Price and for SELL it should be BID price.

For now I would want the EA to do just this. No additional buys/sells just the above and when I see it works then we can move to the next step.... Step by step...

Now again if this is taking too much of your time please let me know...I appreciate what you are doing but as you the only one here coding it might be too much with your free time....

Thanks... :)
Author:  milanese [ Wed Nov 20, 2013 9:09 am ]
Post subject:  Re: EA request Heiken Ashi

TraderDesk wrote:
milanese wrote:Ok we will try this one..

Cheers :)

Tommaso
Good morning Tommaso,

The EA is looking better with the updates. I am trying to think of a way to keep things simpler. I can see that it is very easy for this EA to get too complicated for your time and I do not want to take up your valuable time too much.

On the Heiken Ashi indicator would you be able to use the changing of the color where it goes from RED to BLUE and visa-versa for the original new position? So when Price Action goes above/below the HA Line after the close of the next bar it will turn BLUE for bullish and RED for bearish. So the logic I imagine would be like this:

Color turned BLUE - Check
DelayTheEntryForXBars=2 : 2 Bars must be BLUE
PriceWithinHALine=10 :ASK Price is within 10 pips

---------------------------------------------------------

Color turned RED - Check
DelayTheEntryForXBars=2 : 2 Bars must be RED
PriceWithinHALine=10 : BID Price is within 10 pips

The EA should only open a new position with the CHANGE of the color so when I run it the EA will wait until the next change of color. Because I have it looking at pips my thought is we need to look at ticks because if we wait until the close of the bar Price could of changed.
new1.png
Please notice that for BUY we should look at the ASK Price and for SELL it should be BID price.

For now I would want the EA to do just this. No additional buys/sells just the above and when I see it works then we can move to the next step.... Step by step...

Now again if this is taking too much of your time please let me know...I appreciate what you are doing but as you the only one here coding it might be too much with your free time....

Thanks... :)
The indicator looks always only at the bid this is why I use only bid in the code, I will later change the code that we have an EA that will doing what you are explaining..

Cheers :)

Tommaso
Author:  milanese [ Wed Nov 20, 2013 9:31 am ]
Post subject:  Re: EA request Heiken Ashi

OK here you go, I hope this one is near to do what you had explained in your last post

Cheers :)

Tommaso
All times are UTC Page 9 of 17